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!
Accepted Answer
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.
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:
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
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 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.
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.
Get paid to write technical tutorials and select a tech-focused charity to receive a matching donation.
Full documentation for every DigitalOcean product.
The Wave has everything you need to know about building a business, from raising funding to marketing your product.
Stay up to date by signing up for DigitalOcean’s Infrastructure as a Newsletter.
New accounts only. By submitting your email you agree to our Privacy Policy
Scale up as you grow — whether you're running one virtual machine or ten thousand.
Sign up and get $200 in credit for your first 60 days with DigitalOcean.*
*This promotional offer applies to new accounts only.