Question

Dokku hanging after Docker update

Posted January 16, 2014 5.2k views
Today I wanted to take a stab at getting a rails app deployed with dokku, so I followed the walkthrough found here (https://www.digitalocean.com/community/articles/how-to-use-the-dokku-one-click-digitalocean-image-to-run-a-ruby-on-rails-app) When I try to run dokku postgresql:create app_name it advises me to update docker. I update docker following the directions found here http://docs.docker.io/en/latest/installation/upgrading/ I then create the database. Now when I try git push dokku master it just hangs... Anyone run into issues with this?

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.

5 answers
Dokku probably doesn't support the version of docker you updated to. Does it work on the "old" version?
A number of the tutorial examples use Kloadut's PostgreSQL plugin for Dokku, which now requires Docker version 0.7.2 or higher, but the one click app installs Docker version 0.6.6. Is there a way to work around this?
I ended up doing a manual install of Dokku on a fresh Ubuntu 13.04 to work around this. It's actually quite easy and works without issue.
Can you point to a tutorial please? I'm having a 'Your docker version is too old, please update it' even after apt-get install upgrade..

I had the same problem and found a solution.
When I ran dokku postgresql:create app_name, I got the “please update” notice, but actually when I looked in docker containers, the postgresql/app_name got created. Dokku just didn’t see it as its own.
So I went nano /home/dokku/app_name/ENV and set my DATABASE_URL environment variable to

export DATABASE_URL="$PRODUCTION_ADAPTER://$PRODUCTION_USERNAME:$PRODUCTION_PASSWORD@$PRODUCTION_HOST:$PRODUCTION_PORT/$PRODUCTION_DB?encoding=utf-8"

according to link.
Then when I pushed the app again to dokku, it got the database from the ENV and everything worked smoothly.

Submit an Answer