this post was submitted on 13 Jun 2023
9 points (100.0% liked)

Selfhosted

40183 readers
611 users here now

A place to share alternatives to popular online services that can be self-hosted without giving up privacy or locking you into a service you don't control.

Rules:

  1. Be civil: we're here to support and learn from one another. Insults won't be tolerated. Flame wars are frowned upon.

  2. No spam posting.

  3. Posts have to be centered around self-hosting. There are other communities for discussing hardware or home computing. If it's not obvious why your post topic revolves around selfhosting, please include details to make it clear.

  4. Don't duplicate the full text of your blog or github here. Just post the link for folks to click.

  5. Submission headline should match the article title (don’t cherry-pick information from the title to fit your agenda).

  6. No trolling.

Resources:

Any issues on the community? Report it using the report flag.

Questions? DM the mods!

founded 1 year ago
MODERATORS
 

I am running 0.17.3 version of Lemmy installed by docker-compose, in front of it I am running NPM (ngnix proxy manager) which handles all of my public facing docker images.

The local site seems to function except for one area, I can't search for or properly federate other instances. I believe I have narrow the problem down to one particular function:

https://lemmy.timgilbert.be/c/reddit@lemmy.ml

This results in a response in the browser:

404: couldnt_find_community

And an error log in docker logs for the server:

2023-06-13T01:48:29.196432Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: couldnt_find_community: Failed to resolve actor for reddit@lemmy.ml
   0: lemmy_apub::fetcher::resolve_actor_identifier
             at crates/apub/src/fetcher/mod.rs:16
   1: lemmy_apub::api::read_community::perform
           with self=GetCommunity { id: None, name: Some("reddit@lemmy.ml"), auth: Some(Sensitive) }
             at crates/apub/src/api/read_community.rs:30
   2: lemmy_server::root_span_builder::HTTP request
           with http.method=GET http.scheme="http" http.host=lemmy.timgilbert.be http.target=/api/v3/community otel.kind="server" request_id=d7e7d1e0-a03f-4e28-ad98-a4d6027b7a47 http.status_code=400 otel.status_code="OK"
             at src/root_span_builder.rs:16
LemmyError { message: Some("couldnt_find_community"), inner: Failed to resolve actor for reddit@lemmy.ml, context: "SpanTrace" }

If I hit this same URL but from a working site:

https://lemmy.world/c/reddit@lemmy.ml

and it receives a response.

I also see other other errors/warning all of which indicates some problem with my settings for in-bound:

2023-06-13T01:54:08.818240Z  WARN Error encountered while processing the incoming HTTP request: lemmy_server::root_span_builder: cant accept local object from remote instance
   0: lemmy_apub::objects::comment::verify
             at crates/apub/src/objects/comment.rs:135
   1: lemmy_apub::activities::create_or_update::comment::verify
             at crates/apub/src/activities/create_or_update/comment.rs:156
   2: lemmy_apub::activities::community::announce::receive
             at crates/apub/src/activities/community/announce.rs:149
   3: lemmy_server::root_span_builder::HTTP request
           with http.method=POST http.scheme="https" http.host=lemmy.timgilbert.be http.target=/inbox otel.kind="server" request_id=ddee706e-a793-409c-b6e7-eafe1fba646f http.status_code=400 otel.status_code="OK"
             at src/root_span_builder.rs:16
LemmyError { message: None, inner: cant accept local object from remote instance, context: "SpanTrace" }

I suspect that it has to do with having two NGINX wrappers, one that is setup by Lemmy's docker-compose and one for my NPM.

Anyone else have similar problems?

you are viewing a single comment's thread
view the rest of the comments
[–] ubergeek77@lemmy.ubergeek77.chat 5 points 1 year ago* (last edited 1 year ago) (1 children)

Try other instances, lemmy.ml is down right now. It's been going up and down all day. And when it's not down, federation is hours behind if not completely broken.

You can see it on lemmy.world because they were already federated, and you're seeing the cache.

[–] knaak@lemmy.timgilbert.be 2 points 1 year ago (1 children)

Oh, i see. Thanks for the reply; i guess I have a lot to learn still.

[–] ubergeek77@lemmy.ubergeek77.chat 4 points 1 year ago (1 children)

You're speaking to us here on lemmy.world, so I'm pretty sure you've got everything set up correctly!

[–] knaak@lemmy.timgilbert.be 2 points 1 year ago

pretty neat! From my perspective its local. Kind of amazing.