Error Install the 'peertube' app

What app is this about, and its version: Peertube, Current version: 8.1.5~ynh1
What YunoHost version are you running: Powered by YunoHost 12.1.39 (stable)
What type of hardware are you using: VPS bought online

Describe your issue

Hello
I cannot install the Peertube app (Current version: 8.1.5~ynh1).
The installation failed somehow.
I created a subdomain first like I always do.

Kind regards

Share relevant logs or error messages

https://paste.yunohost.org/raw/gobozevole

In your logfile there is a line:

ERR_PNPM_ENOSPC  ENOSPC: no space left on device, mkdir '/var/www/peertube/node_modules/.pnpm/@types+yauzl@2.10.3/node_modules/@types/yauzl_tmp_1242740'

Maybe there is not enough space on your server?

Try this, command allows cleaning storage

sudo yunohost tools basic-space-cleanup
find /var/log/yunohost/operations -name "*.log" -type f -delete;\
find /var/log/yunohost/operations -name "*.yml" -type f -delete;\
sudo journalctl --rotate;\
sudo journalctl --vacuum-time=2w;\
rm /var/log/borg *.log *.err

Clear the server cache and SWAP :

sync; echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a

This should free up quite a bit of space.

Thanks! I’m going to investigate this.

Thanks for your reply.
I tried to follow your advice.
I had a ‘permission denied’ warning so I used ‘sudo’ find /var….
and this was the result.
_
Vacuuming done, freed 0B of archived journals from /run/log/journal.
Vacuuming done, freed 0B of archived journals from /var/log/journal.
Vacuuming done, freed 0B of archived journals from /var/log/journal/0522e63aa2574b63b184fb6c46d0edad.
rm: cannot remove ‘/var/log/borg’: No such file or directory
rm: cannot remove ‘.log’: No such file or directory
rm: cannot remove '.err’: No such file or directory
_

When I used
_
sync; echo 3 > /proc/sys/vm/drop_caches && swapoff -a && swapon -a
_
This was the result
_
sudo -bash: /proc/sys/vm/drop_caches: Permission denied
_

I installed ncdu to scan the filesystem.
_
. 23.8 GiB [##############] /home
. 3.1 GiB [# ] /usr
. 2.5 GiB [# ] /var
_
So it would be wise to extend storage space on the server right?

You have to be in “root”

If you don’t have enough space, indeed it would be better to have more.

I have to be in ‘root’ even if I use sudo?

So I have extra space +10GB. PeerTube is installed. But via the diagnosis panel I get a warning:
_
The system has no swap at all. You should consider adding at least 512 MiB of swap to avoid situations where the system runs out of memory.

Storage / (on device /dev/sda1) has only 522 MiB (1%) space remaining (out of 36 GiB). You should really consider cleaning up some space!
_

No, no need.

If you make your own videos, and want to put them on your Peertube instance, you will need more space.

Thanks for your reply I really appreciate it.

I used the command - ncdu /
The result is : total disk usage: 32.6 GiB

  • My server settings are
  • 2 vcpu
  • 4 GB ram
  • 40 GB disk lokal + 10 GB extra 1 Volume

So there must be enough space right?

For Peertube only, this is certainly enough, but if you want to add videos, it can quickly take some space.

So deleted a backup (/home directory) around 3.4GB and the storage problem was gone.
Now I’m making use of a Snapshot on my VPS I bought instead of the backup option in YunoHost. Hope this is a good way to work around.
Anyway… thanks for your advice!

1 Like

Hey! Using VPS snapshots is definitely a solid workaround and often faster for full system restores. Just keep in mind that snapshots usually count against your total disk quota depending on your provider, so keep an eye on that space as your PeerTube instance grows.

Hi! Thanks for your reply. I will keep that in mind.