Question

How do you update a one-click Dokku droplet on Ubuntu 16.04?

Someone asked this previously for Debian but those instructions don’t seem transferrable.


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.

@tcd3a5f8b59c7715c2257511a8

http://dokku.viewdocs.io/dokku/getting-started/upgrading/

The above link details how to go about upgrading to a newer release. Before upgrading, however, I would advise creating a snapshot from within the DigitalOcean control panel or manually backing up any files, configuration, or data that may be critical to your existing setup.

A couple of problems I ran into with these upgrade steps, which I solved, were:

  1. If sudo apt-get update fails to find dokku repository information see https://github.com/dokku/dokku/issues/3397 then fix this with wget -qO - https://packagecloud.io/dokku/dokku/gpgkey | sudo apt-key add - then run apt-get update again and it should now cleanly complete.

  2. If you have any apps that are “not deployed”, the dokku ps:rebuildall will fail. Not deployed means an app has been created but never pushed to with any code. To fix this, remove the unused app with dokku apps:destroy YOURAPP or if you don’t want to do that, simply run dokku ps:rebuild YOUAPP1, dokku ps:rebuild YOURAPP2 etc. on each app you previously stopped. Rebuilding installs all dependencies from scratch and starts up the app.

The Accepted Answer is only half the answer. The problem I found with the one-click Dokku droplet for Ubuntu 16.04 is that the the source URL for Dokku in the dokku.list isn’t correct and therefor wasn’t getting the newest versions of Dokku, herokuish, sshcommand and plugn.

To fix this:

  1. ssh into your droplet
  2. Edit the dokku.list sudo nano /etc/apt/sources.list.d/dokku.list
  3. Change xenial to trusty and save

dokku.list should look like this: deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main

Once done, follow the recommend updating from Dokku:

sudo apt-get update
dokku apps
dokku ps:stop APP # repeat to shut down each running app
sudo apt-get install -qq -y dokku herokuish sshcommand plugn
dokku ps:rebuildall # rebuilds all applications

Try DigitalOcean for free

Click below to sign up and get $200 of credit to try our products over 60 days!

Sign up

Get our biweekly newsletter

Sign up for Infrastructure as a Newsletter.

Hollie's Hub for Good

Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.

Become a contributor

Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.

Welcome to the developer cloud

DigitalOcean makes it simple to launch in the cloud and scale up as you grow — whether you're running one virtual machine or ten thousand.

Learn more
DigitalOcean Cloud Control Panel