Report this

What is the reason for this report?

Dokku hanging after Docker update

Posted on January 16, 2014

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?



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.