Manually Update Discourse and Docker Using Rebuild Command

·

Yesterday, I discovered that NetDivo Forum was running on an outdated discourse installation which can only be updated manually via the command line.

To update discourse, you are expected to ssh into your server using your favorite ssh client and run this :

cd /var/discourse
git pull
./launcher rebuild app

Unfortunately, after running “git pull”, I encountered the error message below :

fatal : unable to access https://github.com/discourse/discourse_docker.git/’: Peer reports incompatible or unsupported protocol version.

I fixed it by running “yum update” command

After running the rebuild command, I was alerted that the docker is outdated. Hence, I updated it and re-run the rebuild command.

How To Update Docker?

One way to do that is via the Docker script here (it will warn about an existing install but should upgrade ok):

wget -qO- https://get.docker.com/ | sh

After updating docker, you can exit your ssh client, ssh into the server again and run this again :

cd /var/discourse
git pull
./launcher rebuild app

update discourse via ssh vps hosting

 

If no issues, your discourse installation will be updated to the latest and you will be able to confirm this via your admin dashboard.

You can follow discussion on how to manually update discourse to the latest via the official discourse forum.

NB :

If you get “Device “docker0” does not exist” error after rebuilding the app, run “service docker start” command

Please Share :

Like What You Read?

Sign Up to get similar articles delivered to your email inbox.

Leave a Reply

Your email address will not be published. Required fields are marked *

Search

Copyright © 2025 | About | Advertise | Sitemap | Privacy Policy | Proudly powered by WordPress