Peertube can't install backup after fail upgrade nodejs problem

Hello @CptCurk
You can try this

  1. go to your yunohost archive folder and copy your peertube archive (safer)
cp -pr peertube-archive.tar peertube-archive-copy.tar
  1. Read the service file inside the archive (to check thje nodejs version used at lines Environment and ExecStart) and read the settings.yml file

a) service file

tar -xOf peertube-archive-copy.tar apps/peertube/backup/etc/systemd/system/peertube.service

b) settings.yml

tar -xOf peertube-archive-copy.tar apps/peertube/settings/settings.yml
  1. change the service file according to your needs

a) extract the service file

tar -xvf peertube-archive-copy.tar apps/peertube/backup/etc/systemd/system/peertube.service

b) edit it (22.21.1 instead of 22.19.0 I guess)

nano apps/peertube/backup/etc/systemd/system/peertube.service
  1. Once edited

a) calculate the checksum of the modified service file and copy its value

md5sum apps/peertube/backup/etc/systemd/system/peertube.service

b)[edit] extract and edit settings.yml and change the checksum value at line checksum__etc_systemd_system_peertube.service

tar -xvf peertube-archive-copy.tar apps/peertube/settings/settings.yml
nano apps/peertube/settings/settings.yml
  1. Update the archive
tar --update -f peertube-archive-copy.tar apps/peertube/backup/etc/systemd/system/peertube.service
tar --update -f peertube-archive-copy.tar apps/peertube/settings/settings.yml
  1. Restore the peertube-archive-copy (it should appear in, webadmin > tools> backup …)
1 Like