Why am I getting a 502 Bad Gateway using Dokku after a few hours of uptime

April 13, 2015 3.1k views
Dokku MEAN Ubuntu

Deployment is smooth, everything is working then I check back on the site after a day or so and its come down with a 502 bad gateway. I have more than one (now three) small nodejs express and mongoose apps running inside dokku, when I mean small I’m talking a single page app and a sign up form. Database is hosted elsewhere.

I have tried increasing server size, which seemed to delay the problem a little, but mostly it seems pretty random and if it was a ram problem my understanding is dokku should reboot the app anyway.

What else could I try?

  • I am having the same issue. Would love some answers…

    In my case, I have multiple small node applications running. And one continues to crash without errors and throw this 502 bad gateway.

  • some problem here :?

  • Did anyone find a resolution here? I was having days of uptime, then all of a sudden I received 502 bad gateway (no new commits or anything). Now the site rarely loads (it does work 1 out of 10 tries), and I get the 502 :(

  • Same problem…have anyone solution?

1 Answer
Have another answer? Share your knowledge.