Re: Federation issues
-
@Jakub-Urbanowicz can you give me a example of something that cannot be pulled in?
Also run the forum under dev mode (
./nodebb dev
) for some additional logging around ActivityPub.@julian
Here you are some AP errors from a few days ago, before I made any changes.2025-02-13T06:25:09.462Z [4567/24115] - [31merror[39m: [activitypub/api] Error Error: [[error:activitypub.invalid-id]] at /home/xxxxxxxx/nodebb/src/api/activitypub.js:42:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.follow (/home/xxxxxxxx/nodebb/src/api/activitypub.js:30:5) at async Categories.follow (/home/xxxxxxxx/nodebb/src/controllers/write/categories.js:117:2) at async /home/xxxxxxxx/nodebb/src/routes/helpers.js:80:5 2025-02-13T06:28:56.552Z [4567/24115] - [31merror[39m: [activitypub/api] Error Error: [[error:activitypub.invalid-id]] at /home/xxxxxxxx/nodebb/src/api/activitypub.js:42:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.follow (/home/xxxxxxxx/nodebb/src/api/activitypub.js:30:5) at async Categories.follow (/home/xxxxxxxx/nodebb/src/controllers/write/categories.js:117:2) at async /home/xxxxxxxx/nodebb/src/routes/helpers.js:80:5 2025-02-13T06:33:19.290Z [4567/24115] - [31merror[39m: [activitypub/api] Error TypeError: Invalid URL at new URL (node:internal/url:804:36) at /home/xxxxxxxx/nodebb/src/activitypub/index.js:100:25 at Array.filter () at ActivityPub.resolveInboxes (/home/xxxxxxxx/nodebb/src/activitypub/index.js:99:13) at ActivityPub.send (/home/xxxxxxxx/nodebb/src/activitypub/index.js:373:36) at /home/xxxxxxxx/nodebb/src/api/activitypub.js:51:21 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.follow (/home/xxxxxxxx/nodebb/src/api/activitypub.js:30:5) at async Categories.follow (/home/xxxxxxxx/nodebb/src/controllers/write/categories.js:117:2) at async /home/xxxxxxxx/nodebb/src/routes/helpers.js:80:5 2025-02-13T06:37:05.361Z [4567/24115] - [31merror[39m: [activitypub/api] Error Error: [[error:activitypub.invalid-id]] at /home/xxxxxxxx/nodebb/src/api/activitypub.js:42:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.follow (/home/xxxxxxxx/nodebb/src/api/activitypub.js:30:5) at async Categories.follow (/home/xxxxxxxx/nodebb/src/controllers/write/categories.js:117:2) at async /home/xxxxxxxx/nodebb/src/routes/helpers.js:80:5 2025-02-13T06:37:20.692Z [4567/24115] - [31merror[39m: [activitypub/api] Error Error: [[error:activitypub.invalid-id]] at /home/xxxxxxxx/nodebb/src/api/activitypub.js:42:9 at process.processTicksAndRejections (node:internal/process/task_queues:95:5) at async Object.follow (/home/xxxxxxxx/nodebb/src/api/activitypub.js:30:5) at async Categories.follow (/home/xxxxxxxx/nodebb/src/controllers/write/categories.js:117:2) at async /home/xxxxxxxx/nodebb/src/routes/helpers.js:80:5 [cluster] Restarting...
-
@julian I've been unable to get AP following to work in either direction. I mean it is sometimes possible to follow somebody and get followed by other sites, but no actual posts ever come into or out of my nodebb instance (forum.n66.pl). The only thing that works is importing posts directly by entering their URL in the search area, which is also temperamental – sometimes the same post can be imported and sometimes it can't. I also tried following people from individual categories. It never worked except for one instance where it seems to have been stuck with a "pending" message, but I have no way of accepting or rejecting the follow request on the other side (it should be accepted automatically). Sometimes the same happens when entering followed people's URLs in the search panel. Looking forward to fixes.
My forum.n66.pl-proxy.conf is now very similar to official recommendations and doesn't seem to have any effect on AP following/sharing capabilities.
I am unaware of server tweaks to facilitate AP following/sharing. -
My forum.n66.pl-proxy.conf is now very similar to official recommendations and doesn't seem to have any effect on AP following/sharing capabilities.
I am unaware of server tweaks to facilitate AP following/sharing.@Jakub-Urbanowicz your ActivityPub user is resolving, but the URLs are incorrect.
Please update your
config.json
so that it properly reflects your site's url, it should behttps://forum.n66.pl
, with the https -
Hi! I am also having federation issues on a fresh install of 4.0.3. For example, I can not see the content of all the posts here including the original post. I think I see the content of around half of the posts. I tried to reply on another post on community.nodebb.org, but after ten minutes it is still not visible at community.nodebb.org.
Ironically, I am not sure this reply will reach community.nodebb.org either.
-
S support@community.nodebb.org shared this topic
-
Hi! I am also having federation issues on a fresh install of 4.0.3. For example, I can not see the content of all the posts here including the original post. I think I see the content of around half of the posts. I tried to reply on another post on community.nodebb.org, but after ten minutes it is still not visible at community.nodebb.org.
Ironically, I am not sure this reply will reach community.nodebb.org either.
-
@reynir OK great! This one went through. However, I still only see about half of the posts.
(Finally, sorry for barging in on your topic - perhaps we can fork the topic somehow)
@reynir@forum.fedi.dk the post content being blank issue might be an unrelated bug. I'm still trying to figure out that one.
-
@reynir@forum.fedi.dk the post content being blank issue might be an unrelated bug. I'm still trying to figure out that one.
@julian@community.nodebb.org thanks for the reply! Is there a tracking issue I can subscribe to?
(I am having a lot of fun with our new NodeBB instance btw!)
-
@julian@community.nodebb.org thanks for the reply! Is there a tracking issue I can subscribe to?
(I am having a lot of fun with our new NodeBB instance btw!)
@reynir@forum.fedi.dk there wasn't, so I added one:
-
@julian That and upgrading to 4.0.4 helped a little – at least direct messages are coming through, but following still not working in either direction. Following seems to be set up correctly and confirmed on both the forum and other AP instances. Testing with Friendica and Mastodon. Only the messages are stopped somewhere.
-
@julian I am now unable to import threads using the search area. It worked a few days ago (before 4.0.4) and maybe before changing http to https in config.json. Now I can only follow users without actually following their content (no following is operational). While importing threads worked, it was still useless, because I couldn't join in on conversations.
Yesterday I experimented with different proxy_pass values in my nginx proxy.conf file:proxy_pass http://forum_n66_pl;
– original configurationproxy_pass http://127.0.0.1:4567;
– no effect on AP behaviour, nodebb's admin privileges affectedproxy_pass https://forum_n66_pl;
– resulted in a "Bad Gateway" error.
I attach the recent log file: https://u.pcloud.link/publink/show?code=XZun2L5Zy2PaNwGjuh72kxKbh6Wl9jEb4FmX
Please tell me you know how to fix it.
-
@Jakub-Urbanowicz
http://forum_n66_pl
this suggests there's an upstream block.Can you paste your entire nginx config?
-
Dette indlæg er slettet!
-
@julian just a moment; it's a bit complex, because configuration is divided into several files.
-
@Jakub-Urbanowicz
http://forum_n66_pl
this suggests there's an upstream block.Can you paste your entire nginx config?
@julian Please find attached a summary of my nginx settings.
The back-end installation of NodeBB was done manually in a home directory, while the reverse proxy is part of on automated server solution called Webinoly. It is typically used for self-hosting WordPress, but not only. It worked pretty well before the advent of Federation capabilities, so I wasn't bothered. I just uncommented some proxy headers in /etc/nginx/apps.d/forum.n66.pl-proxy.conf and added "X-NginX-Proxy true" as per documentation. Mongodb (7.0) is provided from a deb repository as is nodejs.
I'm not sure why the web root directory as mentioned in /etc/nginx/sites-available/forum.n66.pl does not exist (root /var/www/forum.n66.pl/htdocs). I don't even have /var/www/forum.n66.pl/.
Thank you for helping me. -
@julian Please find attached a summary of my nginx settings.
The back-end installation of NodeBB was done manually in a home directory, while the reverse proxy is part of on automated server solution called Webinoly. It is typically used for self-hosting WordPress, but not only. It worked pretty well before the advent of Federation capabilities, so I wasn't bothered. I just uncommented some proxy headers in /etc/nginx/apps.d/forum.n66.pl-proxy.conf and added "X-NginX-Proxy true" as per documentation. Mongodb (7.0) is provided from a deb repository as is nodejs.
I'm not sure why the web root directory as mentioned in /etc/nginx/sites-available/forum.n66.pl does not exist (root /var/www/forum.n66.pl/htdocs). I don't even have /var/www/forum.n66.pl/.
Thank you for helping me.@Jakub-Urbanowicz whatever your nginx config, if it was working before, it should not require any changes to support federation.
I would revert back to a working config if you're seeing issues with regular usage of NodeBB. Otherwise if the site is loading fine then tweaking nginx (probably) won't fix anything and the problem likely lies elsewhere.
I will look into your configs tomorrow.