[bug] Lemmy and kbin federation does not work #571
Labels
No labels
approved, awaiting change
bug
configuration
documentation
duplicate
enhancement
extremely low priority
feature request
Fix it yourself
help wanted
invalid
mastodon_api
needs docs
needs tests
not a bug
planned
pleroma_api
privacy
question
static_fe
triage
wontfix
No milestone
No project
No assignees
7 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: AkkomaGang/akkoma#571
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Your setup
OTP
Extra details
No response
Version
v3.0.9
PostgreSQL version
12
What were you trying to do?
I was trying to follow some communities and users on https://kbin.sh (https://kbin.sh/u/clovis, https://kbin.sh/m/oblivion) and lemmy.world (https://lemmy.world/c/maliciouscompliance)
What did you expect to happen?
I expected the accounts and communities to be followed and appear in my timelines
What actually happened?
The follow request were stuck waiting, no activities appeared on my timeline.
I made two experimental fixes on my fork and I am now able to follow Lemmy communities
382a3e3a16
(See followers and following specs: https://www.w3.org/TR/activitypub/#followers-property)
629dfd23bc
I'm not sure I did not break anything so I'll wait a bit before making PRs.
Kbin federation still not work, with no error this time. Follow requests are just pending.
Logs
Severity
I can manage
Have you searched for this issue?
There is also some issues regarding the transmogrifier:
Yeah, I already commented about the transmogrifier issues in upstream: https://git.pleroma.social/pleroma/pleroma/-/issues/3133
Also: whenever I follow a PeerTube or Lemmy/Kbin account, it takes forever to load the corresponding data when I manually browse each account from my instance.
Hi there, as a certified forklift driver, I'd like to clarify that Akkoma is not a "downstream" or "upstream" fork of Pleroma. Instead, it's an independent fork that doesn't try to follow or track Pleroma's development. It's like how Mobilizon uses Pleroma code, but has its own distinct goals and needs. It's important to avoid referring to Pleroma as "upstream", as the two projects are unrelated. I hope this clears up any confusion!
If you encounter any issues with Pleroma, please bring them up with the Pleroma team. Similarly, if you have any issues with Akkoma, please bring them up with the Akkoma team. Thank you!
Hello,
Thank you for submitting this pull request. However, I would advise against accepting the
activity+json
MIME type for WebFinger queries. The reason being that the returned data is notactivity+json
or evenld+json
, but eitherjrd+json
orxrd+xml
. WebFinger has no support for returningactivity+json
data, and I am against returning the wrong data type to an HTTP request, which federation heavily relies on. Therefore, I suggest that Lemmy or kbin should fix their software to request the proper MIME types.Regarding the fix for the followers/following collections, it should already be handled by
maybe_update_follow_information/1
, suggesting that the bug is somewhere else. Therefore, I would not suggest accepting this patch and would suggest trying to find the root of the issue.Thank you again for your contribution.
Best regards,
Certified Forklift Driver
Hello,
Thank you for your review, indeed those patches are experimental, and I didn't submit a pull request because of that. My objective being to provide as much information as I can.
Those fixes do not allow to fix federation with Lemmy/Kbin since there is still issues even with them (Notably with the transmogriefier with Like/Dislike activities).
Concerning the MIME type, I'll take a look at Lemmy's code to understand what's going on.
Made an issue on their side: https://github.com/LemmyNet/lemmy/issues/3222
Thanks for pointing about
maybe_update_follow_information/1
, indeed the check made L1681 does not seems to work as expected.Looks like Clovis has already posted the issue into the proper upstream - that is, the Lemmy issue tracker. Should I do the same thing on Kbin or do I defer to Clovis?
hi ! don't hesitate to create the issue for kbin !
Lemmy has apparently fixed the issue on their side regarding MIME type
https://github.com/LemmyNet/lemmy/issues/3222
On akkoma's side there is still this
maybe_update_follow_information/1
check on L1681 that does not seems to work as expected.maybe_update_follow_information can fail without issue, that isn't really the biggest deal
First of all, I've disabled authfetch on my side, and I think it's the only way to federate with Lemmy at all currently.
Posting to lemmy works reliably if I already have a post to reply to on Akkoma side: https://awful.systems/comment/385
Searching for posts that weren't already fetched is wonky.
I can get posts from https://szmer.info reliably, from what I've seen.
For https://awful.systems it sometimes works and sometimes doesn't:
(UPDATE nevermind, it looks like Lemmy just doesn't serve
.well-known/host-meta
at all so that's not it)Fetching from https://lemmy.blahaj.zone doesn't seem to work at all, I'm getting errors like:
I'll look more into this.
Huh, I have been able to post to Lemmy and Kbin from Akkoma for months; it doesn't always but it it usually does.
Here is one example: https://lemmy.zip/post/2441566
But it stopped working early January, maybe because I turned on AF. I turned it off today but not sure of that really helped.
It doesn't work on Kbin or PieFed either. PieFed I've never gotten it to work but it worked fine on Kbin and Lemmy before 🤷🏻♀️
I see and boost their threads and comments on my own instance just fine and my own replies on my own instance, they just don't show up on the remote.
https://github.com/LemmyNet/lemmy/issues/4336#issuecomment-1931801089 🤷🏻♀️
@snan the second post you referenced on GitHUb also doesn’t show up on akkoma-fe, are you sure this is a publicly-visible, non-deleted post?
As for getting the activity, you can directly get all related activities (in case it becomes relevant) from the database like below, assuming default user and DB names:
sudo -u postgres psql
(adjust for Docker)\c akkoma akkoma
And as a suggestion, it may be helpful for Lemmy devs if you also provide an example of an older post which did federate successfully as a point of comparison :)
Wonderful advice, thank you ♥︎
I'll get on that 🙏🏻