Skip to content

Plunk API is failing mere minutes after being restarted. #140

Open
@MaxDusdal

Description

@MaxDusdal

I am currently running Coolify on a Hetzner VPS with a wildcard domain configured to the VPS. HTTPS is served using Let's Encrypt. I have deployed Coolify using both the Docker Compose setup provided in the official documentation and the one-click service package.

Initially, the instance functions as expected for about a minute. However, it subsequently encounters an issue where I am redirected back to the login page, and all API requests fail with a 502 Bad Gateway error.

I have reviewed all open issues in the Coolify GitHub repository related to similar problems (including mentions of "plunk") but have not found a resolution.

Notably, this behavior has so far only been reproducible using the Docker Compose setup from the documentation, and not the one-click install version provided by Coolify. When using the Coolify one-click installation, the /api route consistently times out—even if the frontend briefly appears functional in the browser. In contrast, when deploying via the Docker Compose setup, the /api route returns a response indicating that the backend is functional:

{ "code": 404, "error": "Not Found", "message": "Unknown route", "time": 1732484712303 }

Additionally, I observed that setting API_URL to https://$subdomain$/api during deployment works briefly before failing. However, redeploying with http://localhost:4000 as the API_URL allows the instance to run longer—until I refresh the browser without cache. At that point, the Next.js app's build manifest updates to reflect the localhost:4000 API URL, causing further disruptions. As of right now, i cannot explain this behaviour.

Despite significant time spent troubleshooting, I have been unable to identify the root cause or resolve this issue. Any guidance or insights would be greatly appreciated.

Environment variables are configured as follows:

`
API_URI=http://$my domain$/api
APP_URI=https://$my domain$

...aws stuff...
`

I have already looked into #44 and the errors are the same in my instance.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingself-hostingIssues related to self-hosting Plunk

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions