I have stacked dokku on a server ubunto and after 2/4 days I can see the error 502 Bad Gateway and I’m forced to restart every time to run it.

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
1 answer

Hello,

I just came across this question, what I could suggest is checking the logs for more information on why the application is crashing.

It is quite possible that it is due to resources like RAM for example. If this is the case you could try to add a swap file or add some extra memory.

Regards,
Bobby

by Brian Boucheron
One way to guard against out-of-memory errors in applications is to add some swap space to your server. In this guide, we will cover how to add a swap file to an Ubuntu 20.04 server.
Submit an Answer