this post was submitted on 17 Jan 2024
1 points (100.0% liked)

Lemmy Support

4657 readers
14 users here now

Support / questions about Lemmy.

Matrix Space: #lemmy-space

founded 5 years ago
MODERATORS
 

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?

you are viewing a single comment's thread
view the rest of the comments
[–] Die4Ever@programming.dev 1 points 10 months ago* (last edited 10 months ago) (1 children)

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

[–] thanh_tan@lemmy.world 1 points 10 months ago (1 children)

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_lemmy@lemmy.giftedmc.com 1 points 9 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)