hello,

i tried to start a lemmy docker but have an error on Lemmy-ui

There was an error on the server. Try refreshing your browser. If that doesn't work, come back at a later time.

I have checked log in Lemmy-ui, there are

Lemmy-ui v0.19.2 started listening on http://0.0.0.0:1234 API error: FetchError: request to http://0.0.0.0:8536/api/v3/site? failed, reason: connect ECONNREFUSED 0.0.0.0:8536

what is the problem here?

  • @Die4Ever
    link
    1
    edit-2
    6 months ago

    What about the logs for lemmy? Also can you share your docker-compose.yml and lemmy.hjson? Make sure to redact the password from pictrs and postgres

    • Tony TrầnOP
      link
      fedilink
      Tiếng Việt
      16 months ago

      I fixed it and it runs well by now. It weird when the lemmy-ui listen on 1234 but nginx proxy open port on 1236 and not listen on lemmy-ui on 1234

      • haui
        link
        fedilink
        15 months ago

        This sounds like my setup. With nginx and docker you can directly connect lemmy-ui and lemmy instead of using the outside ip or ports. I use portainer to manage my containers and use the container names to link nginx to it (like http://lemmy:1234)