Skip Navigation
r/patriots spotted at the lemmy counter
  • There he is, on his way to signing the contract... for the car rental! And then onto signing the contract with the Patriots! Let's go!

  • Do your part, try not to lurk!
  • Aww man, no auto-play of gifs? OK...

  • Have an instance running, now what?
  • This was the key that led to to the fix. Thank you!

  • Have an instance running, now what?
  • Its federating to lemmy.ca now. : https://lemmy.ca/c/wow@lemmy.ml

    I tried search for https://lemmy.ca/c/wow@lemmy.ml for giggles, and that also had the exact timeout error.

  • Have an instance running, now what?
  • I have no idea what that means, either. I checked all the admin sections, and nothing pending anywhere on my end.

  • Have an instance running, now what?
  • That's a great idea. I will try some other communities.

  • Have an instance running, now what?
  • 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?

  • Have an instance running, now what?
  • It's possible I have something misconfigured... but what I don't know!

  • Have an instance running, now what?
  • Thank you for this. I will look through it now to see what I can learn.

  • Have an instance running, now what?
  • !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

  • Have an instance running, now what?
  • 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.

  • Have an instance running, now what?
  • No, it is not there.

  • Have an instance running, now what?
  • 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.

  • Have an instance running, now what?
  • https://hakbox.social

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

  • Lemmy Support @lemmy.ml Slashzero @lemmy.ml
    Have an instance running, now what?

    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) to the network. To list all the containers: docker container ls

    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

    37
    Help Troubleshooting Email Verification on Self Hosted
  • I spent the last few hours trying to get mail working on my instance. Eventually I set up postfix on my linux host and had the lemmy docker container use that. Happy to say it is working.

    https://lemmy.ml/post/1185795

  • Help Troubleshooting Email Verification on Self Hosted
  • Does the gmail SMTP server have a limit on how many emails can be sent per day?

  • Help setting up lemmy instance
  • You need to put the container name inside the docker network as the host.

    I was not sure what you meant by this. The closest possibly was this?

    lemmy-ui:
        image: dessalines/lemmy-ui:0.17.4-rc.4
        networks:
          - lemmyinternal
        environment:
          # this needs to match the hostname defined in the lemmy service
          - LEMMY_UI_LEMMY_INTERNAL_HOST=lemmy:8536
          # set the outside hostname here
          - LEMMY_UI_LEMMY_EXTERNAL_HOST=localhost:1236
          - LEMMY_HTTPS=true
        depends_on:
          - lemmy
        restart: always
    

    I changed localhost:1236 to my FQDM:1236 and it did not seem to have any impact either way. Maybe it did? I honestly don't know. But, I thank you for the help anyway!

  • Help setting up lemmy instance
  • I’m trying Brevo right now which has a free SMTP relay allowing 300 emails every 24 hours. The Brevo admin console shows green, relay setup and verified (adding some TXT DNS entries on my domain registrar).

    As far as I can tell, everything is setup, and lemmy.hjson has the email block with the correct smtp-relay address, port, user and password.

    I bring lemmy down and back up to pick up the new settings, but when I go add an email address to my user profile and click save, I get an error:

    email_send_failed: Connection error: time out 0: lemmy_api::local_user::save_settings::perform

    I tried updating to the latest lemmy release candidates for both BE and UI, too. No difference.

  • Help setting up lemmy instance
  • GoDaddy, nothing free, but they have office 365 for $1.99 (USD) a month.

    I’ll check out Gandi, but assume you can only use their relay if you registered the domain through them?

  • Help setting up lemmy instance
  • Valid point on self hosted SMTP, but I’m just experimenting and didn’t want to waste any money on an SMTP / relay service. But I suppose if folks could recommend a good external smtp service I’ll have a look.

  • Lemmy Support @lemmy.ml Slashzero @lemmy.ml
    Help setting up lemmy instance

    Hi! I decided to experiment with my own instance. Went the docker route, and got everything working, except mail.

    I setup postfix, and I can send mail to yahoo from the cli, however neither localhost:25 or actual.fqdm:25 work from the running lemmy_lemmy_1 container. The error is:

    • FQDM: email_send_failed: Connection error: Connection refused (os error 111)
    • localhost:25 email_send_failed: Connection error: Address not available (os error 99)

    Has anyone seen this? Feels like a connectivity issue between the running container and host.

    This is not letting me save an email address in my user settings.

    I guess the intent is for people to use an external smtp service, rather than set up their own?

    ------------------------------------------ UPDATE:

    tldr; I got mail working with postfix running locally.

    • I tried several "free" smtp relay services, and consistently got timeout errors.
    • Out of frustration, I re-enabled my local postfix server and reconfigured Lemmy back to that.
    • Tailing the postfix logs, I noticed it was rejecting the connection from the Lemmy instance with a relay not allowed error, which had an "internal IP of 192.x" (from the lemmyinternal network).
    • So, I added that IP /32 to "mynetworks" on the host in /etc/postfix/main.cf, restarted postfix, and my instance can now send out emails. Yay!

    Thanks for the suggestions everyone. I'll leave this post here in case anyone else runs into this problem.

    16
    slashzero Slashzero @lemmy.ml
    Posts 2
    Comments 39