Serveur
Matériel: machine virtuelle
Version de YunoHost: 4.2.6.1
Accès au serveur : En SSH et par la webadmin
Description du problème
Mise à jour de Peertube depuis la version 3.2.1~ynh4 vers la version 3.3.0~ynh2 qui se termine par un échec :
# yunohost app upgrade peertube
Info: Now upgrading peertube...
Info: [....................] > Loading installation settings...
Info: [+...................] > Checking version...
Info: [#+..................] > Backing up the app before upgrading (may take a while)...
Info: [##+.................] > Stopping a systemd service...
Info: [###+................] > Ensuring downward compatibility...
Warning: NOTICE: extension "unaccent" already exists, skipping
Warning: NOTICE: extension "pg_trgm" already exists, skipping
Info: '/etc/apt/sources.list.d/jessie-backports.list' wasn't deleted because it doesn't exist.
Info: '/etc/apt/sources.list.d/yarn.list' wasn't deleted because it doesn't exist.
Info: [####+...............] > Making sure dedicated system user exists...
Info: [#####+..............] > Upgrading source files...
Info: [######+.............] > Upgrading NGINX web server configuration...
Info: [#######+............] > Upgrading dependencies...
Info: '/etc/apt/trusted.gpg.d/peertube.asc' wasn't deleted because it doesn't exist.
Info: '/usr/share/yunohost/hooks/conf_regen/15-nginx_peertube' wasn't deleted because it doesn't exist.
Warning: The configuration file '/var/www/.well-known/rss.librino.net/autoconfig/mail/config-v1.1.xml' has been manually modified and will not be updated
Info: [########+...........] > Creating a data directory...
Info: [#########+..........] > Updating a config file...
Info: [##########+.........] > Building Yarn dependencies...
Warning: [Error] Upgrade failed.
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: This action broke dpkg/APT (the system package managers)... You can try to solve this issue by connecting through SSH and running `sudo apt install --fix-broken` and/or `sudo dpkg --configure -a`.
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: 1038560 (this may take some time)
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: sh: 0: getcwd() failed: No such file or directory
Warning: The app was restored to the way it was before the failed upgrade.
Error: Could not upgrade peertube: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'peertube' app' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20210731-090301-app_upgrade-peertube' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - 3486 + local rel_dir=/apps/peertube/backup
Info: DEBUG - 3486 + rel_dir=/apps/peertube/backup/
Info: DEBUG - 3487 + dest_path=/apps/peertube/backup/etc/systemd/system/peertube.service
Info: DEBUG - 3487 + dest_path=apps/peertube/backup/etc/systemd/system/peertube.service
Info: DEBUG - 3489 ++ sed --regexp-extended 's/"/\"\"/g'
Info: DEBUG - 3491 ++ echo /etc/systemd/system/peertube.service
Info: DEBUG - 3492 + local src=/etc/systemd/system/peertube.service
Info: DEBUG - 3493 ++ sed --regexp-extended 's/"/\"\"/g'
Info: DEBUG - 3496 ++ echo apps/peertube/backup/etc/systemd/system/peertube.service
Info: DEBUG - 3497 + local dest=apps/peertube/backup/etc/systemd/system/peertube.service
Info: DEBUG - 3498 + echo '"/etc/systemd/system/peertube.service","apps/peertube/backup/etc/systemd/system/peertube.service"'
Info: DEBUG - 3498 ++ dirname /home/yunohost.backup/tmp/peertube-pre-upgrade1/apps/peertube/backup/etc/systemd/system/peertube.service
Info: DEBUG - 3500 + mkdir --parents /home/yunohost.backup/tmp/peertube-pre-upgrade1/apps/peertube/backup/etc/systemd/system
Info: DEBUG - 3502 + ynh_print_info '--message=Backing up the PostgreSQL database...'
Info: DEBUG - 3515 + echo 'Backing up the PostgreSQL database...'
Info: DEBUG - 3515 + ynh_psql_dump_db --database=peertube_peertube
Info: DEBUG - 3516 Backing up the PostgreSQL database...
Info: DEBUG - 3534 + sudo --login --user=postgres pg_dump peertube_peertube
Info: DEBUG - 68811 + ynh_print_info '--message=Backup script completed for peertube. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 68845 + echo 'Backup script completed for peertube. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 68845 + ynh_exit_properly
Error: The operation 'Upgrade the 'peertube' app' could not be completed.
Les logs complets sont disponibles ici.
Restauration du backup : OK
Comment résoudre le problème ?
Merci par avance