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

[Bug]: Some posts not federating, unable to be manually synced #3525

Closed
4 tasks done
TeaHands opened this issue Jul 7, 2023 · 7 comments
Closed
4 tasks done

[Bug]: Some posts not federating, unable to be manually synced #3525

TeaHands opened this issue Jul 7, 2023 · 7 comments
Labels
bug Something isn't working

Comments

@TeaHands
Copy link

TeaHands commented Jul 7, 2023

Requirements

  • Is this a bug report? For questions or discussions use https://lemmy.ml/c/lemmy_support
  • Did you check to see if this issue already exists?
  • Is this only a single bug? Do not put multiple bugs in one issue.
  • Is this a backend issue? Use the lemmy-ui repo for UI / frontend issues.

Summary

I'm aware of the ongoing federation issues in general, and have been using the workaround of searching for specific post / comment URLs to force sync with my home instance. However in the last couple of days I've noticed a new variant of post that doesn't federate to lemmy.world specifically, and is also unable to be manually synced. See various examples here: https://lemmy.world/post/1090999

Not currently sure whether this is affecting all instances and is a Lemmy-wide issue of some kind (perhaps due to instances involved all running on different versions?), or if this is a lemmy.world specific bug that shouldn't be reported here. Apologies if it turns out to be the latter.

Steps to Reproduce

  1. See that https://lemm.ee/post/703295 is a post that exists
  2. Visit https://lemmy.world/c/[email protected] and see that the post is not federated
  3. Attempt to manually search for https://lemm.ee/post/703295 from lemmy.world to force sync, = no results

Technical Details

The three problem posts so far originate from three different instances. Versions numbers are:

BE: 0.18.1-rc.4-48-gf5378d0b4-kt.1 (lemmy.blahaj.zone)
BE: 0.18.1-rc.10 (lemm.ee)
BE: 0.18.0 (reddthat.com)

Version

BE: 0.18.1-rc.9-14-ge71951309

Lemmy Instance URL

lemmy.world

@TeaHands TeaHands added the bug Something isn't working label Jul 7, 2023
@wereii
Copy link
Contributor

wereii commented Jul 7, 2023

Moved from different issue as this sounds exactly like the same problem, except that I did get partial sync for some posts and then some posts do not load/sync at all and posts are missing from communities.

UI: 0.18.1-rc.11 (image.revision: 02198f10)
BE: 0.18.1-rc.10 (image.revision: 22cdcc6)

I first loaded this post about an hour and something13hours ago, as of writing it has not synced yet.

Trying a different other instance yields the same thing:

Restarting services does not help it, purging made it worse as what was synced before is now gone.

Making a post from my instance on another does not seem to have this syncing problem - https://biglemmowski.win/post/23160

Edit:
Tried to downgrade to rc.4.
Manually putting links to comments to this post https://biglemmowski.win/post/23182 into search made the instance load them (without votes).

Edit2:
The only weird logs I get are these, not sure if it has to do with anything here.

lemmy-lemmy-1     | 2023-07-07T10:22:30.009487Z  INFO actix_web::middleware::logger: 54.36.178.108 'POST /inbox HTTP/1.0' 200 0 '-' 'Lemmy/0.18.1-rc.10; +https://lemmy.ml' 0.100993
lemmy-lemmy-1     | 2023-07-07T10:22:30.053759Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: data did not match any variant of untagged enum AnnouncableActivities
lemmy-lemmy-1     |    0: lemmy_apub::activities::community::announce::receive
lemmy-lemmy-1     |              at crates/apub/src/activities/community/announce.rs:46
lemmy-lemmy-1     |    1: lemmy_server::root_span_builder::HTTP request
lemmy-lemmy-1     |            with http.method=POST http.scheme="https" http.host=biglemmowski.win http.target=/inbox otel.kind="server" request_id=2e8ef58a-0911-4bb6-8b72-538b33c4a317 http.status_code=400 otel.status_code="OK"
lemmy-lemmy-1     |              at src/root_span_builder.rs:16
lemmy-lemmy-1     | LemmyError { message: None, inner: data did not match any variant of untagged enum AnnouncableActivities, context: SpanTrace [{ target: "lemmy_apub::activities::community::announce", name: "receive", file: "crates/apub/src/activities/community/announce.rs", line: 46 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "\u{1b}[3mhttp.method\u{1b}[0m\u{1b}[2m=\u{1b}[0mPOST \u{1b}[3mhttp.scheme\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"https\" \u{1b}[3mhttp.host\u{1b}[0m\u{1b}[2m=\u{1b}[0mbiglemmowski.win \u{1b}[3mhttp.target\u{1b}[0m\u{1b}[2m=\u{1b}[0m/inbox \u{1b}[3motel.kind\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"server\" \u{1b}[3mrequest_id\u{1b}[0m\u{1b}[2m=\u{1b}[0m2e8ef58a-0911-4bb6-8b72-538b33c4a317 \u{1b}[3mhttp.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m400 \u{1b}[3motel.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"OK\"", file: "src/root_span_builder.rs", line: 16 }] }
lemmy-lemmy-1     | 2023-07-07T10:22:30.053836Z  INFO actix_web::middleware::logger: 54.36.178.108 'POST /inbox HTTP/1.0' 400 69 '-' 'Lemmy/0.18.1-rc.10; +https://lemmy.ml' 0.002368
lemmy-lemmy-1     | 2023-07-07T10:29:00.842905Z  INFO actix_web::middleware::logger: 34.199.116.47 'POST /inbox HTTP/1.0' 200 0 '-' 'Lemmy/0.18.1-rc.4-48-gf5378d0b4-kt.1; +https://lemmy.blahaj.zone' 1.978456
lemmy-lemmy-1     | 2023-07-07T10:29:01.165167Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: data did not match any variant of untagged enum AnnouncableActivities
lemmy-lemmy-1     |    0: lemmy_apub::activities::community::announce::receive
lemmy-lemmy-1     |              at crates/apub/src/activities/community/announce.rs:46
lemmy-lemmy-1     |    1: lemmy_server::root_span_builder::HTTP request
lemmy-lemmy-1     |            with http.method=POST http.scheme="https" http.host=biglemmowski.win http.target=/inbox otel.kind="server" request_id=65bea767-1690-4cec-aeac-672f25c3ac86 http.status_code=400 otel.status_code="OK"
lemmy-lemmy-1     |              at src/root_span_builder.rs:16
lemmy-lemmy-1     | LemmyError { message: None, inner: data did not match any variant of untagged enum AnnouncableActivities, context: SpanTrace [{ target: "lemmy_apub::activities::community::announce", name: "receive", file: "crates/apub/src/activities/community/announce.rs", line: 46 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "\u{1b}[3mhttp.method\u{1b}[0m\u{1b}[2m=\u{1b}[0mPOST \u{1b}[3mhttp.scheme\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"https\" \u{1b}[3mhttp.host\u{1b}[0m\u{1b}[2m=\u{1b}[0mbiglemmowski.win \u{1b}[3mhttp.target\u{1b}[0m\u{1b}[2m=\u{1b}[0m/inbox \u{1b}[3motel.kind\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"server\" \u{1b}[3mrequest_id\u{1b}[0m\u{1b}[2m=\u{1b}[0m65bea767-1690-4cec-aeac-672f25c3ac86 \u{1b}[3mhttp.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m400 \u{1b}[3motel.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"OK\"", file: "src/root_span_builder.rs", line: 16 }] }

@wereii
Copy link
Contributor

wereii commented Jul 7, 2023

I did not notice the post I was trying to force sync is not local to that instance but is from a different one so disregard this.


With 0.18.1

When I try forcefully syncing a post that has not been visited yet I get no results (in the search) and always get this warning :

lemmy-lemmy-1     | 2023-07-07T15:09:48.437520Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: couldnt_find_object: Other errors which are not explicitly handled
lemmy-lemmy-1     |    0: lemmy_apub::fetcher::search::search_query_to_object_id
lemmy-lemmy-1     |              at crates/apub/src/fetcher/search.rs:19
lemmy-lemmy-1     |    1: lemmy_apub::api::resolve_object::resolve_object
lemmy-lemmy-1     |            with data=Query(ResolveObject { q: "https://lemmy.ml/post/1776178", auth: Sensitive })
lemmy-lemmy-1     |              at crates/apub/src/api/resolve_object.rs:15
lemmy-lemmy-1     |    2: lemmy_server::root_span_builder::HTTP request
lemmy-lemmy-1     |            with http.method=GET http.scheme="https" http.host=biglemmowski.win http.target=/api/v3/resolve_object otel.kind="server" request_id=fbcd5e90-a73d-4855-9d12-25c72186a8aa http.status_code=400 otel.status_code="OK"
lemmy-lemmy-1     |              at src/root_span_builder.rs:16
lemmy-lemmy-1     | LemmyError { message: Some("couldnt_find_object"), inner: Other errors which are not explicitly handled, context: SpanTrace [{ target: "lemmy_apub::fetcher::search", name: "search_query_to_object_id", file: "crates/apub/src/fetcher/search.rs", line: 19 }, { target: "lemmy_apub::api::resolve_object", name: "resolve_object", fields: "\u{1b}[3mdata\u{1b}[0m\u{1b}[2m=\u{1b}[0mQuery(ResolveObject { q: \"https://lemmy.ml/post/1776178\", auth: Sensitive })", file: "crates/apub/src/api/resolve_object.rs", line: 15 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "\u{1b}[3mhttp.method\u{1b}[0m\u{1b}[2m=\u{1b}[0mGET \u{1b}[3mhttp.scheme\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"https\" \u{1b}[3mhttp.host\u{1b}[0m\u{1b}[2m=\u{1b}[0mbiglemmowski.win \u{1b}[3mhttp.target\u{1b}[0m\u{1b}[2m=\u{1b}[0m/api/v3/resolve_object \u{1b}[3motel.kind\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"server\" \u{1b}[3mrequest_id\u{1b}[0m\u{1b}[2m=\u{1b}[0mfbcd5e90-a73d-4855-9d12-25c72186a8aa \u{1b}[3mhttp.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m400 \u{1b}[3motel.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"OK\"", file: "src/root_span_builder.rs", line: 16 }] }

This is for any post, tried https://lemmy.ml/post/1776178
Searching a comment link from that post also does not find it.

When force loading a community I do get a result but different warning got logged (tried loading ![email protected] which is on 0.18.0)

lemmy-lemmy-1     | 2023-07-07T15:14:02.103199Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: data did not match any variant of untagged enum AnnouncableActivities
lemmy-lemmy-1     |    0: lemmy_apub::activities::community::announce::receive
lemmy-lemmy-1     |              at crates/apub/src/activities/community/announce.rs:46
lemmy-lemmy-1     |    1: lemmy_server::root_span_builder::HTTP request
lemmy-lemmy-1     |            with http.method=POST http.scheme="https" http.host=biglemmowski.win http.target=/inbox otel.kind="server" request_id=ef5ead56-0066-48c9-89ea-29064c4a788c http.status_code=400 otel.status_code="OK"
lemmy-lemmy-1     |              at src/root_span_builder.rs:16
lemmy-lemmy-1     | LemmyError { message: None, inner: data did not match any variant of untagged enum AnnouncableActivities, context: SpanTrace [{ target: "lemmy_apub::activities::community::announce", name: "receive", file: "crates/apub/src/activities/community/announce.rs", line: 46 }, { target: "lemmy_server::root_span_builder", name: "HTTP request", fields: "\u{1b}[3mhttp.method\u{1b}[0m\u{1b}[2m=\u{1b}[0mPOST \u{1b}[3mhttp.scheme\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"https\" \u{1b}[3mhttp.host\u{1b}[0m\u{1b}[2m=\u{1b}[0mbiglemmowski.win \u{1b}[3mhttp.target\u{1b}[0m\u{1b}[2m=\u{1b}[0m/inbox \u{1b}[3motel.kind\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"server\" \u{1b}[3mrequest_id\u{1b}[0m\u{1b}[2m=\u{1b}[0mef5ead56-0066-48c9-89ea-29064c4a788c \u{1b}[3mhttp.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m400 \u{1b}[3motel.status_code\u{1b}[0m\u{1b}[2m=\u{1b}[0m\"OK\"", file: "src/root_span_builder.rs", line: 16 }] }

@IAmCaligvla
Copy link

IAmCaligvla commented Jul 8, 2023

I think this might be related to what I'm experiencing as well. From both sh.itjust.works and lemmy.dbzer0.com I can't see any posts, comments or anything on certain kbin magazines e.g. [email protected]. If you access https://sh.itjust.works/c/[email protected] or https://lemmy.dbzer0.com/c/[email protected] you'll see that they're missing all the comments and posts.

I've managed to force the servers to sync specific posts from other magazines by redirecting from a post on kbin to either sh.itjust.works or lemmy.dbzer0.com via userscripts, but the comments are not synced in turn.

@SnipeAT
Copy link

SnipeAT commented Jul 8, 2023

i'm having a similar issue in that certain communities posts are populating at all. i have deleted and reinstalled my instance with the same user name. does this have anything to do with certificates of the ?

@TeaHands
Copy link
Author

TeaHands commented Jul 8, 2023

So after at least two of the servers involved upgraded to 0.18.1, this morning I found that all posts mentioned in my original issue are now able to be manually synced. I'm guessing this was indeed an incompatibility between the different versions?

Something to keep an eye on though, if anyone can figure out the technical reason for it, as reducing engagement on things posted elsewhere AND making existing remote communities look emptier from the pov of .world users is not doing us any favours in terms of decentralisation efforts.

@IAmCaligvla and @SnipeAT I'm not sure if your issues are the same. There are federation problems in general but are you able to manually search and sync posts that way? If so this was a different issue.

@wereii If you were in fact having the same issue, the upgrade might fix it!

@TeaHands TeaHands closed this as completed Jul 8, 2023
@wereii
Copy link
Contributor

wereii commented Jul 8, 2023

I am at 0.18.1 and these are still stuck unsynced, putting them into search does not sync them

--

--

Both other instances are at 0.18.1 too.
I could try purging the posts later.
E: Purged, updated the links. Still nothing.

@wereii
Copy link
Contributor

wereii commented Jul 9, 2023

I will have to request a reopen of this issue as I can't resolve it.

Checked my nginx config many times as well as instance settings, even a bit of code around the search function.

My current assumptions

If I put a remote post link into the search bar of a local instance then the local instance:
a) returns if already found locally
b) fetch from remote if not
?) does it re-fetch/sync/check-in with the other instance if the post is already locally available and update the local, or otherwise, once a post is synced it is never directly fetched again and the only way it updates is thru subscribed updates

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants