Question

Dokku hanging after Docker update

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?


Submit an answer

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!

Sign In or Sign Up to Answer

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.

Want to learn more? Join the DigitalOcean Community!

Join our DigitalOcean community of over a million developers for free! Get help and share knowledge in Q&A, subscribe to topics of interest, and get courses and tools that will help you grow as a developer and scale your project or business.

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.

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 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.