Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Federation features not working properly #461

Closed
imto1 opened this issue May 12, 2021 · 10 comments
Closed

Federation features not working properly #461

imto1 opened this issue May 12, 2021 · 10 comments
Labels

Comments

@imto1
Copy link

imto1 commented May 12, 2021

Describe the bug

I cannot follow my writefreely blog from mastodon even after update to v0.13.0rc1 and also blog posts doesn't show from mastodon. The federation and notes_only options are set to true in config.ini .

Steps to reproduce (if necessary)

Steps to reproduce the behavior:

  1. On mastodon instance search for @svh@behmerd.ir
  2. On profile page click follow button.
  3. it will show that you are following the blog but after reloading page, the unfollow button changes to cancel follow request. Also I tried to follow it on Pixelfed. and following was success, but on blog stats page number of followers is still 0.

Expected behavior

What should've happened?
It should follow the blog and show blog posts.

Application configuration

  • Single mode or Multi-user mode? Multi-user
  • Database? mysql
  • Open registration? no
  • Federation enabled? yes

Version or last commit: v0.13.0rc1 - arm7
Software version of Mastodon instance: v3.4.0rc2
OS: Linux cubietruck 5.10.34-sunxi 21.05.1 armv7l GNU/Linux
Instance address: https://behmerd.ir

@thebaer
Copy link
Member

thebaer commented May 12, 2021

Thanks for the report, @imto1 -- I was able to replicate this on my Mastodon account. Can you run writefreely with the --debug flag, go through this process again, and share the WF server logs? That should help us figure out what's going on.

@imto1
Copy link
Author

imto1 commented May 12, 2021

@thebaer
I've executed WF with --debug flag and here is the application log on stdout. I realized when I make follow request from mastodon nothing printed on stdout but when I do this from pixelfed, I can see the logs.

2021/05/12 16:32:36 Starting WriteFreely 0.13.0rc1...
2021/05/12 16:32:36 Loading config.ini configuration...
2021/05/12 16:32:36 Loading templates...
2021/05/12 16:32:36   templates/bare.tmpl
2021/05/12 16:32:36   templates/base.tmpl
2021/05/12 16:32:36   templates/chorus-collection-post.tmpl
2021/05/12 16:32:36   templates/chorus-collection.tmpl
2021/05/12 16:32:37   templates/classic.tmpl
2021/05/12 16:32:37   templates/collection-post.tmpl
2021/05/12 16:32:37   templates/collection-tags.tmpl
2021/05/12 16:32:37   templates/collection.tmpl
2021/05/12 16:32:37   templates/edit-meta.tmpl
2021/05/12 16:32:37   templates/pad.tmpl
2021/05/12 16:32:37   templates/password-collection.tmpl
2021/05/12 16:32:37   templates/post.tmpl
2021/05/12 16:32:37   templates/read.tmpl
2021/05/12 16:32:37 Loading pages...
2021/05/12 16:32:37   [404-general.tmpl] pages/404-general.tmpl
2021/05/12 16:32:37   [404.tmpl] pages/404.tmpl
2021/05/12 16:32:37   [410.tmpl] pages/410.tmpl
2021/05/12 16:32:37   [500.tmpl] pages/500.tmpl
2021/05/12 16:32:37   [503.tmpl] pages/503.tmpl
2021/05/12 16:32:37   [about.tmpl] pages/about.tmpl
2021/05/12 16:32:37   [blank.tmpl] pages/blank.tmpl
2021/05/12 16:32:37   [landing.tmpl] pages/landing.tmpl
2021/05/12 16:32:37   [login.tmpl] pages/login.tmpl
2021/05/12 16:32:37   [privacy.tmpl] pages/privacy.tmpl
2021/05/12 16:32:37   [signup-oauth.tmpl] pages/signup-oauth.tmpl
2021/05/12 16:32:37   [signup.tmpl] pages/signup.tmpl
2021/05/12 16:32:37 Loading user pages...
2021/05/12 16:32:37   [user/app-settings.tmpl] templates/user/admin/app-settings.tmpl
2021/05/12 16:32:37   [user/app-updates.tmpl] templates/user/admin/app-updates.tmpl
2021/05/12 16:32:37   [user/monitor.tmpl] templates/user/admin/monitor.tmpl
2021/05/12 16:32:37   [user/pages.tmpl] templates/user/admin/pages.tmpl
2021/05/12 16:32:37   [user/users.tmpl] templates/user/admin/users.tmpl
2021/05/12 16:32:37   [user/view-page.tmpl] templates/user/admin/view-page.tmpl
2021/05/12 16:32:37   [user/view-user.tmpl] templates/user/admin/view-user.tmpl
2021/05/12 16:32:37   [user/admin.tmpl] templates/user/admin.tmpl
2021/05/12 16:32:37   [user/articles.tmpl] templates/user/articles.tmpl
2021/05/12 16:32:37   [user/collection.tmpl] templates/user/collection.tmpl
2021/05/12 16:32:37   [user/collections.tmpl] templates/user/collections.tmpl
2021/05/12 16:32:37   [user/export.tmpl] templates/user/export.tmpl
2021/05/12 16:32:37   [user/import.tmpl] templates/user/import.tmpl
2021/05/12 16:32:37   [user/footer.tmpl] templates/user/include/footer.tmpl
2021/05/12 16:32:37   [user/header.tmpl] templates/user/include/header.tmpl
2021/05/12 16:32:37   [user/nav.tmpl] templates/user/include/nav.tmpl
2021/05/12 16:32:37   [user/silenced.tmpl] templates/user/include/silenced.tmpl
2021/05/12 16:32:37   [user/invite-help.tmpl] templates/user/invite-help.tmpl
2021/05/12 16:32:37   [user/invite.tmpl] templates/user/invite.tmpl
2021/05/12 16:32:37   [user/settings.tmpl] templates/user/settings.tmpl
2021/05/12 16:32:37   [user/stats.tmpl] templates/user/stats.tmpl
2021/05/12 16:32:37 Loading encryption keys...
2021/05/12 16:32:37   keys/email.aes256
2021/05/12 16:32:37   keys/cookies_auth.aes256
2021/05/12 16:32:37   keys/cookies_enc.aes256
2021/05/12 16:32:37   keys/csrf.aes256
2021/05/12 16:32:37 Connecting to mysql database...
2021/05/12 16:32:37 [update check] Checking for update now.
2021/05/12 16:32:37 Initializing local timeline...
2021/05/12 16:32:37 Adding behmerd.ir routes (multi-user)...
2021/05/12 16:32:37 Going to serve...
2021/05/12 16:32:37 Serving on http://localhost:8080
2021/05/12 16:32:37 ---
2021/05/12 16:32:48 [update check] GET https://version.writefreely.org
ERROR: 2021/05/12 16:32:48 updates.go:49: [update check] Failed: Get "https://version.writefreely.org": net/http: TLS handshake timeout
2021/05/12 16:33:57 "GET /svh/" 200 196.780895ms "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:88.0) Gecko/20100101 Firefox/88.0"
2021/05/12 16:34:13 "GET /" 302 69.833µs "python-requests/2.21.0"
2021/05/12 16:34:14 [READ] Updating post cache
2021/05/12 16:34:14 "GET /read" 200 131.435262ms "python-requests/2.21.0"
2021/05/12 16:36:31 Rec'd! "POST /api/collections/svh/inbox HTTP/1.0\r\nHost: behmerd.ir\r\nConnection: close\r\nAccept: application/activity+json, application/json\r\nAccept-Encoding: gzip\r\nCdn-Loop: cloudflare\r\nCf-Connecting-Ip: 167.99.145.215\r\nCf-Ipcountry: US\r\nCf-Ray: 64e510ff5a090cc9-EWR\r\nCf-Request-Id: 0a0308f39700000cc93d2ce000000001\r\nCf-Visitor: {\"scheme\":\"https\"}\r\nConnection: close\r\nContent-Length: 407\r\nContent-Type: application/activity+json\r\nDate: Wed, 12 May 2021 16:36:31 GMT\r\nDigest: SHA-256=aGlF5BTIAv6aqi6rff1WuVj9yGxPBCkJyouBanFy6gw=\r\nSignature: keyId=\"https://pixelfed.social/users/imto1#main-key\",headers=\"(request-target) date host accept content-type digest\",algorithm=\"rsa-sha256\",signature=\"x8xtMkUlJBpdk/gYltCEdbuUPyIUtmKyF9YZeJEMlyMzwXBL3CYIpE1fVfzVaaMEVYRxgQ756aJv8P23LY6cwBneWY6yzBKygf/Vot/1ouwwjoRl6AaFtkYXPH7ydA7q0hADBt9RYqgDzbggYSopdoNv/vMaIQ7GBpJa+DS+nMv9NlhKrntdyQ6O3qlVN0iuEp0FAi9mxEIDDQRV+Qo5SHhxQcvXNC55+UikoFFzcF1l0vws0FMDRtCSvPjv2oLpn0LmcCWsxpq0OR6U6keuPxL74oz8dYWj2Ws5KesYKGA9mODvcpvtFXOyYCTkFveGNoeRYJVvtY2ocDF3r2GSaw==\"\r\nX-Forwarded-For: 162.158.62.94\r\nX-Forwarded-Proto: https\r\nX-Real-Ip: 162.158.62.94\r\n\r\n{\"@context\":\"https:\\/\\/www.w3.org\\/ns\\/activitystreams\",\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follow\\/297810152948633600\\/undo\",\"type\":\"Undo\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":{\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follows\\/297810152948633600\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":\"https:\\/\\/behmerd.ir\\/api\\/collections\\/svh\",\"type\":\"Follow\"}}"
2021/05/12 16:36:31 Undo: {"@context":["https://www.w3.org/ns/activitystreams"],"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follow/297810152948633600/undo","object":{"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follows/297810152948633600","object":"https://behmerd.ir/api/collections/svh","type":"Follow"},"type":"Undo"}
ERROR: 2021/05/12 16:36:31 activitypub.go:413: Unable to resolve Follow: No remote user with that ID.
ERROR: 2021/05/12 16:36:31 activitypub.go:415: Map: map[@context:[https://www.w3.org/ns/activitystreams] actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follow/297810152948633600/undo object:map[actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follows/297810152948633600 object:https://behmerd.ir/api/collections/svh type:Follow] type:Undo]
2021/05/12 16:36:31 "POST /api/collections/svh/inbox" 404 29.277983ms ""
2021/05/12 16:36:45 "GET /" 302 86.041µs ""
2021/05/12 16:36:46 "GET /" 302 84.708µs "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)"
2021/05/12 16:36:47 [READ] Updating post cache
2021/05/12 16:36:47 "GET /read" 200 118.166719ms "Mozilla/5.0 (compatible; CensysInspect/1.1; +https://about.censys.io/)"
2021/05/12 16:37:32 Rec'd! "POST /api/collections/svh/inbox HTTP/1.0\r\nHost: behmerd.ir\r\nConnection: close\r\nAccept: application/activity+json, application/json\r\nAccept-Encoding: gzip\r\nCdn-Loop: cloudflare\r\nCf-Connecting-Ip: 167.99.145.215\r\nCf-Ipcountry: US\r\nCf-Ray: 64e512789ca9158b-EWR\r\nCf-Request-Id: 0a0309df5c0000158ba5182000000001\r\nCf-Visitor: {\"scheme\":\"https\"}\r\nConnection: close\r\nContent-Length: 251\r\nContent-Type: application/activity+json\r\nDate: Wed, 12 May 2021 16:37:31 GMT\r\nDigest: SHA-256=E4lTdrOaTZQnzfCS+BnlD8uIEIFMk0tqf9yRYZTkhVI=\r\nSignature: keyId=\"https://pixelfed.social/users/imto1#main-key\",headers=\"(request-target) date host accept content-type digest\",algorithm=\"rsa-sha256\",signature=\"hGBrdsrEqou5Ev+Stb/BhwCsnXvgx+T6lOxnS0g2+Y2LboRnezwCnJ93Ux6GVqXkayuAvXrbIsh7s1ijkEsldvJc4RMxZDePsskFmR+VnVIpEsB8YNZElbANbfHMxNoszppUxTM+Jf8Mkpvs6wzQcptdiWkpdRGUH6848WfOvSyqBK3x9g5VhTq5u49n3pgzi4HUmZVBdN7YDC9p1m/i5UgHlHZIh3iL6Kj2xWure0VWjHqzItM6uJ3aCNBXba7O/2gXDnSooP4dRoP3DB4zhYwZtjrpbnN4mjxgAsaIWh2ZvA6tf4mxEUUMBohYU/3ZgPDDmZ5mOBUj/+so2py/0w==\"\r\nX-Forwarded-For: 162.158.62.238\r\nX-Forwarded-Proto: https\r\nX-Real-Ip: 162.158.62.238\r\n\r\n{\"@context\":\"https:\\/\\/www.w3.org\\/ns\\/activitystreams\",\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follow\\/297810152948633600\",\"type\":\"Follow\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":\"https:\\/\\/behmerd.ir\\/api\\/collections\\/svh\"}"
2021/05/12 16:37:32 Follow: {"@context":["https://www.w3.org/ns/activitystreams"],"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follow/297810152948633600","object":"https://behmerd.ir/api/collections/svh","type":"Follow"}
2021/05/12 16:37:32 Fetching actor https://pixelfed.social/users/imto1 locally
2021/05/12 16:37:32 Not found; fetching actor https://pixelfed.social/users/imto1 remotely
2021/05/12 16:37:32 GET https://pixelfed.social/users/imto1
2021/05/12 16:37:32 GET /users/imto1 HTTP/1.1
Host: pixelfed.social
User-Agent: Go (WriteFreely/0.13.0rc1; +https://behmerd.ir)
Accept: application/activity+json
Date: Wed, 12 May 2021 16:37:32 GMT
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Signature: keyId="https://behmerd.ir/api/collections/behmerd.ir#main-key",algorithm="rsa-sha256",headers="(request-target) date host digest",signature="sIw6qJD5xFa55ca+kvnrFbrm5M2InSLvryN/m8X8Z2v/3HYSnOZpZAGYbYTSF5k3qFd7WpVoxaIAac0ZflSz9zvpQhk4HyMm8NXC4q90WhlKtbLqvBi154vsG+rpL0OVYuXfLR8MVFMlGjTaO2XbnGyy3Ki+ZNGN/HlGbP+Jqe2Iptb2MiIhAqHQTyNmlQo6Y7uBi1fu2+dBetWSEAS+SRzO663RnvqigizNYXSYEA170ubWo4T01Naa8UjGf7sn++NcSiQgR7oGfP+8gtbK+xzgD+q8v5N3nxyJAhZRFclp/iwyeC30AHyC8C+qpfDUXIY6RZuDX8xn3qW5dsHEnA=="
Accept-Encoding: gzip

ERROR: 2021/05/12 16:37:42 activitypub.go:808: Unable to get actor! Get "https://pixelfed.social/users/imto1": net/http: TLS handshake timeout
ERROR: 2021/05/12 16:37:42 activitypub.go:413: Unable to resolve Follow: Couldn't fetch actor.
ERROR: 2021/05/12 16:37:42 activitypub.go:415: Map: map[@context:[https://www.w3.org/ns/activitystreams] actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follow/297810152948633600 object:https://behmerd.ir/api/collections/svh type:Follow]
2021/05/12 16:37:42 "POST /api/collections/svh/inbox" 500 10.348563313s ""
2021/05/12 16:38:33 Rec'd! "POST /api/collections/svh/inbox HTTP/1.0\r\nHost: behmerd.ir\r\nConnection: close\r\nAccept: application/activity+json, application/json\r\nAccept-Encoding: gzip\r\nCdn-Loop: cloudflare\r\nCf-Connecting-Ip: 167.99.145.215\r\nCf-Ipcountry: US\r\nCf-Ray: 64e513fa1f8507a8-EWR\r\nCf-Request-Id: 0a030ad053000007a88529d000000001\r\nCf-Visitor: {\"scheme\":\"https\"}\r\nConnection: close\r\nContent-Length: 407\r\nContent-Type: application/activity+json\r\nDate: Wed, 12 May 2021 16:38:33 GMT\r\nDigest: SHA-256=aGlF5BTIAv6aqi6rff1WuVj9yGxPBCkJyouBanFy6gw=\r\nSignature: keyId=\"https://pixelfed.social/users/imto1#main-key\",headers=\"(request-target) date host accept content-type digest\",algorithm=\"rsa-sha256\",signature=\"uyk3G1sgeielaCS3mKqdkh8A3u6k9TOFDXTHImwevWPI7ryuHkuqd/iENpMXKPsLaDabzp9BZDvC9Kb1Qr+HLAR2Jmmzw5rzv9+nc5IFIoQsNYZp+WeJ3apaGzlef7kMMDl4w5H7FSwzwWvsKeyzafMs4pdXQz59O1zAK0QEhJgaXOMNxBXM3JMBmg6tG/Ds9PspN9cGdGsDUcz26bOFOT2m0YJ192x+0sO+VUkWF1X1KzQxXwwx6UT6sYf66YGsDLrq1BPp6l8qTRkWtT3Yv1di4dJ9+5Dw9A1Z+k5J7y93SqcZZDcBrfdEi2tDpZjmw/zMQvLggn3FIqXgl4wkJw==\"\r\nX-Forwarded-For: 162.158.62.40\r\nX-Forwarded-Proto: https\r\nX-Real-Ip: 162.158.62.40\r\n\r\n{\"@context\":\"https:\\/\\/www.w3.org\\/ns\\/activitystreams\",\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follow\\/297810152948633600\\/undo\",\"type\":\"Undo\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":{\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follows\\/297810152948633600\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":\"https:\\/\\/behmerd.ir\\/api\\/collections\\/svh\",\"type\":\"Follow\"}}"
2021/05/12 16:38:33 Undo: {"@context":["https://www.w3.org/ns/activitystreams"],"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follow/297810152948633600/undo","object":{"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follows/297810152948633600","object":"https://behmerd.ir/api/collections/svh","type":"Follow"},"type":"Undo"}
ERROR: 2021/05/12 16:38:33 activitypub.go:413: Unable to resolve Follow: No remote user with that ID.
ERROR: 2021/05/12 16:38:33 activitypub.go:415: Map: map[@context:[https://www.w3.org/ns/activitystreams] actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follow/297810152948633600/undo object:map[actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follows/297810152948633600 object:https://behmerd.ir/api/collections/svh type:Follow] type:Undo]
2021/05/12 16:38:33 "POST /api/collections/svh/inbox" 404 17.44385ms ""
2021/05/12 16:39:09 Rec'd! "POST /api/collections/svh/inbox HTTP/1.0\r\nHost: behmerd.ir\r\nConnection: close\r\nAccept: application/activity+json, application/json\r\nAccept-Encoding: gzip\r\nCdn-Loop: cloudflare\r\nCf-Connecting-Ip: 167.99.145.215\r\nCf-Ipcountry: US\r\nCf-Ray: 64e514d6ca160ce5-EWR\r\nCf-Request-Id: 0a030b5a4200000ce5980c6000000001\r\nCf-Visitor: {\"scheme\":\"https\"}\r\nConnection: close\r\nContent-Length: 251\r\nContent-Type: application/activity+json\r\nDate: Wed, 12 May 2021 16:39:08 GMT\r\nDigest: SHA-256=E4lTdrOaTZQnzfCS+BnlD8uIEIFMk0tqf9yRYZTkhVI=\r\nSignature: keyId=\"https://pixelfed.social/users/imto1#main-key\",headers=\"(request-target) date host accept content-type digest\",algorithm=\"rsa-sha256\",signature=\"P8gmWa1YKhD5ayN9xn2SFU37fTlr88DDdwVhkzwRBi9UyU4M7W6uhNz46ZUb6eBEnQE7PiqhOIJw6RXiayzxla/bRHXcSIpxyw3ITkPyb5P7N7/cNxEXyumDIhDZY6kjdgHXS6E+2vi0F5hn8eUAv2v3QHW4855asw9qj32d98r8mcdPcOOw7PJw3rKDvk/I9BjjCWrg85UcrOWS9FXXDOHXAUG/C3CRFMhclcUJuoZpttekRiMdf7VHF1Ozgo/JQvc2p+NZlcR4mjGx706O4RmFcJXUzb/ZQjhSM5M+s/PwIIvCDWb/II3bYdXNmkXS13GMTBRpx082HA/ReTnWPw==\"\r\nX-Forwarded-For: 162.158.63.225\r\nX-Forwarded-Proto: https\r\nX-Real-Ip: 162.158.63.225\r\n\r\n{\"@context\":\"https:\\/\\/www.w3.org\\/ns\\/activitystreams\",\"id\":\"https:\\/\\/pixelfed.social\\/users\\/imto1#follow\\/297810152948633600\",\"type\":\"Follow\",\"actor\":\"https:\\/\\/pixelfed.social\\/users\\/imto1\",\"object\":\"https:\\/\\/behmerd.ir\\/api\\/collections\\/svh\"}"
2021/05/12 16:39:09 Follow: {"@context":["https://www.w3.org/ns/activitystreams"],"actor":"https://pixelfed.social/users/imto1","id":"https://pixelfed.social/users/imto1#follow/297810152948633600","object":"https://behmerd.ir/api/collections/svh","type":"Follow"}
2021/05/12 16:39:09 Fetching actor https://pixelfed.social/users/imto1 locally
2021/05/12 16:39:09 Not found; fetching actor https://pixelfed.social/users/imto1 remotely
2021/05/12 16:39:09 GET https://pixelfed.social/users/imto1
2021/05/12 16:39:09 GET /users/imto1 HTTP/1.1
Host: pixelfed.social
User-Agent: Go (WriteFreely/0.13.0rc1; +https://behmerd.ir)
Accept: application/activity+json
Date: Wed, 12 May 2021 16:39:09 GMT
Digest: SHA-256=47DEQpj8HBSa+/TImW+5JCeuQeRkm5NMpJWZG3hSuFU=
Signature: keyId="https://behmerd.ir/api/collections/behmerd.ir#main-key",algorithm="rsa-sha256",headers="(request-target) date host digest",signature="ZlAQszEqBLk+zb02FEAdygqI/55MQbWYN4Y+DDdCxqGNwYAr9gk+JcyZbQzh0NuIvCgZj4NkMJX1P0pytLA23fcfg3QUgErPZ+lig7z3gbUo2Jmrkwure5Rke8sKLCAsbxtRXvpdnkVlVv6ZPqRSGB9yATqCozL4X2IsstY5d9kRpuAUut2kTEz//d9w/P30BIlz7nRpgrWk429Zv0tGxM5zqbl/HsnHft7mkcseMfyAkU/Myob288W0fjS4OZJFeCgTud6zW0ynCX3aNGz44z75nuBqwqHoHTKpZ8uIBCQUK8ZBdjL8p/np+5J+lw2FE+m/agK7JgPyP6lN8k9K/A=="
Accept-Encoding: gzip

ERROR: 2021/05/12 16:39:19 activitypub.go:808: Unable to get actor! Get "https://pixelfed.social/users/imto1": net/http: TLS handshake timeout
ERROR: 2021/05/12 16:39:19 activitypub.go:413: Unable to resolve Follow: Couldn't fetch actor.
ERROR: 2021/05/12 16:39:19 activitypub.go:415: Map: map[@context:[https://www.w3.org/ns/activitystreams] actor:https://pixelfed.social/users/imto1 id:https://pixelfed.social/users/imto1#follow/297810152948633600 object:https://behmerd.ir/api/collections/svh type:Follow]
2021/05/12 16:39:19 "POST /api/collections/svh/inbox" 500 10.412484455s ""

@thebaer
Copy link
Member

thebaer commented May 12, 2021

Okay, I would guess that this is a configuration issue, based on this error that keeps popping up: net/http: TLS handshake timeout (it even happens when trying to connect to https://version.writefreely.org). Is there a firewall or something else that might be blocking outgoing HTTP/S connections from your server?

@imto1
Copy link
Author

imto1 commented May 12, 2021

My router firewall is enabled and I forwarded 80 & 443 ports for WF server. But I didn't any firewall config on server itself.
@thebaer

@thebaer
Copy link
Member

thebaer commented May 12, 2021

Are you able to access anything from that server? For example, could you log into it and run: curl -v https://version.writefreely.org and share the response?

@imto1
Copy link
Author

imto1 commented May 12, 2021

Are you able to access anything from that server? For example, could you log into it and run: curl -v https://version.writefreely.org and share the response?

This is the response:

*   Trying 185.112.146.212:443...
* TCP_NODELAY set
* Connected to version.writefreely.org (185.112.146.212) port 443 (#0)
* ALPN, offering h2
* ALPN, offering http/1.1
* successfully set certificate verify locations:
*   CAfile: /etc/ssl/certs/ca-certificates.crt
  CApath: /etc/ssl/certs
* TLSv1.3 (OUT), TLS handshake, Client hello (1):
* TLSv1.3 (IN), TLS handshake, Server hello (2):
* TLSv1.2 (IN), TLS handshake, Certificate (11):
* TLSv1.2 (IN), TLS handshake, Server key exchange (12):
* TLSv1.2 (IN), TLS handshake, Server finished (14):
* TLSv1.2 (OUT), TLS handshake, Client key exchange (16):
* TLSv1.2 (OUT), TLS change cipher, Change cipher spec (1):
* TLSv1.2 (OUT), TLS handshake, Finished (20):
* TLSv1.2 (IN), TLS handshake, Finished (20):
* SSL connection using TLSv1.2 / ECDHE-RSA-AES128-GCM-SHA256
* ALPN, server accepted to use http/1.1
* Server certificate:
*  subject: CN=version.writefreely.org
*  start date: Apr  6 23:50:08 2021 GMT
*  expire date: Jul  5 23:50:08 2021 GMT
*  subjectAltName: host "version.writefreely.org" matched cert's "version.writefreely.org"
*  issuer: C=US; O=Let's Encrypt; CN=R3
*  SSL certificate verify ok.
> GET / HTTP/1.1
> Host: version.writefreely.org
> User-Agent: curl/7.68.0
> Accept: */*
> 
* Mark bundle as not supporting multiuse
< HTTP/1.1 200 OK
< Server: nginx
< Date: Wed, 12 May 2021 17:33:49 GMT
< Content-Type: text/plain; charset=utf-8
< Content-Length: 7
< Connection: keep-alive
< 
* Connection #0 to host version.writefreely.org left intact
v0.12.0%   

@thebaer
Copy link
Member

thebaer commented May 12, 2021

Okay, so that looks fine. Is WriteFreely running inside any kind of container or something that would be preventing outgoing requests?

The only other thing I could think of is that something with the arm7 build is causing the issue, but I'm not sure what that'd be.

@imto1
Copy link
Author

imto1 commented May 12, 2021

Okay, so that looks fine. Is WriteFreely running inside any kind of container or something that would be preventing outgoing requests?

The only other thing I could think of is that something with the arm7 build is causing the issue, but I'm not sure what that'd be.

No. WF is installed on my server without any kind of container or something...

@imto1
Copy link
Author

imto1 commented Aug 30, 2021

@thebaer
I had a fresh install of the WriteFreely v0.13.1 and the problem is solved. Consider closing this issue.

@thebaer
Copy link
Member

thebaer commented Aug 30, 2021

Thanks @imto1! Will close this now, then.

@thebaer thebaer closed this as completed Aug 30, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

2 participants