My rails app launched with dokku fails at all times

March 16, 2019 449 views
Ruby on Rails Dokku One-Click Install Apps Ubuntu 16.04

I have a rail application deployed with dokku and every day I have this error, "We're sorry, but something went wrong". Restart dekku with "dokku ps:restart app" and return to normal but after a while the same error comes back, thanks for your help.

1 Answer

Greetings!

In this case I recommend opening up our web based console for the droplet at cloud.digitalocean.com. I would wager that you're running out of memory, and the kernel is killing the application. If you see these out of memory errors on the console, this confirms my theory. In such an event, you will find yourself with at least three options:

  1. Optimize the application to use less memory.
  2. Upgrade to a larger droplet.
  3. Balance the load of your application across 2 or more droplets, reducing the memory usage by any single server.

Jarland

Have another answer? Share your knowledge.