How to Upgrade Your PeerTube Instance

In this comprehensive guide, we’ll walk through the steps how to upgrade your PeerTube instance, ensuring you stay at the forefront of the decentralized video hosting revolution.

If you are installing PeerTube from scratch and exploring, click on the button below.

It is also advisable to read the changelog before updating your instance.

Note: Please follow all the steps below.

1- Upgrade PeerTube

PeerTube provides an upgrade script; all we need to do is run it.

cd /var/www/peertube/peertube-latest/scripts

sudo -H -u peertube ./

Restart PeerTube afterwards.

systemctl restart peertube

2- Update configurations

Switch to the versions directory.

cd /var/www/peertube/versions


Let’s update the PeerTube configuration if there are any updates available.

diff -u "$(ls --sort=t | head -2 | tail -1)/config/production.yaml.example" "$(ls --sort=t | head -1)/config/production.yaml.example"


Check and update Nginx:

diff -u "$(ls --sort=t | head -2 | tail -1)/support/nginx/peertube" "$(ls --sort=t | head -1)/support/nginx/peertube"


diff -u "$(ls --sort=t | head -2 | tail -1)/support/systemd/peertube.service" "$(ls --sort=t | head -1)/support/systemd/peertube.service"

3- Reload services

Once the changes are applied, it’s time to reload or restart the services.

systemctl daemon-reload
systemctl reload nginx
systemctl restart peertube

You can check PeerTube logs with journalctl -fu peertube.

Check out this section, if something goes wrong.

Leave a Reply

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