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.
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:
sudo apt-get updatefails 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 updateagain and it should now cleanly complete.
If you have any apps that are “not deployed”, the
dokku ps:rebuildallwill 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 YOURAPPor if you don’t want to do that, simply run
dokku ps:rebuild YOUAPP1,
dokku ps:rebuild YOURAPP2etc. on each app you previously stopped. Rebuilding installs all dependencies from scratch and starts up the app.
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.
Sign up now
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: