Peertube not installing

What app is this about, and its version: Peertube
What YunoHost version are you running: YunoHost 12.1.40.1 (
What type of hardware are you using: Old laptop or computer

Describe your issue

I recently tried to update PeerTube. After attempting the install, which failed, Yunohsot removed the application and now I can neither restore my PeerTube back or nor do a clean install of PeerTube.

Any help much appreciated!

Share relevant logs or error messages

This is the log from the failed backup restore

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

The log which removed PeerTube

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

And the log for a fresh install

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

Try this to reinstall peertube in a broken state

yunohost backup restore  peertube-pre-upgrade1 --no-remove-on-failure

Then you will need to edit a service file.

Then ls -la /opt/node_n/n/versions/node/ will show the latest nodejs 22.x version installed on your system.

In the peertube service file you will need to replace 22.22.2 with the version you found above.

sudo nano /etc/systemd/system/peertube.service
# Replace 22.22.2 with 22.22.?
# Reload systemd and restart peertube
sudo systemctl daemon-reload
sudo systemctl restart peertube

Can you share the log of the failed upgrade ?

Thanks for the quick response! I followed the instructions and updated the Nodejs config to version 22.2.3. It seemed to restore PeerTube (At least it then appeared back in the applications list). However when I tried to open it, I was taken to a Welcome To NGINGX page.

I then tried to update, which then failed. However, it then reverted to the back up properly and appears to be working. However I haven’t tried the upgrade for fear of breaking again.

Here’s the log for the failed upgrade and it’s still being flagged as a vulnerability in system diagnostics. It looks like PNPM is still a problem.

Upgrade the ‘peertube’ app

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

@mxtthxw

You are not the first to hit this issue but it takes differents flavours …

This issue and some way to fix it is here Upgrade 8.1.5 –> 8.1.8 failed : pnpm v10/v11 · Issue #549 · YunoHost-Apps/peertube_ynh · GitHub

problem is that dependencies of plugins are collected by pnpm in node_modules and if pnpm version change it tries to use existing node_modules directory that is not organised the same way with newer pnpm version. The quickest way to resolve it is to move away the node_modules content and leave install to repopulate it.