Hello all,
Tried to upgrade the app from the admin panel but it failed and also removed Jellyfin. Here’s some of the log:
2021-03-12 12:03:30,871: DEBUG - + name=jellyfin
2021-03-12 12:03:30,872: INFO - [#######+++..........] > Upgrading dependencies...
2021-03-12 12:03:30,872: DEBUG - + key=https://repo.jellyfin.org/jellyfin_team.gpg.key
2021-03-12 12:03:30,872: DEBUG - + '[' -n https://repo.jellyfin.org/jellyfin_team.gpg.key ']'
2021-03-12 12:03:30,873: DEBUG - + key=--key=https://repo.jellyfin.org/jellyfin_team.gpg.key
2021-03-12 12:03:30,873: DEBUG - + ynh_install_extra_repo '--repo=https://repo.jellyfin.org/debian buster main' --key=https://repo.jellyfin.org/jellyfin_team.gpg.key --priority=995 --name=jellyfin
2021-03-12 12:03:31,075: DEBUG - + name=jellyfin
2021-03-12 12:03:31,075: DEBUG - + append=0
2021-03-12 12:03:31,076: DEBUG - + key=https://repo.jellyfin.org/jellyfin_team.gpg.key
2021-03-12 12:03:31,076: DEBUG - + priority=995
2021-03-12 12:03:31,076: DEBUG - + '[' 0 -eq 1 ']'
2021-03-12 12:03:31,077: DEBUG - + append=
2021-03-12 12:03:31,077: DEBUG - + wget_append=tee
2021-03-12 12:03:31,077: DEBUG - + repo='https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:31,078: DEBUG - ++ echo 'https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:31,078: DEBUG - ++ awk '{ print $1 }'
2021-03-12 12:03:31,078: DEBUG - + local uri=https://repo.jellyfin.org/debian
2021-03-12 12:03:31,079: DEBUG - ++ echo 'https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:31,079: DEBUG - ++ awk '{ print $2 }'
2021-03-12 12:03:31,079: DEBUG - + local suite=buster
2021-03-12 12:03:31,080: DEBUG - + local component=main
2021-03-12 12:03:31,080: DEBUG - + ynh_add_repo --uri=https://repo.jellyfin.org/debian --suite=buster --component=main --name=jellyfin
2021-03-12 12:03:31,284: DEBUG - + name=jellyfin
2021-03-12 12:03:31,284: DEBUG - + append=0
2021-03-12 12:03:31,284: DEBUG - + '[' 0 -eq 1 ']'
2021-03-12 12:03:31,284: DEBUG - + append=tee
2021-03-12 12:03:31,285: DEBUG - + mkdir --parents /etc/apt/sources.list.d
2021-03-12 12:03:31,285: DEBUG - + echo 'deb https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:31,285: DEBUG - + tee /etc/apt/sources.list.d/jellyfin.list
2021-03-12 12:03:31,285: DEBUG - deb https://repo.jellyfin.org/debian buster main
2021-03-12 12:03:31,285: DEBUG - + local pin=repo.jellyfin.org/debian
2021-03-12 12:03:31,285: DEBUG - + pin=repo.jellyfin.org
2021-03-12 12:03:31,286: DEBUG - + '[' -n 995 ']'
2021-03-12 12:03:31,286: DEBUG - + priority=--priority=995
2021-03-12 12:03:31,286: DEBUG - + ynh_pin_repo '--package=*' '--pin=origin "repo.jellyfin.org"' --priority=995 --name=jellyfin
2021-03-12 12:03:31,389: DEBUG - + package='*'
2021-03-12 12:03:31,389: DEBUG - + priority=995
2021-03-12 12:03:31,389: DEBUG - + name=jellyfin
2021-03-12 12:03:31,389: DEBUG - + append=0
2021-03-12 12:03:31,390: DEBUG - + '[' 0 -eq 1 ']'
2021-03-12 12:03:31,390: DEBUG - + append=tee
2021-03-12 12:03:31,390: DEBUG - + [[ jellyfin != \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]]
2021-03-12 12:03:31,390: DEBUG - + mkdir --parents /etc/apt/preferences.d
2021-03-12 12:03:31,391: DEBUG - + echo 'Package: *
2021-03-12 12:03:31,391: DEBUG - Pin: origin "repo.jellyfin.org"
2021-03-12 12:03:31,391: DEBUG - Pin-Priority: 995
2021-03-12 12:03:31,391: DEBUG - '
2021-03-12 12:03:31,391: DEBUG - + tee /etc/apt/preferences.d/jellyfin
2021-03-12 12:03:31,392: DEBUG - Package: *
2021-03-12 12:03:31,392: DEBUG - Pin: origin "repo.jellyfin.org"
2021-03-12 12:03:31,392: DEBUG - Pin-Priority: 995
2021-03-12 12:03:31,392: DEBUG -
2021-03-12 12:03:31,393: DEBUG - + '[' -n https://repo.jellyfin.org/jellyfin_team.gpg.key ']'
2021-03-12 12:03:31,393: DEBUG - + mkdir --parents /etc/apt/trusted.gpg.d
2021-03-12 12:03:31,393: DEBUG - + wget --timeout 900 --quiet https://repo.jellyfin.org/jellyfin_team.gpg.key --output-document=-
2021-03-12 12:03:31,393: DEBUG - + gpg --dearmor
2021-03-12 12:03:31,393: DEBUG - + tee /etc/apt/trusted.gpg.d/jellyfin.gpg
2021-03-12 12:03:32,095: DEBUG - + ynh_package_update
2021-03-12 12:03:32,095: DEBUG - + ynh_apt update
2021-03-12 12:03:32,095: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:32,397: DEBUG - + return 0
2021-03-12 12:03:32,397: DEBUG - + LC_ALL=C
2021-03-12 12:03:32,397: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:03:32,397: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-12 12:03:32,698: DEBUG - Hit:1 https://packages.sury.org/php buster InRelease
2021-03-12 12:03:32,698: DEBUG - Hit:2 http://ftp.debian.org/debian buster InRelease
2021-03-12 12:03:32,699: DEBUG - Get:3 http://security.debian.org/debian-security buster/updates InRelease [65.4 kB]
2021-03-12 12:03:32,699: DEBUG - Hit:4 http://forge.yunohost.org/debian buster InRelease
2021-03-12 12:03:32,699: DEBUG - Hit:5 http://ftp.debian.org/debian buster-updates InRelease
2021-03-12 12:03:33,200: DEBUG - Get:6 https://repo.jellyfin.org/debian buster InRelease [6637 B]
2021-03-12 12:03:34,903: DEBUG - Get:7 https://sgp1.mirror.jellyfin.org/debian buster/main amd64 Packages [2560 B]
2021-03-12 12:03:37,809: DEBUG - Fetched 74.6 kB in 2s (30.8 kB/s)
2021-03-12 12:03:38,510: DEBUG - Reading package lists...
2021-03-12 12:03:38,510: DEBUG - + ynh_add_app_dependencies --package=jellyfin=10.7.0-1
2021-03-12 12:03:38,612: DEBUG - + replace=0
2021-03-12 12:03:38,613: DEBUG - + local current_dependencies=
2021-03-12 12:03:38,613: DEBUG - + '[' 0 -eq 0 ']'
2021-03-12 12:03:38,613: DEBUG - + local dep_app=jellyfin
2021-03-12 12:03:38,613: DEBUG - + ynh_package_is_installed --package=jellyfin-ynh-deps
2021-03-12 12:03:38,614: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:38,814: DEBUG - + return 0
2021-03-12 12:03:38,815: DEBUG - + dpkg-query --show '--showformat=${Status}' jellyfin-ynh-deps
2021-03-12 12:03:38,815: DEBUG - + grep --count 'ok installed'
2021-03-12 12:03:38,815: DEBUG - ++ dpkg-query --show '--showformat=${Depends}' jellyfin-ynh-deps
2021-03-12 12:03:38,915: DEBUG - + current_dependencies='jellyfin (= 10.6.4-1) '
2021-03-12 12:03:38,915: DEBUG - + current_dependencies='jellyfin (= 10.6.4-1) '
2021-03-12 12:03:38,915: DEBUG - + ynh_install_app_dependencies 'jellyfin (= 10.6.4-1) jellyfin=10.7.0-1'
2021-03-12 12:03:38,916: DEBUG - + local 'dependencies=jellyfin (= 10.6.4-1) jellyfin=10.7.0-1'
2021-03-12 12:03:38,916: DEBUG - ++ echo 'jellyfin (= 10.6.4-1) jellyfin=10.7.0-1'
2021-03-12 12:03:38,916: DEBUG - ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-03-12 12:03:38,916: DEBUG - + dependencies='jellyfin (= 10.6.4-1), jellyfin=10.7.0-1'
2021-03-12 12:03:38,916: DEBUG - + local 'dependencies=jellyfin (= 10.6.4-1), jellyfin=10.7.0-1'
2021-03-12 12:03:38,916: DEBUG - + local manifest_path=../manifest.json
2021-03-12 12:03:38,916: DEBUG - + '[' '!' -e ../manifest.json ']'
2021-03-12 12:03:38,916: DEBUG - ++ grep '\"version\": ' ../manifest.json
2021-03-12 12:03:38,916: DEBUG - ++ cut '--delimiter="' --fields=4
2021-03-12 12:03:38,916: DEBUG - + local version=10.7.0~ynh1
2021-03-12 12:03:38,917: DEBUG - + '[' 11 -eq 0 ']'
2021-03-12 12:03:38,917: DEBUG - + local dep_app=jellyfin
2021-03-12 12:03:38,917: DEBUG - + [[ jellyfin (= 10.6.4-1), jellyfin=10.7.0-1 =~ [<=>] ]]
2021-03-12 12:03:38,917: DEBUG - ++ echo 'jellyfin (= 10.6.4-1), jellyfin=10.7.0-1'
2021-03-12 12:03:38,917: DEBUG - ++ sed 's/\([^(\<=\>]\)\([\<=\>]\+\)\([^,]\+\)/\1 (\2 \3)/g'
2021-03-12 12:03:38,917: DEBUG - + dependencies='jellyfin (= 10.6.4-1), jellyfin (= 10.7.0-1)'
2021-03-12 12:03:38,917: DEBUG - + echo jellyfin '(=' '10.6.4-1),' jellyfin '(=' '10.7.0-1)'
2021-03-12 12:03:38,917: DEBUG - + grep --quiet php
2021-03-12 12:03:38,917: DEBUG - + cat
2021-03-12 12:03:38,917: DEBUG - + ynh_package_install_from_equivs /tmp/jellyfin-ynh-deps.control
2021-03-12 12:03:38,918: DEBUG - + local controlfile=/tmp/jellyfin-ynh-deps.control
2021-03-12 12:03:38,918: DEBUG - ++ grep '^Package: ' /tmp/jellyfin-ynh-deps.control
2021-03-12 12:03:38,918: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-03-12 12:03:38,918: DEBUG - + local pkgname=jellyfin-ynh-deps
2021-03-12 12:03:38,918: DEBUG - ++ grep '^Version: ' /tmp/jellyfin-ynh-deps.control
2021-03-12 12:03:38,918: DEBUG - ++ cut '--delimiter= ' --fields=2
2021-03-12 12:03:38,918: DEBUG - + local pkgversion=10.7.0~ynh1
2021-03-12 12:03:38,918: DEBUG - + [[ -z jellyfin-ynh-deps ]]
2021-03-12 12:03:38,918: DEBUG - + [[ -z 10.7.0~ynh1 ]]
2021-03-12 12:03:38,918: DEBUG - + ynh_package_update
2021-03-12 12:03:38,919: DEBUG - + ynh_apt update
2021-03-12 12:03:38,919: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:39,119: DEBUG - + return 0
2021-03-12 12:03:39,120: DEBUG - + LC_ALL=C
2021-03-12 12:03:39,120: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:03:39,120: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-12 12:03:39,421: DEBUG - Hit:1 http://ftp.debian.org/debian buster InRelease
2021-03-12 12:03:39,421: DEBUG - Hit:2 https://packages.sury.org/php buster InRelease
2021-03-12 12:03:39,421: DEBUG - Hit:3 http://security.debian.org/debian-security buster/updates InRelease
2021-03-12 12:03:39,421: DEBUG - Hit:4 http://ftp.debian.org/debian buster-updates InRelease
2021-03-12 12:03:39,422: DEBUG - Hit:5 http://forge.yunohost.org/debian buster InRelease
2021-03-12 12:03:39,923: DEBUG - Hit:6 https://repo.jellyfin.org/debian buster InRelease
2021-03-12 12:03:42,928: DEBUG - Reading package lists...
2021-03-12 12:03:43,028: DEBUG - ++ mktemp --directory
2021-03-12 12:03:43,029: DEBUG - + local TMPDIR=/tmp/tmp.nQvqashUGT
2021-03-12 12:03:43,029: DEBUG - + echo 10
2021-03-12 12:03:43,029: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:43,230: DEBUG - + return 0
2021-03-12 12:03:43,230: DEBUG - + cp /tmp/jellyfin-ynh-deps.control /tmp/tmp.nQvqashUGT/control
2021-03-12 12:03:43,230: DEBUG - + cd /tmp/tmp.nQvqashUGT
2021-03-12 12:03:43,230: DEBUG - + LC_ALL=C
2021-03-12 12:03:43,231: DEBUG - + equivs-build ./control
2021-03-12 12:03:43,932: DEBUG - + LC_ALL=C
2021-03-12 12:03:43,932: DEBUG - + dpkg --force-depends --install ./jellyfin-ynh-deps_10.7.0~ynh1_all.deb
2021-03-12 12:03:43,932: DEBUG - + tee ./dpkg_log
2021-03-12 12:03:44,033: DEBUG - (Reading database ... 130993 files and directories currently installed.)
2021-03-12 12:03:44,033: DEBUG - Preparing to unpack .../jellyfin-ynh-deps_10.7.0~ynh1_all.deb ...
2021-03-12 12:03:44,033: DEBUG - Unpacking jellyfin-ynh-deps (10.7.0~ynh1) over (10.6.4~ynh3) ...
2021-03-12 12:03:44,134: DEBUG - dpkg: jellyfin-ynh-deps: dependency problems, but configuring anyway as you requested:
2021-03-12 12:03:44,134: DEBUG - jellyfin-ynh-deps depends on jellyfin (= 10.7.0-1); however:
2021-03-12 12:03:44,135: DEBUG - Version of jellyfin on system is 10.6.4-1.
2021-03-12 12:03:44,135: DEBUG -
2021-03-12 12:03:44,135: DEBUG - Setting up jellyfin-ynh-deps (10.7.0~ynh1) ...
2021-03-12 12:03:44,136: DEBUG - + ynh_package_install --fix-broken
2021-03-12 12:03:44,136: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-12 12:03:44,136: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:44,438: DEBUG - + return 0
2021-03-12 12:03:44,438: DEBUG - + LC_ALL=C
2021-03-12 12:03:44,438: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:03:44,438: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-12 12:03:44,639: DEBUG - Reading package lists...
2021-03-12 12:03:44,739: DEBUG - Building dependency tree...
2021-03-12 12:03:44,739: DEBUG - Reading state information...
2021-03-12 12:03:44,940: DEBUG - Correcting dependencies... Done
2021-03-12 12:03:45,040: DEBUG - The following packages were automatically installed and are no longer required:
2021-03-12 12:03:45,042: WARNING - E: Packages need to be removed but remove is disabled.
2021-03-12 12:03:45,046: DEBUG - jellyfin jellyfin-ffmpeg jellyfin-server jellyfin-web ocl-icd-libopencl1
2021-03-12 12:03:45,047: DEBUG - Use 'apt autoremove' to remove them.
2021-03-12 12:03:45,047: DEBUG - The following packages will be REMOVED:
2021-03-12 12:03:45,047: DEBUG - jellyfin-ynh-deps
2021-03-12 12:03:45,047: DEBUG - 0 upgraded, 0 newly installed, 1 to remove and 4 not upgraded.
2021-03-12 12:03:45,047: DEBUG - ++ cat /tmp/tmp.nQvqashUGT/dpkg_log
2021-03-12 12:03:45,047: DEBUG - ++ tr '\n' ' '
2021-03-12 12:03:45,047: DEBUG - ++ grep -oP '(?<=-ynh-deps depends on ).*(?=; however)'
2021-03-12 12:03:45,047: DEBUG - + local 'problematic_dependencies=jellyfin (= 10.7.0-1) '
2021-03-12 12:03:45,048: DEBUG - + [[ -n jellyfin (= 10.7.0-1) ]]
2021-03-12 12:03:45,048: DEBUG - + ynh_package_install jellyfin '(=' '10.7.0-1)' --dry-run
2021-03-12 12:03:45,048: DEBUG - + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install jellyfin '(=' '10.7.0-1)' --dry-run
2021-03-12 12:03:45,048: DEBUG - + ynh_wait_dpkg_free
2021-03-12 12:03:45,049: DEBUG - + grep -v 'fix-broken\|Reading state info'
2021-03-12 12:03:45,049: DEBUG - + sed --quiet '/Reading state info/,$p'
2021-03-12 12:03:45,349: DEBUG - + return 0
2021-03-12 12:03:45,350: DEBUG - + LC_ALL=C
2021-03-12 12:03:45,350: DEBUG - + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:03:45,350: DEBUG - + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install jellyfin '(=' '10.7.0-1)' --dry-run
2021-03-12 12:03:45,651: DEBUG - + ynh_die '--message=Unable to install dependencies'
2021-03-12 12:03:45,651: WARNING - E: Unable to locate package (
2021-03-12 12:03:45,652: WARNING - E: Unable to locate package 10.7.0-1)
2021-03-12 12:03:45,652: WARNING - E: Couldn't find any package by glob '10.7.0-1)'
2021-03-12 12:03:45,653: WARNING - E: Couldn't find any package by regex '10.7.0-1)'
2021-03-12 12:03:45,654: WARNING - Unable to install dependencies
2021-03-12 12:03:45,655: DEBUG - + ret_code=1
2021-03-12 12:03:45,655: DEBUG - + echo 'Unable to install dependencies'
2021-03-12 12:03:45,655: DEBUG - + exit 1
2021-03-12 12:03:45,655: DEBUG - + ynh_exit_properly
2021-03-12 12:03:45,655: DEBUG - + local exit_code=1
2021-03-12 12:03:45,656: DEBUG - + '[' 1 -eq 0 ']'
2021-03-12 12:03:45,656: DEBUG - + trap '' EXIT
2021-03-12 12:03:45,656: DEBUG - + set +o errexit
2021-03-12 12:03:45,656: DEBUG - + set +o nounset
2021-03-12 12:03:45,656: DEBUG - + sleep 0.5
2021-03-12 12:03:46,157: DEBUG - + type -t ynh_clean_setup
2021-03-12 12:03:46,158: WARNING - [Error] Upgrade failed.
2021-03-12 12:03:46,159: DEBUG - + ynh_clean_setup
2021-03-12 12:03:46,159: DEBUG - + ynh_restore_upgradebackup
2021-03-12 12:03:46,159: DEBUG - + ynh_print_err '--message=Upgrade failed.'
2021-03-12 12:03:46,161: DEBUG - + ynh_print_log '[Error] Upgrade failed.'
2021-03-12 12:03:46,161: DEBUG - + echo -e '[Error] Upgrade failed.'
2021-03-12 12:03:46,161: DEBUG - + local app_bck=jellyfin
2021-03-12 12:03:46,161: DEBUG - + NO_BACKUP_UPGRADE=0
2021-03-12 12:03:46,161: DEBUG - + '[' 0 -eq 0 ']'
2021-03-12 12:03:46,162: DEBUG - + yunohost backup list
2021-03-12 12:03:46,162: DEBUG - + grep --quiet jellyfin-pre-upgrade2
2021-03-12 12:03:46,362: DEBUG - + yunohost app remove jellyfin
2021-03-12 12:03:46,563: DEBUG - Removing jellyfin...
2021-03-12 12:03:46,864: DEBUG - [....................] > Loading installation settings...
2021-03-12 12:03:47,465: DEBUG - [+++.................] > Removing jellyfin service integration...
2021-03-12 12:03:47,766: DEBUG - [###+................] > Stopping and removing the systemd service...
2021-03-12 12:03:47,766: DEBUG - [####+...............] > Removing dependencies...
2021-03-12 12:03:51,675: DEBUG - [#####+++++++++++....] > Removing app main directory...
2021-03-12 12:03:51,675: DEBUG - '/etc/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:03:51,675: DEBUG - '/etc/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:03:51,675: DEBUG - '/var/lib/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:03:51,876: DEBUG - [################+...] > Removing NGINX web server configuration...
2021-03-12 12:03:52,077: WARNING - The user jellyfin was not found
2021-03-12 12:03:52,178: DEBUG - [#################++.] > Removing the dedicated system user...
2021-03-12 12:03:52,278: DEBUG - jellyfin removed
2021-03-12 12:03:53,581: DEBUG - + yunohost backup restore jellyfin-pre-upgrade2 --apps jellyfin --force --debug
2021-03-12 12:03:53,681: DEBUG - 63 initializing base actions map parser for cli
2021-03-12 12:03:53,681: DEBUG - 64 loading actions map namespace 'yunohost'
2021-03-12 12:03:53,681: DEBUG - 76 building parser...
2021-03-12 12:03:53,681: DEBUG - 78 building parser took 0.003s
2021-03-12 12:03:53,681: DEBUG - 79 acquiring lock...
2021-03-12 12:03:53,782: DEBUG - 124 loading python module yunohost.backup took 0.028s
2021-03-12 12:03:53,782: DEBUG - 124 processing action [28843.1]: yunohost.backup.restore with args={'force': True, 'apps': ['jellyfin'], 'name': 'jellyfin-pre-upgrade2', 'system': None}
2021-03-12 12:03:53,782: DEBUG - 125 Preparing archive for restoration...
2021-03-12 12:03:53,783: DEBUG - 125 Extracting needed files from the archive…
2021-03-12 12:03:54,284: DEBUG - 678 restoring from backup 'jellyfin-pre-upgrade2' created on 2021-03-12 10:03:25
2021-03-12 12:03:54,284: DEBUG - 694 Restoring jellyfin...
2021-03-12 12:03:54,384: DEBUG - 763 Restoring the app 'jellyfin'…
2021-03-12 12:03:54,385: DEBUG - 806 initialize authenticator 'as-root' with: uri='ldapi://%2Fvar%2Frun%2Fslapd%2Fldapi', base_dn='dc=yunohost,dc=org', user_rdn='gidNumber=0+uidNumber=0,cn=peercred,cn=external,cn=auth'
2021-03-12 12:03:54,886: DEBUG - 1235 Permission 'jellyfin.main' updated
2021-03-12 12:03:54,986: DEBUG - 1410 To view the log of the operation 'Update url related to permission 'jellyfin'', use the command 'yunohost log display 20210312-100354-permission_url-jellyfin'
2021-03-12 12:03:55,387: DEBUG - 1753 Permission 'jellyfin.main' created
2021-03-12 12:03:55,388: DEBUG - 1753 To view the log of the operation 'Create permission 'jellyfin'', use the command 'yunohost log display 20210312-100354-permission_create-jellyfin'
2021-03-12 12:03:55,588: DEBUG - 1949 Nothing to update in LDAP
2021-03-12 12:03:55,588: DEBUG - 1949 Permission 'jellyfin.admin' updated
2021-03-12 12:03:55,689: DEBUG - 2116 To view the log of the operation 'Update url related to permission 'jellyfin'', use the command 'yunohost log display 20210312-100355-permission_url-jellyfin'
2021-03-12 12:03:55,889: DEBUG - 2290 Nothing to update in LDAP
2021-03-12 12:03:56,090: DEBUG - 2465 Permission 'jellyfin.admin' created
2021-03-12 12:03:56,090: DEBUG - 2465 To view the log of the operation 'Create permission 'jellyfin'', use the command 'yunohost log display 20210312-100355-permission_create-jellyfin'
2021-03-12 12:03:56,291: DEBUG - 2641 The permission database has been resynchronized
2021-03-12 12:03:56,491: DEBUG - 2869 SSOwat configuration regenerated
2021-03-12 12:03:57,493: DEBUG - 3919 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup YNH_APP_MANIFEST_VERSION='10.6.4~ynh3' YNH_BACKUP_CSV=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/backup.csv YNH_BACKUP_DIR=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2 YNH_APP_INSTANCE_NAME=jellyfin YNH_STDRETURN=/tmp/tmpUv3kNy/stdreturn YNH_APP_BACKUP_DIR=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup YNH_STDINFO=/tmp/tmpk105Xi/stdinfo YNH_INTERFACE=cli YNH_APP_ID=jellyfin BASH_XTRACEFD=7 /bin/bash -x "/tmp/restorejmlR5S/restore" /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup jellyfin 7>&1'
2021-03-12 12:03:57,594: DEBUG - 3934 + source ../settings/scripts/_common.sh
2021-03-12 12:03:57,594: DEBUG - 3934 ++ pkg_version=10.6.4-1
2021-03-12 12:03:57,595: DEBUG - 3935 + source /usr/share/yunohost/helpers
2021-03-12 12:03:57,595: DEBUG - 3935 +++ set +o
2021-03-12 12:03:57,595: DEBUG - 3935 +++ grep xtrace
2021-03-12 12:03:57,595: DEBUG - 3935 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-03-12 12:03:57,595: DEBUG - 3935 ++ XTRACE_ENABLE='set -o xtrace'
2021-03-12 12:03:57,696: DEBUG - 4036 + ynh_abort_if_errors
2021-03-12 12:03:57,696: DEBUG - 4036 + set -o errexit
2021-03-12 12:03:57,696: DEBUG - 4036 + set -o nounset
2021-03-12 12:03:57,696: DEBUG - 4037 + trap ynh_exit_properly EXIT
2021-03-12 12:03:57,797: DEBUG - 4138 [+...................] > Loading settings...
2021-03-12 12:03:57,798: DEBUG - 4138 + echo '[+...................] > Loading settings...'
2021-03-12 12:03:57,798: DEBUG - 4138 + app=jellyfin
2021-03-12 12:03:57,798: DEBUG - 4138 ++ ynh_app_setting_get --app=jellyfin --key=domain
2021-03-12 12:03:57,799: DEBUG - 4139 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:03:57,799: DEBUG - 4140 ++ ynh_app_setting get jellyfin domain
2021-03-12 12:03:57,899: DEBUG - 4240 + domain=xxxxxx
2021-03-12 12:03:57,900: DEBUG - 4240 ++ ynh_app_setting_get --app=jellyfin --key=path
2021-03-12 12:03:57,901: DEBUG - 4242 ++ [[ path =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:03:57,901: DEBUG - 4242 ++ ynh_app_setting get jellyfin path
2021-03-12 12:03:58,001: DEBUG - 4342 + path_url=/jellyfin
2021-03-12 12:03:58,002: DEBUG - 4343 ++ ynh_app_setting_get --app=jellyfin --key=final_path
2021-03-12 12:03:58,004: DEBUG - 4343 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:03:58,004: DEBUG - 4344 ++ ynh_app_setting get jellyfin final_path
2021-03-12 12:03:58,104: DEBUG - 4444 + final_path=/etc/jellyfin
2021-03-12 12:03:58,205: DEBUG - 4545 [#++.................] > Validating restoration parameters...
2021-03-12 12:03:58,206: DEBUG - 4546 + echo '[#++.................] > Validating restoration parameters...'
2021-03-12 12:03:58,206: DEBUG - 4546 + ynh_webpath_available --domain=xxxxxx --path_url=/jellyfin
2021-03-12 12:03:58,207: DEBUG - 4547 + yunohost domain url-available xxxxxx /jellyfin
2021-03-12 12:03:58,608: DEBUG - 4948 False
2021-03-12 12:03:58,609: DEBUG - 4948 + test '!' -d /etc/jellyfin
2021-03-12 12:03:58,609: DEBUG - 4948 + test '!' -d /var/lib/jellyfin
2021-03-12 12:03:58,609: DEBUG - 4949 + ynh_restore_file --origin_path=/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:03:58,711: DEBUG - 5050 + origin_path=/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:03:58,712: DEBUG - 5051 + dest_path=/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:03:58,712: DEBUG - 5051 + not_mandatory=0
2021-03-12 12:03:58,712: DEBUG - 5052 + local archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:03:58,712: DEBUG - 5052 + '[' '!' -d /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf ']'
2021-03-12 12:03:58,712: DEBUG - 5052 + '[' '!' -f /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf ']'
2021-03-12 12:03:58,713: DEBUG - 5053 + [[ -e /etc/nginx/conf.d/xxxxxx.d/jellyfin.conf ]]
2021-03-12 12:03:58,713: DEBUG - 5053 ++ dirname /etc/nginx/conf.d/xxxxxxd/jellyfin.conf
2021-03-12 12:03:58,713: DEBUG - 5053 + mkdir --parents /etc/nginx/conf.d/xxxxxx.d
2021-03-12 12:03:58,713: DEBUG - 5054 + mountpoint --quiet /home/yunohost.backup/tmp/jellyfin-pre-upgrade2
2021-03-12 12:03:58,713: DEBUG - 5054 + mv /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf /etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:03:58,815: DEBUG - 5156 [###++...............] > Restoring the app main directory...
2021-03-12 12:03:58,815: DEBUG - 5156 + echo '[###++...............] > Restoring the app main directory...'
2021-03-12 12:03:58,816: DEBUG - 5156 + ynh_restore_file --origin_path=/etc/jellyfin
2021-03-12 12:03:58,818: DEBUG - 5158 + origin_path=/etc/jellyfin
2021-03-12 12:03:58,818: DEBUG - 5158 + dest_path=/etc/jellyfin
2021-03-12 12:03:58,819: DEBUG - 5159 + not_mandatory=0
2021-03-12 12:03:58,819: DEBUG - 5159 + local archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/jellyfin
2021-03-12 12:03:58,819: DEBUG - 5159 + '[' '!' -d /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/jellyfin ']'
2021-03-12 12:03:58,819: DEBUG - 5159 + [[ -e /etc/jellyfin ]]
2021-03-12 12:03:58,819: DEBUG - 5159 ++ dirname /etc/jellyfin
2021-03-12 12:03:58,820: DEBUG - 5159 + mkdir --parents /etc
2021-03-12 12:03:58,820: DEBUG - 5160 + mountpoint --quiet /home/yunohost.backup/tmp/jellyfin-pre-upgrade2
2021-03-12 12:03:58,820: DEBUG - 5160 + mv /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/etc/jellyfin /etc/jellyfin
2021-03-12 12:03:58,820: DEBUG - 5160 + ynh_restore_file --origin_path=/var/lib/jellyfin
2021-03-12 12:03:58,822: DEBUG - 5162 + origin_path=/var/lib/jellyfin
2021-03-12 12:03:58,823: DEBUG - 5163 + dest_path=/var/lib/jellyfin
2021-03-12 12:03:58,823: DEBUG - 5163 + not_mandatory=0
2021-03-12 12:03:58,823: DEBUG - 5163 + local archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/var/lib/jellyfin
2021-03-12 12:03:58,823: DEBUG - 5164 + '[' '!' -d /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/var/lib/jellyfin ']'
2021-03-12 12:03:58,824: DEBUG - 5164 + [[ -e /var/lib/jellyfin ]]
2021-03-12 12:03:58,824: DEBUG - 5164 ++ dirname /var/lib/jellyfin
2021-03-12 12:03:58,824: DEBUG - 5164 + mkdir --parents /var/lib
2021-03-12 12:03:58,824: DEBUG - 5165 + mountpoint --quiet /home/yunohost.backup/tmp/jellyfin-pre-upgrade2
2021-03-12 12:03:58,824: DEBUG - 5165 + mv /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/var/lib/jellyfin /var/lib/jellyfin
2021-03-12 12:03:58,926: DEBUG - 5266 + echo '[#####+..............] > Recreating the dedicated system user...'
2021-03-12 12:03:58,926: DEBUG - 5266 + ynh_system_user_create --username=jellyfin
2021-03-12 12:03:58,928: DEBUG - 5268 + use_shell=0
2021-03-12 12:03:58,928: DEBUG - 5268 + home_dir=
2021-03-12 12:03:58,929: DEBUG - 5268 + ynh_system_user_exists jellyfin
2021-03-12 12:03:59,031: DEBUG - 5369 [#####+..............] > Recreating the dedicated system user...
2021-03-12 12:03:59,031: DEBUG - 5370 + getent passwd jellyfin
2021-03-12 12:03:59,031: DEBUG - 5370 + '[' -n '' ']'
2021-03-12 12:03:59,031: DEBUG - 5370 + local user_home_dir=--no-create-home
2021-03-12 12:03:59,032: DEBUG - 5370 + '[' 0 -eq 1 ']'
2021-03-12 12:03:59,032: DEBUG - 5371 + local 'shell=--shell /usr/sbin/nologin'
2021-03-12 12:03:59,032: DEBUG - 5371 + useradd --no-create-home --system --user-group jellyfin --shell /usr/sbin/nologin
2021-03-12 12:03:59,032: DEBUG - 5371 + chown -R jellyfin: /etc/jellyfin
2021-03-12 12:03:59,032: DEBUG - 5371 + chown -R jellyfin: /var/lib/jellyfin
2021-03-12 12:03:59,133: DEBUG - 5473 + echo '[######+++++++.......] > Reinstalling dependencies...'
2021-03-12 12:03:59,134: DEBUG - 5473 ++ lsb_release -c -s
2021-03-12 12:03:59,234: DEBUG - 5573 + ynh_install_extra_app_dependencies '--repo=https://repo.jellyfin.org/debian buster main' --package=jellyfin --key=https://repo.jellyfin.org/debian/jellyfin_team.gpg.key
2021-03-12 12:03:59,235: DEBUG - 5574 [######+++++++.......] > Reinstalling dependencies...
2021-03-12 12:03:59,337: DEBUG - 5677 + name=jellyfin
2021-03-12 12:03:59,337: DEBUG - 5677 + key=https://repo.jellyfin.org/debian/jellyfin_team.gpg.key
2021-03-12 12:03:59,337: DEBUG - 5678 + '[' -n https://repo.jellyfin.org/debian/jellyfin_team.gpg.key ']'
2021-03-12 12:03:59,337: DEBUG - 5678 + key=--key=https://repo.jellyfin.org/debian/jellyfin_team.gpg.key
2021-03-12 12:03:59,338: DEBUG - 5678 + ynh_install_extra_repo '--repo=https://repo.jellyfin.org/debian buster main' --key=https://repo.jellyfin.org/debian/jellyfin_team.gpg.key --priority=995 --name=jellyfin
2021-03-12 12:03:59,439: DEBUG - 5781 + name=jellyfin
2021-03-12 12:03:59,440: DEBUG - 5782 + append=0
2021-03-12 12:03:59,440: DEBUG - 5782 + key=https://repo.jellyfin.org/debian/jellyfin_team.gpg.key
2021-03-12 12:03:59,440: DEBUG - 5782 + priority=995
2021-03-12 12:03:59,441: DEBUG - 5782 + '[' 0 -eq 1 ']'
2021-03-12 12:03:59,441: DEBUG - 5783 + append=
2021-03-12 12:03:59,441: DEBUG - 5783 + wget_append=tee
2021-03-12 12:03:59,441: DEBUG - 5783 + repo='https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:59,441: DEBUG - 5784 ++ echo 'https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:59,442: DEBUG - 5784 ++ awk '{ print $1 }'
2021-03-12 12:03:59,442: DEBUG - 5784 + local uri=https://repo.jellyfin.org/debian
2021-03-12 12:03:59,442: DEBUG - 5784 ++ echo 'https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:59,442: DEBUG - 5785 ++ awk '{ print $2 }'
2021-03-12 12:03:59,443: DEBUG - 5785 + local suite=buster
2021-03-12 12:03:59,443: DEBUG - 5785 + local component=main
2021-03-12 12:03:59,443: DEBUG - 5785 + ynh_add_repo --uri=https://repo.jellyfin.org/debian --suite=buster --component=main --name=jellyfin
2021-03-12 12:03:59,646: DEBUG - 5988 + name=jellyfin
2021-03-12 12:03:59,647: DEBUG - 5988 + append=0
2021-03-12 12:03:59,647: DEBUG - 5989 + '[' 0 -eq 1 ']'
2021-03-12 12:03:59,647: DEBUG - 5989 + append=tee
2021-03-12 12:03:59,648: DEBUG - 5989 + mkdir --parents /etc/apt/sources.list.d
2021-03-12 12:03:59,648: DEBUG - 5989 + echo 'deb https://repo.jellyfin.org/debian buster main'
2021-03-12 12:03:59,648: DEBUG - 5990 + tee /etc/apt/sources.list.d/jellyfin.list
2021-03-12 12:03:59,648: DEBUG - 5990 deb https://repo.jellyfin.org/debian buster main
2021-03-12 12:03:59,649: DEBUG - 5990 + local pin=repo.jellyfin.org/debian
2021-03-12 12:03:59,649: DEBUG - 5991 + pin=repo.jellyfin.org
2021-03-12 12:03:59,649: DEBUG - 5991 + '[' -n 995 ']'
2021-03-12 12:03:59,649: DEBUG - 5991 + priority=--priority=995
2021-03-12 12:03:59,649: DEBUG - 5991 + ynh_pin_repo '--package=*' '--pin=origin "repo.jellyfin.org"' --priority=995 --name=jellyfin
2021-03-12 12:03:59,852: DEBUG - 6194 + package='*'
2021-03-12 12:03:59,853: DEBUG - 6195 + priority=995
2021-03-12 12:03:59,853: DEBUG - 6195 + name=jellyfin
2021-03-12 12:03:59,853: DEBUG - 6195 + append=0
2021-03-12 12:03:59,853: DEBUG - 6196 + '[' 0 -eq 1 ']'
2021-03-12 12:03:59,854: DEBUG - 6196 + append=tee
2021-03-12 12:03:59,854: DEBUG - 6196 + [[ jellyfin != \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]]
2021-03-12 12:03:59,854: DEBUG - 6196 + mkdir --parents /etc/apt/preferences.d
2021-03-12 12:03:59,854: DEBUG - 6196 + echo 'Package: *
2021-03-12 12:03:59,855: DEBUG - 6197 Pin: origin "repo.jellyfin.org"
2021-03-12 12:03:59,855: DEBUG - 6197 Pin-Priority: 995
2021-03-12 12:03:59,855: DEBUG - 6197 '
2021-03-12 12:03:59,855: DEBUG - 6197 + tee /etc/apt/preferences.d/jellyfin
2021-03-12 12:03:59,855: DEBUG - 6198 Package: *
2021-03-12 12:03:59,856: DEBUG - 6198 Pin: origin "repo.jellyfin.org"
2021-03-12 12:03:59,856: DEBUG - 6198 Pin-Priority: 995
2021-03-12 12:03:59,856: DEBUG - 6198
2021-03-12 12:03:59,856: DEBUG - 6198 + '[' -n https://repo.jellyfin.org/debian/jellyfin_team.gpg.key ']'
2021-03-12 12:03:59,856: DEBUG - 6199 + mkdir --parents /etc/apt/trusted.gpg.d
2021-03-12 12:03:59,857: DEBUG - 6199 + wget --timeout 900 --quiet https://repo.jellyfin.org/debian/jellyfin_team.gpg.key --output-document=-
2021-03-12 12:03:59,857: DEBUG - 6199 + gpg --dearmor
2021-03-12 12:03:59,857: DEBUG - 6199 + tee /etc/apt/trusted.gpg.d/jellyfin.gpg
2021-03-12 12:04:00,458: DEBUG - 6801 + ynh_package_update
2021-03-12 12:04:00,459: DEBUG - 6801 + ynh_apt update
2021-03-12 12:04:00,459: DEBUG - 6801 + ynh_wait_dpkg_free
2021-03-12 12:04:00,659: DEBUG - 7002 + return 0
2021-03-12 12:04:00,660: DEBUG - 7002 + LC_ALL=C
2021-03-12 12:04:00,660: DEBUG - 7002 + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:04:00,660: DEBUG - 7002 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-12 12:04:00,961: DEBUG - 7303 Hit:1 https://packages.sury.org/php buster InRelease
2021-03-12 12:04:00,961: DEBUG - 7303 Hit:2 http://forge.yunohost.org/debian buster InRelease
2021-03-12 12:04:00,962: DEBUG - 7304 Hit:3 http://security.debian.org/debian-security buster/updates InRelease
2021-03-12 12:04:00,962: DEBUG - 7304 Hit:4 http://ftp.debian.org/debian buster InRelease
2021-03-12 12:04:01,062: DEBUG - 7404 Hit:5 http://ftp.debian.org/debian buster-updates InRelease
2021-03-12 12:04:01,464: DEBUG - 7805 Hit:6 https://repo.jellyfin.org/debian buster InRelease
2021-03-12 12:04:05,471: DEBUG - 11812 Reading package lists...
2021-03-12 12:04:05,571: DEBUG - 11913 + ynh_add_app_dependencies --package=jellyfin
2021-03-12 12:04:05,573: DEBUG - 11914 + replace=0
2021-03-12 12:04:05,573: DEBUG - 11914 + local current_dependencies=
2021-03-12 12:04:05,573: DEBUG - 11914 + '[' 0 -eq 0 ']'
2021-03-12 12:04:05,573: DEBUG - 11914 + local dep_app=jellyfin
2021-03-12 12:04:05,573: DEBUG - 11914 + ynh_package_is_installed --package=jellyfin-ynh-deps
2021-03-12 12:04:05,574: DEBUG - 11915 + ynh_wait_dpkg_free
2021-03-12 12:04:05,875: DEBUG - 12216 + return 0
2021-03-12 12:04:05,876: DEBUG - 12216 + dpkg-query --show '--showformat=${Status}' jellyfin-ynh-deps
2021-03-12 12:04:05,876: DEBUG - 12216 + grep --count 'ok installed'
2021-03-12 12:04:05,876: DEBUG - 12216 + current_dependencies=
2021-03-12 12:04:05,876: DEBUG - 12217 + ynh_install_app_dependencies jellyfin
2021-03-12 12:04:05,876: DEBUG - 12217 + local dependencies=jellyfin
2021-03-12 12:04:05,876: DEBUG - 12217 ++ echo jellyfin
2021-03-12 12:04:05,877: DEBUG - 12217 ++ sed 's/\([^\<=\>]\)\ \([^(]\)/\1, \2/g'
2021-03-12 12:04:05,877: DEBUG - 12217 + dependencies=jellyfin
2021-03-12 12:04:05,877: DEBUG - 12217 + local dependencies=jellyfin
2021-03-12 12:04:05,877: DEBUG - 12217 + local manifest_path=../manifest.json
2021-03-12 12:04:05,877: DEBUG - 12217 + '[' '!' -e ../manifest.json ']'
2021-03-12 12:04:05,877: DEBUG - 12217 + manifest_path=../settings/manifest.json
2021-03-12 12:04:05,878: DEBUG - 12218 ++ grep '\"version\": ' ../settings/manifest.json
2021-03-12 12:04:05,878: DEBUG - 12218 ++ cut '--delimiter="' --fields=4
2021-03-12 12:04:05,878: DEBUG - 12218 + local version=10.6.4~ynh3
2021-03-12 12:04:05,878: DEBUG - 12218 + '[' 11 -eq 0 ']'
2021-03-12 12:04:05,878: DEBUG - 12218 + local dep_app=jellyfin
2021-03-12 12:04:05,878: DEBUG - 12218 + [[ jellyfin =~ [<=>] ]]
2021-03-12 12:04:05,879: DEBUG - 12218 + echo jellyfin
2021-03-12 12:04:05,879: DEBUG - 12218 + grep --quiet php
2021-03-12 12:04:05,879: DEBUG - 12218 + cat
2021-03-12 12:04:05,879: DEBUG - 12218 + ynh_package_install_from_equivs /tmp/jellyfin-ynh-deps.control
2021-03-12 12:04:05,879: DEBUG - 12219 + local controlfile=/tmp/jellyfin-ynh-deps.control
2021-03-12 12:04:05,879: DEBUG - 12219 ++ grep '^Package: ' /tmp/jellyfin-ynh-deps.control
2021-03-12 12:04:05,880: DEBUG - 12219 ++ cut '--delimiter= ' --fields=2
2021-03-12 12:04:05,880: DEBUG - 12219 + local pkgname=jellyfin-ynh-deps
2021-03-12 12:04:05,880: DEBUG - 12219 ++ grep '^Version: ' /tmp/jellyfin-ynh-deps.control
2021-03-12 12:04:05,880: DEBUG - 12219 ++ cut '--delimiter= ' --fields=2
2021-03-12 12:04:05,880: DEBUG - 12219 + local pkgversion=10.6.4~ynh3
2021-03-12 12:04:05,880: DEBUG - 12219 + [[ -z jellyfin-ynh-deps ]]
2021-03-12 12:04:05,881: DEBUG - 12219 + [[ -z 10.6.4~ynh3 ]]
2021-03-12 12:04:05,881: DEBUG - 12220 + ynh_package_update
2021-03-12 12:04:05,881: DEBUG - 12220 + ynh_apt update
2021-03-12 12:04:05,881: DEBUG - 12220 + ynh_wait_dpkg_free
2021-03-12 12:04:06,082: DEBUG - 12421 + return 0
2021-03-12 12:04:06,082: DEBUG - 12421 + LC_ALL=C
2021-03-12 12:04:06,083: DEBUG - 12421 + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:04:06,083: DEBUG - 12422 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-12 12:04:06,384: DEBUG - 12722 Hit:1 http://ftp.debian.org/debian buster InRelease
2021-03-12 12:04:06,384: DEBUG - 12723 Hit:2 https://packages.sury.org/php buster InRelease
2021-03-12 12:04:06,384: DEBUG - 12723 Hit:3 http://security.debian.org/debian-security buster/updates InRelease
2021-03-12 12:04:06,385: DEBUG - 12723 Hit:4 http://ftp.debian.org/debian buster-updates InRelease
2021-03-12 12:04:06,485: DEBUG - 12823 Hit:5 http://forge.yunohost.org/debian buster InRelease
2021-03-12 12:04:06,886: DEBUG - 13224 Hit:6 https://repo.jellyfin.org/debian buster InRelease
2021-03-12 12:04:09,891: DEBUG - 16229 Reading package lists...
2021-03-12 12:04:09,892: DEBUG - 16230 ++ mktemp --directory
2021-03-12 12:04:09,892: DEBUG - 16230 + local TMPDIR=/tmp/tmp.5T4nVDqhHn
2021-03-12 12:04:09,892: DEBUG - 16230 + echo 10
2021-03-12 12:04:09,892: DEBUG - 16230 + ynh_wait_dpkg_free
2021-03-12 12:04:10,093: DEBUG - 16431 + return 0
2021-03-12 12:04:10,093: DEBUG - 16431 + cp /tmp/jellyfin-ynh-deps.control /tmp/tmp.5T4nVDqhHn/control
2021-03-12 12:04:10,193: DEBUG - 16531 + cd /tmp/tmp.5T4nVDqhHn
2021-03-12 12:04:10,193: DEBUG - 16532 + LC_ALL=C
2021-03-12 12:04:10,194: DEBUG - 16532 + equivs-build ./control
2021-03-12 12:04:10,895: DEBUG - 17234 + LC_ALL=C
2021-03-12 12:04:10,895: DEBUG - 17234 + dpkg --force-depends --install ./jellyfin-ynh-deps_10.6.4~ynh3_all.deb
2021-03-12 12:04:10,895: DEBUG - 17234 + tee ./dpkg_log
2021-03-12 12:04:10,895: DEBUG - 17234 Selecting previously unselected package jellyfin-ynh-deps.
2021-03-12 12:04:10,896: DEBUG - 17234 (Reading database ... 128943 files and directories currently installed.)
2021-03-12 12:04:10,896: DEBUG - 17235 Preparing to unpack .../jellyfin-ynh-deps_10.6.4~ynh3_all.deb ...
2021-03-12 12:04:10,996: DEBUG - 17335 Unpacking jellyfin-ynh-deps (10.6.4~ynh3) ...
2021-03-12 12:04:10,996: DEBUG - 17335 dpkg: jellyfin-ynh-deps: dependency problems, but configuring anyway as you requested:
2021-03-12 12:04:10,996: DEBUG - 17335 jellyfin-ynh-deps depends on jellyfin; however:
2021-03-12 12:04:10,996: DEBUG - 17336 Package jellyfin is not installed.
2021-03-12 12:04:10,997: DEBUG - 17336
2021-03-12 12:04:10,997: DEBUG - 17336 Setting up jellyfin-ynh-deps (10.6.4~ynh3) ...
2021-03-12 12:04:10,997: DEBUG - 17336 + ynh_package_install --fix-broken
2021-03-12 12:04:10,997: DEBUG - 17336 + ynh_apt --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-12 12:04:10,997: DEBUG - 17336 + ynh_wait_dpkg_free
2021-03-12 12:04:11,298: DEBUG - 17638 + return 0
2021-03-12 12:04:11,298: DEBUG - 17638 + LC_ALL=C
2021-03-12 12:04:11,299: DEBUG - 17638 + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:04:11,299: DEBUG - 17638 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 --no-remove --option Dpkg::Options::=--force-confdef --option Dpkg::Options::=--force-confold install --fix-broken
2021-03-12 12:04:11,500: DEBUG - 17839 Reading package lists...
2021-03-12 12:04:11,700: DEBUG - 18039 Building dependency tree...
2021-03-12 12:04:11,700: DEBUG - 18040 Reading state information...
2021-03-12 12:04:11,801: DEBUG - 18140 Correcting dependencies... Done
2021-03-12 12:04:11,901: DEBUG - 18240 The following additional packages will be installed:
2021-03-12 12:04:11,902: DEBUG - 18241 jellyfin jellyfin-ffmpeg jellyfin-server jellyfin-web ocl-icd-libopencl1
2021-03-12 12:04:11,902: DEBUG - 18241 Suggested packages:
2021-03-12 12:04:11,902: DEBUG - 18241 opencl-icd
2021-03-12 12:04:11,902: DEBUG - 18242 The following NEW packages will be installed:
2021-03-12 12:04:11,902: DEBUG - 18242 jellyfin jellyfin-ffmpeg jellyfin-server jellyfin-web ocl-icd-libopencl1
2021-03-12 12:04:13,305: DEBUG - 19644 0 upgraded, 5 newly installed, 0 to remove and 0 not upgraded.
2021-03-12 12:04:13,306: DEBUG - 19645 Need to get 92.4 MB/92.4 MB of archives.
2021-03-12 12:04:13,306: DEBUG - 19645 After this operation, 265 MB of additional disk space will be used.
2021-03-12 12:04:13,306: DEBUG - 19645 Get:1 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-server amd64 10.7.0-1 [37.9 MB]
2021-03-12 12:04:21,120: DEBUG - 27459 Get:2 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-web all 10.7.0-1 [35.1 MB]
2021-03-12 12:04:28,232: DEBUG - 34571 Get:3 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin-ffmpeg amd64 4.3.1-4-buster [19.5 MB]
2021-03-12 12:04:31,939: DEBUG - 38277 Get:4 https://fra1.mirror.jellyfin.org/debian buster/main amd64 jellyfin all 10.7.0-1 [2260 B]
2021-03-12 12:04:32,340: DEBUG - 38678 Fetched 92.4 MB in 20s (4632 kB/s)
2021-03-12 12:04:32,440: DEBUG - 38779 Selecting previously unselected package jellyfin-server.
2021-03-12 12:04:32,441: DEBUG - 38779 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-03-12 12:04:32,441: DEBUG - 38780 (Reading database ... 128947 files and directories currently installed.)
2021-03-12 12:04:32,441: DEBUG - 38780 Preparing to unpack .../jellyfin-server_10.7.0-1_amd64.deb ...
2021-03-12 12:04:32,641: DEBUG - 38980 Unpacking jellyfin-server (10.7.0-1) ...
2021-03-12 12:04:36,147: DEBUG - 42486 Selecting previously unselected package jellyfin-web.
2021-03-12 12:04:36,147: DEBUG - 42486 Preparing to unpack .../jellyfin-web_10.7.0-1_all.deb ...
2021-03-12 12:04:36,147: DEBUG - 42486 Unpacking jellyfin-web (10.7.0-1) ...
2021-03-12 12:04:38,551: DEBUG - 44890 Selecting previously unselected package ocl-icd-libopencl1:amd64.
2021-03-12 12:04:38,552: DEBUG - 44890 Preparing to unpack .../ocl-icd-libopencl1_2.2.12-2_amd64.deb ...
2021-03-12 12:04:38,552: DEBUG - 44890 Unpacking ocl-icd-libopencl1:amd64 (2.2.12-2) ...
2021-03-12 12:04:38,652: DEBUG - 44991 Selecting previously unselected package jellyfin-ffmpeg.
2021-03-12 12:04:38,652: DEBUG - 44991 Preparing to unpack .../jellyfin-ffmpeg_4.3.1-4-buster_amd64.deb ...
2021-03-12 12:04:38,652: DEBUG - 44991 Unpacking jellyfin-ffmpeg (4.3.1-4-buster) ...
2021-03-12 12:04:40,656: DEBUG - 46994 Selecting previously unselected package jellyfin.
2021-03-12 12:04:40,656: DEBUG - 46995 Preparing to unpack .../jellyfin_10.7.0-1_all.deb ...
2021-03-12 12:04:40,657: DEBUG - 46995 Unpacking jellyfin (10.7.0-1) ...
2021-03-12 12:04:40,757: DEBUG - 47095 Setting up jellyfin-web (10.7.0-1) ...
2021-03-12 12:04:40,757: DEBUG - 47096 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-03-12 12:04:40,758: DEBUG - 47096 Setting up jellyfin-server (10.7.0-1) ...
2021-03-12 12:04:41,459: DEBUG - 47797 Setting up ocl-icd-libopencl1:amd64 (2.2.12-2) ...
2021-03-12 12:04:41,559: DEBUG - 47898 Setting up jellyfin-ffmpeg (4.3.1-4-buster) ...
2021-03-12 12:04:41,560: DEBUG - 47898 Setting up jellyfin (10.7.0-1) ...
2021-03-12 12:04:41,560: DEBUG - 47899 Processing triggers for systemd (241-7~deb10u6) ...
2021-03-12 12:04:41,761: DEBUG - 48102 Processing triggers for man-db (2.8.5-2) ...
2021-03-12 12:04:41,761: DEBUG - 48103 Processing triggers for libc-bin (2.28-10) ...
2021-03-12 12:04:41,961: DEBUG - 48304 + [[ -n /tmp/tmp.5T4nVDqhHn ]]
2021-03-12 12:04:41,962: DEBUG - 48305 + rm --recursive --force /tmp/tmp.5T4nVDqhHn
2021-03-12 12:04:41,962: DEBUG - 48305 + ynh_package_is_installed jellyfin-ynh-deps
2021-03-12 12:04:41,964: DEBUG - 48307 + ynh_wait_dpkg_free
2021-03-12 12:04:42,164: DEBUG - 48508 + return 0
2021-03-12 12:04:42,165: DEBUG - 48508 + dpkg-query --show '--showformat=${Status}' jellyfin-ynh-deps
2021-03-12 12:04:42,165: DEBUG - 48508 + grep --count 'ok installed'
2021-03-12 12:04:42,265: DEBUG - 48608 + rm /tmp/jellyfin-ynh-deps.control
2021-03-12 12:04:42,266: DEBUG - 48609 + ynh_app_setting_set --app=jellyfin --key=apt_dependencies --value=jellyfin
2021-03-12 12:04:42,267: DEBUG - 48610 + [[ apt_dependencies =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:04:42,267: DEBUG - 48611 + ynh_app_setting set jellyfin apt_dependencies jellyfin
2021-03-12 12:04:42,367: DEBUG - 48711 + ynh_remove_extra_repo --name=jellyfin
2021-03-12 12:04:42,369: DEBUG - 48713 + name=jellyfin
2021-03-12 12:04:42,369: DEBUG - 48713 + ynh_secure_remove /etc/apt/sources.list.d/jellyfin.list
2021-03-12 12:04:42,370: DEBUG - 48715 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:42,371: DEBUG - 48715 + '[' 1 -ge 2 ']'
2021-03-12 12:04:42,371: DEBUG - 48716 + [[ -z /etc/apt/sources.list.d/jellyfin.list ]]
2021-03-12 12:04:42,371: DEBUG - 48716 + [[ /var/www /home/yunohost.app =~ /etc/apt/sources\.list\.d/jellyfin\.list ]]
2021-03-12 12:04:42,371: DEBUG - 48716 + [[ /etc/apt/sources.list.d/jellyfin.list =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:42,371: DEBUG - 48716 + [[ t = \/ ]]
2021-03-12 12:04:42,371: DEBUG - 48716 + '[' -e /etc/apt/sources.list.d/jellyfin.list ']'
2021-03-12 12:04:42,372: DEBUG - 48717 + rm --recursive /etc/apt/sources.list.d/jellyfin.list
2021-03-12 12:04:42,372: DEBUG - 48717 + [[ jellyfin == \e\x\t\r\a\_\p\h\p\_\v\e\r\s\i\o\n ]]
2021-03-12 12:04:42,372: DEBUG - 48717 + ynh_secure_remove /etc/apt/preferences.d/jellyfin
2021-03-12 12:04:42,373: DEBUG - 48719 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:42,374: DEBUG - 48719 + '[' 1 -ge 2 ']'
2021-03-12 12:04:42,374: DEBUG - 48719 + [[ -z /etc/apt/preferences.d/jellyfin ]]
2021-03-12 12:04:42,374: DEBUG - 48720 + [[ /var/www /home/yunohost.app =~ /etc/apt/preferences\.d/jellyfin ]]
2021-03-12 12:04:42,374: DEBUG - 48720 + [[ /etc/apt/preferences.d/jellyfin =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:42,374: DEBUG - 48720 + [[ n = \/ ]]
2021-03-12 12:04:42,375: DEBUG - 48720 + '[' -e /etc/apt/preferences.d/jellyfin ']'
2021-03-12 12:04:42,375: DEBUG - 48720 + rm --recursive /etc/apt/preferences.d/jellyfin
2021-03-12 12:04:42,375: DEBUG - 48721 + ynh_secure_remove /etc/apt/trusted.gpg.d/jellyfin.gpg
2021-03-12 12:04:42,376: DEBUG - 48722 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:42,376: DEBUG - 48723 + '[' 1 -ge 2 ']'
2021-03-12 12:04:42,377: DEBUG - 48723 + [[ -z /etc/apt/trusted.gpg.d/jellyfin.gpg ]]
2021-03-12 12:04:42,377: DEBUG - 48723 + [[ /var/www /home/yunohost.app =~ /etc/apt/trusted\.gpg\.d/jellyfin\.gpg ]]
2021-03-12 12:04:42,377: DEBUG - 48723 + [[ /etc/apt/trusted.gpg.d/jellyfin.gpg =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:42,377: DEBUG - 48723 + [[ g = \/ ]]
2021-03-12 12:04:42,377: DEBUG - 48724 + '[' -e /etc/apt/trusted.gpg.d/jellyfin.gpg ']'
2021-03-12 12:04:42,377: DEBUG - 48724 + rm --recursive /etc/apt/trusted.gpg.d/jellyfin.gpg
2021-03-12 12:04:42,378: DEBUG - 48724 + ynh_secure_remove /etc/apt/trusted.gpg.d/jellyfin.asc
2021-03-12 12:04:42,379: DEBUG - 48726 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:42,379: DEBUG - 48726 + '[' 1 -ge 2 ']'
2021-03-12 12:04:42,379: DEBUG - 48726 + [[ -z /etc/apt/trusted.gpg.d/jellyfin.asc ]]
2021-03-12 12:04:42,380: DEBUG - 48727 + [[ /var/www /home/yunohost.app =~ /etc/apt/trusted\.gpg\.d/jellyfin\.asc ]]
2021-03-12 12:04:42,380: DEBUG - 48727 + [[ /etc/apt/trusted.gpg.d/jellyfin.asc =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:42,380: DEBUG - 48727 + [[ c = \/ ]]
2021-03-12 12:04:42,380: DEBUG - 48727 + '[' -e /etc/apt/trusted.gpg.d/jellyfin.asc ']'
2021-03-12 12:04:42,380: DEBUG - 48727 + ynh_print_info '--message='\''/etc/apt/trusted.gpg.d/jellyfin.asc'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:42,381: DEBUG - 48729 + echo ''\''/etc/apt/trusted.gpg.d/jellyfin.asc'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:42,382: DEBUG - 48729 + ynh_package_update
2021-03-12 12:04:42,382: DEBUG - 48729 + ynh_apt update
2021-03-12 12:04:42,382: DEBUG - 48729 + ynh_wait_dpkg_free
2021-03-12 12:04:42,683: DEBUG - 49030 + return 0
2021-03-12 12:04:42,683: DEBUG - 49031 '/etc/apt/trusted.gpg.d/jellyfin.asc' wasn't deleted because it doesn't exist.
2021-03-12 12:04:42,683: DEBUG - 49031 + LC_ALL=C
2021-03-12 12:04:42,683: DEBUG - 49031 + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:04:42,683: DEBUG - 49031 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 update
2021-03-12 12:04:42,884: DEBUG - 49232 Hit:1 https://packages.sury.org/php buster InRelease
2021-03-12 12:04:42,984: DEBUG - 49332 Hit:2 http://security.debian.org/debian-security buster/updates InRelease
2021-03-12 12:04:42,985: DEBUG - 49333 Hit:3 http://ftp.debian.org/debian buster InRelease
2021-03-12 12:04:42,985: DEBUG - 49333 Hit:4 http://forge.yunohost.org/debian buster InRelease
2021-03-12 12:04:42,985: DEBUG - 49333 Hit:5 http://ftp.debian.org/debian buster-updates InRelease
2021-03-12 12:04:47,293: DEBUG - 53641 Reading package lists...
2021-03-12 12:04:47,395: DEBUG - 53743 + echo '[#############++.....] > Restoring the systemd configuration...'
2021-03-12 12:04:47,395: DEBUG - 53744 + ynh_restore_file --origin_path=/lib/systemd/system/jellyfin.service
2021-03-12 12:04:47,397: DEBUG - 53746 + origin_path=/lib/systemd/system/jellyfin.service
2021-03-12 12:04:47,397: DEBUG - 53747 + dest_path=/lib/systemd/system/jellyfin.service
2021-03-12 12:04:47,398: DEBUG - 53747 + not_mandatory=0
2021-03-12 12:04:47,398: DEBUG - 53747 + local archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service
2021-03-12 12:04:47,398: DEBUG - 53748 + '[' '!' -d /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:47,398: DEBUG - 53748 + '[' '!' -f /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:47,398: DEBUG - 53748 + '[' '!' -L /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:47,399: DEBUG - 53748 + '[' 0 == 0 ']'
2021-03-12 12:04:47,399: DEBUG - 53749 ++ _get_archive_path '"/lib/systemd/system/jellyfin.service"'
2021-03-12 12:04:47,399: DEBUG - 53749 ++ python -c '
2021-03-12 12:04:47,399: DEBUG - 53749 import sys
2021-03-12 12:04:47,399: DEBUG - 53749 import csv
2021-03-12 12:04:47,400: DEBUG - 53749 with open(sys.argv[1], '\''r'\'') as backup_file:
2021-03-12 12:04:47,400: DEBUG - 53750 backup_csv = csv.DictReader(backup_file, fieldnames=['\''source'\'', '\''dest'\''])
2021-03-12 12:04:47,400: DEBUG - 53750 for row in backup_csv:
2021-03-12 12:04:47,400: DEBUG - 53750 if row['\''source'\'']==sys.argv[2].strip('\''"'\''):
2021-03-12 12:04:47,400: DEBUG - 53750 print row['\''dest'\'']
2021-03-12 12:04:47,401: DEBUG - 53750 sys.exit(0)
2021-03-12 12:04:47,401: DEBUG - 53751 raise Exception('\''Original path for %s not found'\'' % sys.argv[2])
2021-03-12 12:04:47,401: DEBUG - 53751 ' /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/backup.csv '"/lib/systemd/system/jellyfin.service"'
2021-03-12 12:04:47,502: DEBUG - 53851 ++ return 1
2021-03-12 12:04:47,502: DEBUG - 53851 [#############++.....] > Restoring the systemd configuration...
2021-03-12 12:04:47,502: DEBUG - 53852 + archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/
2021-03-12 12:04:47,502: DEBUG - 53852 + ynh_exit_properly
2021-03-12 12:04:47,503: DEBUG - 53852 + local exit_code=1
2021-03-12 12:04:47,503: DEBUG - 53852 + '[' 1 -eq 0 ']'
2021-03-12 12:04:47,503: DEBUG - 53853 + trap '' EXIT
2021-03-12 12:04:47,503: DEBUG - 53853 + set +o errexit
2021-03-12 12:04:47,503: DEBUG - 53853 + set +o nounset
2021-03-12 12:04:47,504: DEBUG - 53853 + sleep 0.5
2021-03-12 12:04:48,005: DEBUG - 54355 + type -t ynh_clean_setup
2021-03-12 12:04:48,005: WARNING - 54388 Could not restore jellyfin
2021-03-12 12:04:48,005: DEBUG - 54355 + ynh_clean_setup
2021-03-12 12:04:48,006: WARNING - 54410 Here's an extract of the logs before the crash. It might help debugging the error:
2021-03-12 12:04:48,006: DEBUG - 54355 + ynh_clean_check_starting
2021-03-12 12:04:48,007: DEBUG - 54356 + '[' -n '' ']'
2021-03-12 12:04:48,007: DEBUG - 54356 + '[' -n '' ']'
2021-03-12 12:04:48,007: DEBUG - 54356 + exit 1
2021-03-12 12:04:48,007: DEBUG - 54389 The operation 'Restore 'jellyfin' from a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20210312-100354-backup_restore_app-jellyfin --share' to get help
2021-03-12 12:04:48,007: DEBUG - 54411 DEBUG - + local archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - + '[' '!' -L /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/backup/lib/systemd/system/jellyfin.service ']'
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - + '[' 0 == 0 ']'
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - ++ _get_archive_path '"/lib/systemd/system/jellyfin.service"'
2021-03-12 12:04:48,008: DEBUG - 54411 DEBUG - ++ python -c '
2021-03-12 12:04:48,009: DEBUG - 54411 DEBUG - import sys
2021-03-12 12:04:48,009: DEBUG - 54411 DEBUG - import csv
2021-03-12 12:04:48,009: DEBUG - 54412 DEBUG - with open(sys.argv[1], '\''r'\'') as backup_file:
2021-03-12 12:04:48,009: DEBUG - 54412 DEBUG - backup_csv = csv.DictReader(backup_file, fieldnames=['\''source'\'', '\''dest'\''])
2021-03-12 12:04:48,009: DEBUG - 54412 DEBUG - for row in backup_csv:
2021-03-12 12:04:48,009: DEBUG - 54412 DEBUG - if row['\''source'\'']==sys.argv[2].strip('\''"'\''):
2021-03-12 12:04:48,010: DEBUG - 54412 DEBUG - print row['\''dest'\'']
2021-03-12 12:04:48,010: DEBUG - 54412 DEBUG - sys.exit(0)
2021-03-12 12:04:48,010: DEBUG - 54412 DEBUG - raise Exception('\''Original path for %s not found'\'' % sys.argv[2])
2021-03-12 12:04:48,010: DEBUG - 54412 DEBUG - ' /home/yunohost.backup/tmp/jellyfin-pre-upgrade2/backup.csv '"/lib/systemd/system/jellyfin.service"'
2021-03-12 12:04:48,010: DEBUG - 54412 DEBUG - ++ return 1
2021-03-12 12:04:48,011: DEBUG - 54412 INFO - [#############++.....] > Restoring the systemd configuration...
2021-03-12 12:04:48,011: DEBUG - 54413 DEBUG - + archive_path=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/
2021-03-12 12:04:48,011: DEBUG - 54413 DEBUG - + ynh_exit_properly
2021-03-12 12:04:48,011: DEBUG - 54428 Executing command 'sh -c YNH_APP_INSTANCE_NUMBER=1 YNH_CWD=/home/yunohost.backup/tmp/jellyfin-pre-upgrade2/apps/jellyfin/settings/scripts YNH_APP_MANIFEST_VERSION='10.6.4~ynh3' YNH_STDINFO=/tmp/tmpW3YGmG/stdinfo YNH_APP_INSTANCE_NAME=jellyfin YNH_INTERFACE=cli YNH_APP_ID=jellyfin YNH_STDRETURN=/tmp/tmpFuMzvv/stdreturn BASH_XTRACEFD=7 /bin/bash -x "./remove" jellyfin 7>&1'
2021-03-12 12:04:48,011: DEBUG - 54443 + source _common.sh
2021-03-12 12:04:48,012: DEBUG - 54444 ++ pkg_version=10.6.4-1
2021-03-12 12:04:48,012: DEBUG - 54444 + source /usr/share/yunohost/helpers
2021-03-12 12:04:48,012: DEBUG - 54444 +++ set +o
2021-03-12 12:04:48,012: DEBUG - 54445 +++ grep xtrace
2021-03-12 12:04:48,012: DEBUG - 54445 ++ readonly 'XTRACE_ENABLE=set -o xtrace'
2021-03-12 12:04:48,013: DEBUG - 54445 ++ XTRACE_ENABLE='set -o xtrace'
2021-03-12 12:04:48,214: DEBUG - 54647 [....................] > Loading installation settings...
2021-03-12 12:04:48,215: DEBUG - 54647 + echo '[....................] > Loading installation settings...'
2021-03-12 12:04:48,215: DEBUG - 54648 + app=jellyfin
2021-03-12 12:04:48,215: DEBUG - 54648 ++ ynh_app_setting_get --app=jellyfin --key=domain
2021-03-12 12:04:48,216: DEBUG - 54649 ++ [[ domain =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:04:48,216: DEBUG - 54649 ++ ynh_app_setting get jellyfin domain
2021-03-12 12:04:48,316: DEBUG - 54750 + domain=xxxxxx
2021-03-12 12:04:48,317: DEBUG - 54750 ++ ynh_app_setting_get --app=jellyfin --key=port
2021-03-12 12:04:48,317: DEBUG - 54751 ++ [[ port =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:04:48,318: DEBUG - 54751 ++ ynh_app_setting get jellyfin port
2021-03-12 12:04:48,418: DEBUG - 54852 + port=8097
2021-03-12 12:04:48,418: DEBUG - 54852 ++ ynh_app_setting_get --app=jellyfin --key=final_path
2021-03-12 12:04:48,420: DEBUG - 54853 ++ [[ final_path =~ (unprotected|protected|skipped)_ ]]
2021-03-12 12:04:48,420: DEBUG - 54853 ++ ynh_app_setting get jellyfin final_path
2021-03-12 12:04:48,520: DEBUG - 54953 + final_path=/etc/jellyfin
2021-03-12 12:04:48,521: DEBUG - 54954 + ynh_exec_warn_less yunohost service status jellyfin
2021-03-12 12:04:48,521: DEBUG - 54954 + eval yunohost service status jellyfin
2021-03-12 12:04:48,521: DEBUG - 54954 ++ yunohost service status jellyfin
2021-03-12 12:04:48,723: DEBUG - 55156 + echo '[+...................] > Stopping and removing the systemd service...'
2021-03-12 12:04:48,723: DEBUG - 55156 + ynh_remove_systemd_config
2021-03-12 12:04:48,725: DEBUG - 55158 + local service=jellyfin
2021-03-12 12:04:48,725: DEBUG - 55159 + local finalsystemdconf=/etc/systemd/system/jellyfin.service
2021-03-12 12:04:48,725: DEBUG - 55159 + '[' -e /etc/systemd/system/jellyfin.service ']'
2021-03-12 12:04:48,826: DEBUG - 55261 [+...................] > Stopping and removing the systemd service...
2021-03-12 12:04:48,827: DEBUG - 55261 [#+..................] > Removing dependencies...
2021-03-12 12:04:48,827: DEBUG - 55261 + echo '[#+..................] > Removing dependencies...'
2021-03-12 12:04:48,828: DEBUG - 55262 + ynh_remove_app_dependencies
2021-03-12 12:04:48,828: DEBUG - 55262 + local dep_app=jellyfin
2021-03-12 12:04:48,828: DEBUG - 55262 + ynh_package_autopurge jellyfin-ynh-deps
2021-03-12 12:04:48,828: DEBUG - 55262 + ynh_apt autoremove --purge jellyfin-ynh-deps
2021-03-12 12:04:48,829: DEBUG - 55262 + ynh_wait_dpkg_free
2021-03-12 12:04:49,130: DEBUG - 55563 + return 0
2021-03-12 12:04:49,130: DEBUG - 55563 + LC_ALL=C
2021-03-12 12:04:49,130: DEBUG - 55564 + DEBIAN_FRONTEND=noninteractive
2021-03-12 12:04:49,130: DEBUG - 55564 + apt-get --assume-yes --quiet -o=Acquire::Retries=3 -o=Dpkg::Use-Pty=0 autoremove --purge jellyfin-ynh-deps
2021-03-12 12:04:49,130: DEBUG - 55564 Reading package lists...
2021-03-12 12:04:49,331: DEBUG - 55764 Building dependency tree...
2021-03-12 12:04:49,331: DEBUG - 55765 Reading state information...
2021-03-12 12:04:49,532: DEBUG - 55965 The following packages will be REMOVED:
2021-03-12 12:04:49,532: DEBUG - 55965 jellyfin* jellyfin-ffmpeg* jellyfin-server* jellyfin-web* jellyfin-ynh-deps*
2021-03-12 12:04:49,532: DEBUG - 55966 ocl-icd-libopencl1*
2021-03-12 12:04:49,933: DEBUG - 56366 0 upgraded, 0 newly installed, 6 to remove and 0 not upgraded.
2021-03-12 12:04:49,933: DEBUG - 56367 After this operation, 265 MB disk space will be freed.
2021-03-12 12:04:50,034: DEBUG - 56467 (Reading database ... 130788 files and directories currently installed.)
2021-03-12 12:04:50,034: DEBUG - 56468 Removing jellyfin-ynh-deps (10.6.4~ynh3) ...
2021-03-12 12:04:50,034: DEBUG - 56468 Removing jellyfin (10.7.0-1) ...
2021-03-12 12:04:50,135: DEBUG - 56568 Removing jellyfin-ffmpeg (4.3.1-4-buster) ...
2021-03-12 12:04:50,135: DEBUG - 56569 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-03-12 12:04:50,136: DEBUG - 56569 Removing jellyfin-server (10.7.0-1) ...
2021-03-12 12:04:50,136: DEBUG - 56569 Stopping Jellyfin!
2021-03-12 12:04:50,537: DEBUG - 56970 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-03-12 12:04:50,938: DEBUG - 57371 Removing jellyfin-web (10.7.0-1) ...
2021-03-12 12:04:51,038: DEBUG - 57471 Removing ocl-icd-libopencl1:amd64 (2.2.12-2) ...
2021-03-12 12:04:51,039: DEBUG - 57472 Processing triggers for man-db (2.8.5-2) ...
2021-03-12 12:04:51,139: DEBUG - 57572 Processing triggers for libc-bin (2.28-10) ...
2021-03-12 12:04:51,340: DEBUG - 57773 (Reading database ... 128953 files and directories currently installed.)
2021-03-12 12:04:51,340: DEBUG - 57774 /bin/bash: BASH_XTRACEFD: 7: invalid value for trace file descriptor
2021-03-12 12:04:51,340: DEBUG - 57774 Purging configuration files for jellyfin-web (10.7.0-1) ...
2021-03-12 12:04:51,341: DEBUG - 57774 Purging configuration files for jellyfin-server (10.7.0-1) ...
2021-03-12 12:04:52,342: DEBUG - 58776 Purging configuration files for jellyfin-ffmpeg (4.3.1-4-buster) ...
2021-03-12 12:04:52,443: DEBUG - 58877 Processing triggers for systemd (241-7~deb10u6) ...
2021-03-12 12:04:52,745: DEBUG - 59179 + echo '[##+++++++++++.......] > Removing app main directory...'
2021-03-12 12:04:52,745: DEBUG - 59180 + ynh_secure_remove --file=/etc/jellyfin
2021-03-12 12:04:52,847: DEBUG - 59282 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:52,848: DEBUG - 59283 [##+++++++++++.......] > Removing app main directory...
2021-03-12 12:04:52,848: DEBUG - 59283 + '[' 1 -ge 2 ']'
2021-03-12 12:04:52,848: DEBUG - 59283 '/etc/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:04:52,848: DEBUG - 59284 + [[ -z /etc/jellyfin ]]
2021-03-12 12:04:52,848: DEBUG - 59284 '/etc/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:04:52,848: DEBUG - 59284 + [[ /var/www /home/yunohost.app =~ /etc/jellyfin ]]
2021-03-12 12:04:52,849: DEBUG - 59284 '/var/lib/jellyfin' wasn't deleted because it doesn't exist.
2021-03-12 12:04:52,849: DEBUG - 59285 + [[ /etc/jellyfin =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:52,849: DEBUG - 59285 + [[ n = \/ ]]
2021-03-12 12:04:52,849: DEBUG - 59285 + '[' -e /etc/jellyfin ']'
2021-03-12 12:04:52,950: DEBUG - 59286 + ynh_print_info '--message='\''/etc/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:52,952: DEBUG - 59288 + echo ''\''/etc/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:52,952: DEBUG - 59288 + ynh_secure_remove --file=/etc/jellyfin
2021-03-12 12:04:52,954: DEBUG - 59290 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:52,954: DEBUG - 59290 + '[' 1 -ge 2 ']'
2021-03-12 12:04:52,955: DEBUG - 59291 + [[ -z /etc/jellyfin ]]
2021-03-12 12:04:52,955: DEBUG - 59291 + [[ /var/www /home/yunohost.app =~ /etc/jellyfin ]]
2021-03-12 12:04:52,955: DEBUG - 59291 + [[ /etc/jellyfin =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:52,955: DEBUG - 59292 + [[ n = \/ ]]
2021-03-12 12:04:52,956: DEBUG - 59292 + '[' -e /etc/jellyfin ']'
2021-03-12 12:04:52,956: DEBUG - 59292 + ynh_print_info '--message='\''/etc/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:52,957: DEBUG - 59294 + echo ''\''/etc/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:52,957: DEBUG - 59294 + ynh_secure_remove --file=/var/lib/jellyfin
2021-03-12 12:04:52,959: DEBUG - 59296 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:52,959: DEBUG - 59296 + '[' 1 -ge 2 ']'
2021-03-12 12:04:52,960: DEBUG - 59297 + [[ -z /var/lib/jellyfin ]]
2021-03-12 12:04:52,960: DEBUG - 59297 + [[ /var/www /home/yunohost.app =~ /var/lib/jellyfin ]]
2021-03-12 12:04:52,960: DEBUG - 59297 + [[ /var/lib/jellyfin =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:52,960: DEBUG - 59297 + [[ n = \/ ]]
2021-03-12 12:04:52,960: DEBUG - 59298 + '[' -e /var/lib/jellyfin ']'
2021-03-12 12:04:52,961: DEBUG - 59298 + ynh_print_info '--message='\''/var/lib/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:52,962: DEBUG - 59299 + echo ''\''/var/lib/jellyfin'\'' wasn'\''t deleted because it doesn'\''t exist.'
2021-03-12 12:04:53,064: DEBUG - 59401 + echo '[#############+......] > Removing NGINX web server configuration...'
2021-03-12 12:04:53,064: DEBUG - 59401 + ynh_remove_nginx_config
2021-03-12 12:04:53,064: DEBUG - 59401 + ynh_secure_remove --file=/etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:04:53,065: DEBUG - 59403 + local 'forbidden_path= /var/www /home/yunohost.app'
2021-03-12 12:04:53,065: DEBUG - 59403 + '[' 1 -ge 2 ']'
2021-03-12 12:04:53,065: DEBUG - 59403 + [[ -z /etc/nginx/conf.d/xxxxxx.d/jellyfin.conf ]]
2021-03-12 12:04:53,066: DEBUG - 59403 + [[ /var/www /home/yunohost.app =~ /etc/nginx/conf\.d/xxxx\.xxxe\.d/jellyfin\.conf ]]
2021-03-12 12:04:53,066: DEBUG - 59404 + [[ /etc/nginx/conf.d/xxxxx.d/jellyfin.conf =~ ^/[[:alnum:]]+$ ]]
2021-03-12 12:04:53,066: DEBUG - 59404 + [[ f = \/ ]]
2021-03-12 12:04:53,066: DEBUG - 59404 + '[' -e /etc/nginx/conf.d/xxxxxx.d/jellyfin.conf ']'
2021-03-12 12:04:53,066: DEBUG - 59404 + rm --recursive /etc/nginx/conf.d/xxxxxx.d/jellyfin.conf
2021-03-12 12:04:53,066: DEBUG - 59404 + ynh_systemd_action --service_name=nginx --action=reload
2021-03-12 12:04:53,067: DEBUG - 59405 [#############+......] > Removing NGINX web server configuration...
2021-03-12 12:04:53,168: DEBUG - 59507 + service_name=nginx
2021-03-12 12:04:53,169: DEBUG - 59507 + action=reload
2021-03-12 12:04:53,169: DEBUG - 59507 + line_match=
2021-03-12 12:04:53,169: DEBUG - 59508 + length=20
2021-03-12 12:04:53,169: DEBUG - 59508 + log_path=/var/log/nginx/nginx.log
2021-03-12 12:04:53,170: DEBUG - 59508 + timeout=300
2021-03-12 12:04:53,171: DEBUG - 59508 + [[ -n '' ]]
2021-03-12 12:04:53,171: DEBUG - 59508 + '[' reload == reload ']'
2021-03-12 12:04:53,171: DEBUG - 59508 + action=reload-or-restart
2021-03-12 12:04:53,171: DEBUG - 59509 + systemctl reload-or-restart nginx
2021-03-12 12:04:53,272: DEBUG - 59609 + [[ -n '' ]]
2021-03-12 12:04:53,373: WARNING - 59711 The user jellyfin was not found
2021-03-12 12:04:53,375: DEBUG - 59712 + echo '[##############++....] > Removing the dedicated system user...'
2021-03-12 12:04:53,375: DEBUG - 59712 + ynh_system_user_delete --username=jellyfin
2021-03-12 12:04:53,378: DEBUG - 59713 + ynh_system_user_exists jellyfin
2021-03-12 12:04:53,380: DEBUG - 59714 + getent passwd jellyfin
2021-03-12 12:04:53,380: DEBUG - 59714 + ynh_print_warn '--message=The user jellyfin was not found'
2021-03-12 12:04:53,382: DEBUG - 59715 + ynh_print_log 'The user jellyfin was not found'
2021-03-12 12:04:53,382: DEBUG - 59715 + echo -e 'The user jellyfin was not found'
2021-03-12 12:04:53,382: DEBUG - 59716 + ynh_system_group_exists jellyfin
2021-03-12 12:04:53,384: DEBUG - 59717 + getent group jellyfin
2021-03-12 12:04:53,385: DEBUG - 59818 + echo '[####################] > Removal of jellyfin completed'
2021-03-12 12:04:53,385: DEBUG - 59819 [##############++....] > Removing the dedicated system user...
2021-03-12 12:04:53,486: DEBUG - 59859 To view the log of the operation 'Remove 'jellyfin' after a failed restore from a backup archive', use the command 'yunohost log display 20210312-100447-remove_on_failed_restore-jellyfin'
2021-03-12 12:04:53,986: DEBUG - 60389 Uhoh, unknown permission jellyfin.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-03-12 12:04:53,987: DEBUG - 60390 The permission database has been resynchronized
2021-03-12 12:04:54,187: DEBUG - 60554 Uhoh, unknown permission jellyfin.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-03-12 12:04:54,187: DEBUG - 60602 SSOwat configuration regenerated
2021-03-12 12:04:54,188: DEBUG - 60612 Permission 'jellyfin.main' deleted
2021-03-12 12:04:54,188: DEBUG - 60612 To view the log of the operation 'Delete permission 'jellyfin'', use the command 'yunohost log display 20210312-100453-permission_delete-jellyfin'
2021-03-12 12:04:54,388: DEBUG - 60790 Uhoh, unknown permission jellyfin.main ? (Maybe we're in the process or deleting the perm for this app...)
2021-03-12 12:04:54,589: DEBUG - 60959 The permission database has been resynchronized
2021-03-12 12:04:54,789: DEBUG - 61169 SSOwat configuration regenerated
2021-03-12 12:04:54,790: DEBUG - 61178 Permission 'jellyfin.admin' deleted
2021-03-12 12:04:54,790: DEBUG - 61179 To view the log of the operation 'Delete permission 'jellyfin'', use the command 'yunohost log display 20210312-100454-permission_delete-jellyfin'
2021-03-12 12:04:54,990: DEBUG - 61364 The permission database has been resynchronized
2021-03-12 12:04:55,191: DEBUG - 61576 SSOwat configuration regenerated
2021-03-12 12:04:55,191: WARNING - 61588 Nothing was restored
2021-03-12 12:04:55,192: DEBUG - 61587 action [28843.1] executed in 61.463s
2021-03-12 12:04:55,192: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
2021-03-12 12:04:55,293: DEBUG - + ret_code=1
2021-03-12 12:04:55,294: WARNING - The app was restored to the way it was before the failed upgrade.
2021-03-12 12:04:55,294: DEBUG - + echo 'The app was restored to the way it was before the failed upgrade.'
2021-03-12 12:04:55,295: DEBUG - + exit 1
2021-03-12 12:04:55,442: ERROR - Could not upgrade jellyfin: An error occurred inside the app upgrade script
EDIT: And of course…I cannot restore from backup…