Help: 502 Bad Gateway

Hello, (je peux parler français si vous préférez)
I got a 502 error page, and I think it’s linked to the disk space available:

Instead of using the dev/sdba1 (19Go), I understand that I should have mounted the sdb disk and save the uploaded video there (250Go), but I don’t really know how to do it.
Should I edit this file ?
vi /etc/nginx/sites-available/peertube

As a first step, now that sda1 is full, how can I remove some files to make it word again?

Thanks a lot for your help.

Greetings, it’s easier and better to download the configs and the storage folder, and reinstall it normally, this is my opinion)

Ok, thank you for your response.
In a short term, do you know how I could make the server work again?
Thanks!

You have to partition and mount your sdb hard drive.
(they are many ways to do it, i can’t give you the exact command, as it depends on how you want to set it up (lvm ? ext4 ? …)

Then stop Peertube (systemctl stop peertube)
Once this is done, you can move files from your Peertube storage folder (/var/www/peertube/storage) on the new partition. Then change your peertube configuration file (production.yaml) to replace /var/www/peertube/storage/ by the new path.
Do the same in your nginx config file (/etc/nginx/sites-enabled/peertube).
Then restart nginx and peertube (systemctl restart nginx peertube).

This should work.