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 @pe1uca@lemmy.pe1uca.dev 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

  • KNova@links.dartboard.social
    link
    fedilink
    English
    arrow-up
    3
    ·
    1 year ago

    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.

        • tezoatlipoca@lemmy.ca
          link
          fedilink
          English
          arrow-up
          2
          ·
          1 year ago

          I think mebbe that’s what OP is missing. A new (empty) instance doesn’t know anything about what other communities exist. @slashzero@lemmy.ml you gotta search for the communities before your instance will start snarfing posts.

          • KNova@links.dartboard.social
            link
            fedilink
            English
            arrow-up
            2
            ·
            1 year ago

            yeah, once I added about ~5 popular communities discovery became easier. People were suggesting other communities etc. so it helps your instance know whats out there.

            • tezoatlipoca@lemmy.ca
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              Well that begs the question then - if communities are “homed” on instances (although the same community can exist on two different homes as completely separate communities) and then get “subscribed” or federated to other instances through searching, how does one know what all communities exist? Short of going to, or scraping the /Communities page of each Lemmy or Kbin instance, how does one know whats available?

              Clearly we need a Lemmy411 Community. :)

              Be the change you want to see in the world: https://lemmy.ca/c/lemmy411 TADA!

              • KNova@links.dartboard.social
                link
                fedilink
                English
                arrow-up
                4
                ·
                1 year ago

                Discovery is still a challenge, but if instance admins subscribed to that it would make it easier on users.

                What I think would be better would be to automatically send some kind of community digest out to other known instances once a week or something. That way if a user searches for a “music” community, they will get results from instances they may not personally know about.

          • Slashzero@lemmy.mlOP
            link
            fedilink
            English
            arrow-up
            1
            ·
            edit-2
            1 year ago

            Thanks! I’ve been searching for known communities I have posts in, but not getting any hits. Using the full shorthand, like: !wow@lemmy.ml there are no results.

            • tezoatlipoca@lemmy.ca
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              I also find that sometimes the search takes… a while?

              So by wow you’re talking about the world of warcraft community @ lemmy.ml?

              Took a bit of futzing in the search screen but I see it:

              • Slashzero@lemmy.mlOP
                link
                fedilink
                English
                arrow-up
                1
                ·
                edit-2
                1 year ago

                Yes, I have a few comments in the world of warcraft community on lemmy.ml. When I search for that using the shortcode: !wow@lemmy.ml , I get an immediate response with no results.

                Server side, there is a timeout error in the log, but that is timing out in less than a second.

                I wonder if instances need to be allowed to interact with lemmy.ml?

                • tezoatlipoca@lemmy.ca
                  link
                  fedilink
                  English
                  arrow-up
                  2
                  ·
                  1 year ago

                  Naw, because sometimes it works and sometimes it don’t. I think lemmy.ml is just getting slammed right now.

                  Try it with a community from a different instance.

            • tezoatlipoca@lemmy.ca
              link
              fedilink
              English
              arrow-up
              2
              ·
              1 year ago

              Its federating to lemmy.ca now. : https://lemmy.ca/c/wow@lemmy.ml

              I just had to bash the search form a few times. Intra-instance community discovery/seraching seems to be a bit “sticky” for lack of a better way to describe.

              Also, as the “prime” instance lemmy.ml is getting hammered with new Reddit exodus users at the moment, so I suspect lemmy.ml may not be the most responsive atm.

        • Slashzero@lemmy.mlOP
          link
          fedilink
          English
          arrow-up
          1
          ·
          1 year ago

          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.

          • KNova@links.dartboard.social
            link
            fedilink
            English
            arrow-up
            1
            ·
            1 year ago

            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.

            • Slashzero@lemmy.mlOP
              link
              fedilink
              English
              arrow-up
              1
              ·
              edit-2
              1 year ago

              !social@links.dartboard.social

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

              ERROR HTTP request{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"}: lemmy_server::api_routes_websocket: couldnt_find_object: Request error: error sending request for url (https://links.dartboard.social/.well-known/webfinger?resource=acct:social@links.dartboard.social): operation timed out 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: "!social@links.dartboard.social", 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

              • KNova@links.dartboard.social
                link
                fedilink
                English
                arrow-up
                1
                ·
                1 year ago

                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.

                • Slashzero@lemmy.mlOP
                  link
                  fedilink
                  English
                  arrow-up
                  1
                  ·
                  1 year ago

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

      • NotaCat@lemmy.fmhy.ml
        link
        fedilink
        English
        arrow-up
        1
        ·
        1 year ago

        I can see your comment in your link but if I try to reply it says I have to login first. To what, I’m not sure since I’m logged in to comment here.

  • hllywluis@lemmy.ml
    link
    fedilink
    English
    arrow-up
    1
    ·
    1 year ago

    I’m also getting the same behavior while trying to use the Docker install on macOS. I tried the same fix but it’s not working, and it looks like I can’t access a community in my instance from another instance.

    • hllywluis@lemmy.ml
      link
      fedilink
      English
      arrow-up
      1
      ·
      edit-2
      1 year ago

      It looks like it’s getting the host properly though… Like it says federation enabled, host is kleptonix.com