Troubles getting Federation to work on docker

Federation on my instance isnt working although I enabled it. I'm getting this error when I try to search for lemmy communitys on other instances

lemmy-lemmy-1 | at src/root_span_builder.rs:16 lemmy-lemmy-1 | 2023-06-07T15:54:10.678358Z ERROR HTTP request{http.method=GET http.scheme="https" http.host=lemmy.ohaa.xyz http.target=/api/v3/ws otel.kind="server" request_id=4cd438eb-f7ae-4299-baff-4b83a011dafe http.status_code=101 otel.status_code="OK"}: lemmy_server::api_routes_websocket: couldnt_find_object: invalid query lemmy-lemmy-1 | 0: lemmy_apub::fetcher::search::search_query_to_object_id lemmy-lemmy-1 | at crates/apub/src/fetcher/search.rs:17 lemmy-lemmy-1 | 1: lemmy_apub::api::resolve_object::perform lemmy-lemmy-1 | with self=ResolveObject { q: "sdfsdf", auth: Some(Sensitive) } lemmy-lemmy-1 | at crates/apub/src/api/resolve_object.rs:21 lemmy-lemmy-1 | 2: lemmy_server::root_span_builder::HTTP request lemmy-lemmy-1 | with http.method=GET http.scheme="https" http.host=lemmy.ohaa.xyz http.target=/api/v3/ws otel.kind="server" request_id=4cd438eb-f7ae-4299-baff-4b83a011dafe http.status_code=101 otel.status_code="OK" lemmy-lemmy-1 | at src/root_span_builder.rs:16
Im using the docker container with default nginx config behind a caddy reverse proxy on another machine. My instance url if that helps: https://lemmy.ohaa.xyz

2 points · 8 comments · view on lemmy.world

8 Comments

Oha@feddit.de · 1 pts · 3y

I have the exact same error with the ansible playbook

semibreve42@lemmy.dupper.net · 1 pts · 3y (6 replies)

Does your docker network setup have the lemmy server on an internal network with no external access? The default docker config is setup that way and caused what you're describing for me. Fastest fix is comment out the "internal: true" from the docker compose file, but you may want to consider the security implications of that.

Oha@feddit.de · 1 pts · 3y (5 replies)
semibreve42@lemmy.dupper.net · 2 pts · 3y (4 replies)

Yeah. Did you down and up the docker and see if the issue is resolved?

Oha@feddit.de · 1 pts · 3y (1 reply)

trying that right now

Oha@feddit.de · 1 pts · 3y

same error after modifying the file and recreating the container

Oha@feddit.de · 1 pts · 3y (1 reply)

Restarted and recreated the container and the host. still nothing

semibreve42@lemmy.dupper.net · 1 pts · 3y

Not sure then, sorry :/