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

Lemmy Support

4633 readers
2 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

Well, I have an instance running. At startup it outputs federation enabled, host is redacted, but I don't see anything when looking at all. I can't search for other instance communities. I thought I would be able to use my local instance to browse other instance/communities and post there from my instance. Is that not how this works? Did I miss a step setting it up?

Some more details: Any search I do results in a timeout error. This is from the lemmy logs.

In all my years of software development and testing, I've never seen an HTTP status code 101... 101: switching protocols


UPDATE: it's fixed!

Thanks to @[email protected] who pointed me in the right direction, and thank you everyone who contributed to this post in the comments with suggestions and support!

Here are the steps:

add a new network interface

docker network create lemmyexternal

connect the lemmy container (lemmy_lemmy_1, unless you renamed it)

docker network connect NETWORK_ID CONTAINER_ID

(you can get the network and container IDs with docker network ls and docker container ls)

modify the docker-compose.yml to add the new network, and link it to the lemmy service

networks:
  # communication to web and clients
  lemmyexternalproxy:
  lemmyexternal:
  # communication between lemmy services
  lemmyinternal:
    driver: bridge
    internal: true
services:
  lemmy:
    image: dessalines/lemmy:0.17.4-rc.1
    hostname: lemmy
    networks:
      - lemmyinternal
      - lemmyexternal

save, and restart

docker-compose restart

you are viewing a single comment's thread
view the rest of the comments
[–] [email protected] 3 points 1 year ago (21 children)

I thought I would be able to use my local instance to browse other instance/communities and post there from my instance. Is that not how this works?

That is how it works. What is your instance domain? I want to see if I can access it from my instance.

[–] [email protected] 3 points 1 year ago* (last edited 1 year ago) (20 children)

https://hakbox.social

Please let me know if it isn't working. My block & allow lists are empty.

[–] [email protected] 2 points 1 year ago (17 children)

Just submitted a test post to you.

When you search for remote communities, make sure you are searching for the entire URL (https://hakbox.social/c/test) or the shortcode ([email protected])

So for my social community, it would be [email protected] or https://links.dartboard.social/c/social

[–] [email protected] 1 points 1 year ago (1 children)

Thank you for helping me try to figure this out! I've tried full and shortcode but don't get any results.

I've searched for communities here on lemmy.ml I know exist via shortcode but not getting any results.

[–] [email protected] 1 points 1 year ago (2 children)

hey, this might be a bug - try going to your community tab now, and press the "All" button. See if my community shows up now.

[–] [email protected] 2 points 1 year ago* (last edited 1 year ago) (1 children)

[email protected]

Searched for that 👆 and checked the logs... timeout issue...

   0: lemmy_apub::fetcher::search::search_query_to_object_id
             at crates/apub/src/fetcher/search.rs:17
   1: lemmy_apub::api::resolve_object::perform
           with self=ResolveObject { q: "[[email protected]](/c/[email protected])", auth: Some(Sensitive) }
             at crates/apub/src/api/resolve_object.rs:21
   2: lemmy_server::root_span_builder::HTTP request
           with http.method=GET http.scheme="http" http.host=hakbox.social http.target=/api/v3/ws otel.kind="server" request_id=882fc7cd-bb3f-4df7-b6d4-a9bece907745 http.status_code=101 otel.status_code="OK"
             at src/root_span_builder.rs:16```
[–] [email protected] 1 points 1 year ago (1 children)

Interesting. I have a "subscribe pending" from your community. But I've gotten that with other instances before, not sure what it means. Its not like you need to approve my subscribe request.

[–] [email protected] 1 points 1 year ago

I have no idea what that means, either. I checked all the admin sections, and nothing pending anywhere on my end.

[–] [email protected] 1 points 1 year ago* (last edited 1 year ago)

No, it is not there.

load more comments (15 replies)
load more comments (17 replies)
load more comments (17 replies)