coollabsio / coolify

An open-source & self-hostable Heroku / Netlify / Vercel alternative.
https://coolify.io
Apache License 2.0
31.39k stars 1.61k forks source link

[Bug]: 504 Gateway Time-out when updating application general configuration #2864

Open carbontwelve opened 1 month ago

carbontwelve commented 1 month ago

Description

I have a public git repository that is using the Dockerfile buildpack. When editing any of the general configuration values, upon pressing save, after a while a full page modal pops up with 504 Gateway Time-out error.

Minimal Reproduction (if possible, example repository)

I then reload the page and see the The latest configuration has not been applied toast, so the configuration change was made.

Exception or Error

No response

Version

v4.0.0-beta.315

andrasbacsai commented 1 month ago

I cannot reproduce the issue. Are you using the cloud version?

carbontwelve commented 1 month ago

I'm on self hosted, on a 16-core dedicated server.

Have since restarted the coolify containers and still getting the same thing happen: image

It's a 504 in response to a post request made to /livewire/update after 60 seconds. I have attached a shell to the coolify container and see nothing pop into the laravel.log so I believe it's taking longer to process the update than the 60 second timeout set in nginx.

As an aside, it might be a good idea to add handling for this error:

Livewire.onError((message, statusCode) => {
    if (statusCode == 504) {
        // Handle the timeout here, then return false
        return false;
    }
});
FrSenpai commented 1 month ago

I've got this issue too on selfhosted version.

fr0ntd3v commented 4 weeks ago

same here when trying to stop the appwrite stack

calebrussel77 commented 3 weeks ago

Same here. When I'm trying to build my next js app

FrSenpai commented 3 weeks ago

Add a swapfile resolved my issue.

https://support.hostinger.com/en/articles/8124185-how-to-set-up-swap-on-hostinger-vps

james090500 commented 2 weeks ago

I believe #3220 is related to this issue.

I am also struggling with the exact same issue and trying to diagnose this. Specifically in the default localhost instance

image