Someone asked this previously for Debian but those instructions don’t seem transferrable.
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.
Sign up for Infrastructure as a Newsletter.
Working on improving health and education, reducing inequality, and spurring economic growth? We'd like to help.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
@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:
If
sudo apt-get update
fails to find dokku repository information see https://github.com/dokku/dokku/issues/3397 then fix this withwget -qO - https://packagecloud.io/dokku/dokku/gpgkey | sudo apt-key add -
then runapt-get update
again and it should now cleanly complete.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 withdokku apps:destroy YOURAPP
or if you don’t want to do that, simply rundokku 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:
sudo nano /etc/apt/sources.list.d/dokku.list
dokku.list should look like this:
deb https://packagecloud.io/dokku/dokku/ubuntu/ trusty main
Once done, follow the recommend updating from Dokku: