Ticket: 502 Error on Docker Container Registration Submission
@nahtnam Just created a ticket
Question: I am trying to install the docker container. I can load up the UI and I see the registration page, but when I try to submit, I get a 502 error. Anyone else experiencing this?
Attempted: Scrolling through the logs I get this error:
Working On: Docker
Using Postiz On: docker image + separate postgres + redis, no errors connecting to both
Take it from here @Postiz
Question: I am trying to install the docker container. I can load up the UI and I see the registration page, but when I try to submit, I get a 502 error. Anyone else experiencing this?
Attempted: Scrolling through the logs I get this error:
Error: listen EADDRINUSE: address already in use :::5000] Backend failed to start on port 5000
, just not sure how to fix it
Working On: Docker
Using Postiz On: docker image + separate postgres + redis, no errors connecting to both
Take it from here @Postiz
3 Replies
It's weird that the UI loads with no problem. I see the next.js server starting in the logs, as well as the logs for nestjs which is what fails to start. These are my env vars
Please watch our last live, it can solve your problem
https://limewire.com/d/02dba0f5-4765-40d3-be68-3bc42156f6ed#BkalQy46lGUHooJTrkJAYyRAMXswVOxrIi7XYDVp_lU
Thanks I will watch it
Confirmed:
- My backend is running, /api redirects to /auth
- I only expose 5000
- No CORS error, the endpoint is actually failing
I wonder if maybe it's trying to somehow connect to postiz.mydomain.com:3000? But I don't think the env vars are configured like that
https://postiz.mydomain.com/api/auth
returns bad gateway
{"level":"error","ts":1737796170.2270298,"logger":"http.log.error","msg":"dial tcp [::1]:3000: connect: connection refused","request":...
I do see
@Nevo David I fixed it by setting the env var PORT=3000
, for some reason nestjs was starting on port 5000 (could be a coolify default or something)