ended_at: 2022-09-12 00:17:15.846508 env: BASH_XTRACEFD: '7' YNH_APP_BACKUP_DIR: /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup YNH_APP_BASEDIR: /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/settings YNH_APP_ID: nextcloud YNH_APP_INSTANCE_NAME: nextcloud YNH_APP_INSTANCE_NUMBER: '1' YNH_APP_MANIFEST_VERSION: 22.2.7~ynh1 YNH_ARCH: arm64 YNH_BACKUP_CSV: /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/backup.csv YNH_BACKUP_DIR: /home/yunohost.backup/tmp/backup-rpi-maindomain.tld YNH_CWD: /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup YNH_INTERFACE: cli YNH_STDRETURN: /tmp/tmpdz46fwft/stdreturn error: An error occured inside the app restore script interface: cli operation: backup_restore_app parent: null related_to: - - app - nextcloud started_at: 2022-09-12 00:17:05.883021 success: false yunohost_version: 11.0.9.14 ============ 2022-09-12 02:17:05,926: INFO - Restoring nextcloud... 2022-09-12 02:17:06,957: DEBUG - initializing ldap interface 2022-09-12 02:17:07,192: DEBUG - Uhoh, unknown permission nextcloud.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-09-12 02:17:07,235: DEBUG - Permission 'nextcloud.api' updated 2022-09-12 02:17:07,349: DEBUG - Uhoh, unknown permission nextcloud.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-09-12 02:17:07,364: DEBUG - To view the log of the operation 'Update URL related to permission 'nextcloud'', use the command 'yunohost log show 20220912-001707-permission_url-nextcloud' 2022-09-12 02:17:07,508: DEBUG - Uhoh, unknown permission nextcloud.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-09-12 02:17:07,645: DEBUG - Uhoh, unknown permission nextcloud.main ? (Maybe we're in the process or deleting the perm for this app...) 2022-09-12 02:17:07,652: DEBUG - Permission 'nextcloud.api' created 2022-09-12 02:17:07,654: DEBUG - To view the log of the operation 'Create permission 'nextcloud'', use the command 'yunohost log show 20220912-001706-permission_create-nextcloud' 2022-09-12 02:17:08,083: DEBUG - Permission 'nextcloud.main' updated 2022-09-12 02:17:08,198: DEBUG - To view the log of the operation 'Update URL related to permission 'nextcloud'', use the command 'yunohost log show 20220912-001708-permission_url-nextcloud' 2022-09-12 02:17:08,485: DEBUG - Permission 'nextcloud.main' created 2022-09-12 02:17:08,487: DEBUG - To view the log of the operation 'Create permission 'nextcloud'', use the command 'yunohost log show 20220912-001707-permission_create-nextcloud' 2022-09-12 02:17:08,669: DEBUG - The permission database has been resynchronized 2022-09-12 02:17:08,861: DEBUG - SSOwat configuration regenerated 2022-09-12 02:17:08,897: DEBUG - Loading migration 0022_php73_to_php74_pools... 2022-09-12 02:17:08,904: DEBUG - Loading migration 0024_rebuild_python_venv... 2022-09-12 02:17:08,908: DEBUG - Loading migration 0021_migrate_to_bullseye... 2022-09-12 02:17:08,912: DEBUG - Loading migration 0023_postgresql_11_to_13... 2022-09-12 02:17:09,009: DEBUG - Restoring the app 'nextcloud'... 2022-09-12 02:17:09,107: DEBUG - Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_hvuusp14/restore" 7>&1']' 2022-09-12 02:17:09,134: DEBUG - + source ../settings/scripts/_common.sh 2022-09-12 02:17:09,136: DEBUG - ++ YNH_PHP_VERSION=7.4 2022-09-12 02:17:09,137: DEBUG - ++ pkg_dependencies='imagemagick libmagickcore-6.q16-6-extra acl tar smbclient at php7.4-bz2 php7.4-imap php7.4-gmp php7.4-gd php7.4-json php7.4-intl php7.4-curl php7.4-apcu php7.4-redis php7.4-ldap php7.4-imagick php7.4-zip php7.4-mbstring php7.4-xml php7.4-mysql php7.4-igbinary php7.4-bcmath' 2022-09-12 02:17:09,138: DEBUG - + source /usr/share/yunohost/helpers 2022-09-12 02:17:09,140: DEBUG - +++ set +o 2022-09-12 02:17:09,141: DEBUG - +++ grep xtrace 2022-09-12 02:17:09,150: DEBUG - ++ readonly 'XTRACE_ENABLE=set -o xtrace' 2022-09-12 02:17:09,151: DEBUG - ++ XTRACE_ENABLE='set -o xtrace' 2022-09-12 02:17:09,259: DEBUG - + ynh_abort_if_errors 2022-09-12 02:17:09,263: DEBUG - + trap ynh_exit_properly EXIT 2022-09-12 02:17:09,534: INFO - [....................] > Loading settings... 2022-09-12 02:17:09,537: DEBUG - + app=nextcloud 2022-09-12 02:17:09,538: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=domain 2022-09-12 02:17:09,539: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:09,673: DEBUG - ++ app=nextcloud 2022-09-12 02:17:09,674: DEBUG - ++ [[ domain =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:09,675: DEBUG - ++ ynh_app_setting get nextcloud domain 2022-09-12 02:17:10,146: DEBUG - + domain=maindomain.tld 2022-09-12 02:17:10,149: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=path 2022-09-12 02:17:10,150: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:10,287: DEBUG - ++ app=nextcloud 2022-09-12 02:17:10,288: DEBUG - ++ [[ path =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:10,289: DEBUG - ++ ynh_app_setting get nextcloud path 2022-09-12 02:17:10,663: DEBUG - + path_url=/nextcloud 2022-09-12 02:17:10,665: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=final_path 2022-09-12 02:17:10,682: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:10,805: DEBUG - ++ app=nextcloud 2022-09-12 02:17:10,807: DEBUG - ++ [[ final_path =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:10,808: DEBUG - ++ ynh_app_setting get nextcloud final_path 2022-09-12 02:17:11,152: DEBUG - + final_path=/var/www/nextcloud 2022-09-12 02:17:11,154: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=db_name 2022-09-12 02:17:11,155: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:11,293: DEBUG - ++ app=nextcloud 2022-09-12 02:17:11,295: DEBUG - ++ [[ db_name =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:11,296: DEBUG - ++ ynh_app_setting get nextcloud db_name 2022-09-12 02:17:11,640: DEBUG - + db_name=nextcloud 2022-09-12 02:17:11,643: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=phpversion 2022-09-12 02:17:11,644: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:11,782: DEBUG - ++ app=nextcloud 2022-09-12 02:17:11,783: DEBUG - ++ [[ phpversion =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:11,784: DEBUG - ++ ynh_app_setting get nextcloud phpversion 2022-09-12 02:17:12,129: DEBUG - + phpversion=7.4 2022-09-12 02:17:12,131: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=datadir 2022-09-12 02:17:12,133: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:12,270: DEBUG - ++ app=nextcloud 2022-09-12 02:17:12,271: DEBUG - ++ [[ datadir =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:12,273: DEBUG - ++ ynh_app_setting get nextcloud datadir 2022-09-12 02:17:12,622: DEBUG - + datadir=/home/yunohost.app/nextcloud 2022-09-12 02:17:12,624: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=fpm_footprint 2022-09-12 02:17:12,626: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:12,763: DEBUG - ++ app=nextcloud 2022-09-12 02:17:12,765: DEBUG - ++ [[ fpm_footprint =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:12,766: DEBUG - ++ ynh_app_setting get nextcloud fpm_footprint 2022-09-12 02:17:13,111: DEBUG - + fpm_footprint=high 2022-09-12 02:17:13,113: DEBUG - ++ ynh_app_setting_get --app=nextcloud --key=fpm_usage 2022-09-12 02:17:13,115: DEBUG - ++ local _globalapp=nextcloud 2022-09-12 02:17:13,251: DEBUG - ++ app=nextcloud 2022-09-12 02:17:13,252: DEBUG - ++ [[ fpm_usage =~ (unprotected|protected|skipped)_ ]] 2022-09-12 02:17:13,254: DEBUG - ++ ynh_app_setting get nextcloud fpm_usage 2022-09-12 02:17:13,599: DEBUG - + fpm_usage=medium 2022-09-12 02:17:13,920: INFO - [+...................] > Validating restoration parameters... 2022-09-12 02:17:13,922: DEBUG - + test '!' -d /var/www/nextcloud 2022-09-12 02:17:13,923: DEBUG - + ynh_restore_file --origin_path=/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,049: DEBUG - + origin_path=/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,051: DEBUG - + dest_path=/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,052: DEBUG - + not_mandatory=0 2022-09-12 02:17:14,053: DEBUG - + local archive_path=/home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,055: DEBUG - + '[' '!' -d /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf ']' 2022-09-12 02:17:14,056: DEBUG - + '[' '!' -f /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf ']' 2022-09-12 02:17:14,058: DEBUG - + '[' '!' -L /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf ']' 2022-09-12 02:17:14,059: DEBUG - + '[' 0 == 0 ']' 2022-09-12 02:17:14,060: DEBUG - ++ _get_archive_path '"/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf"' 2022-09-12 02:17:14,061: DEBUG - ++ python3 -c ' 2022-09-12 02:17:14,063: DEBUG - import sys 2022-09-12 02:17:14,063: DEBUG - import csv 2022-09-12 02:17:14,064: DEBUG - with open(sys.argv[1], '\''r'\'') as backup_file: 2022-09-12 02:17:14,065: DEBUG - backup_csv = csv.DictReader(backup_file, fieldnames=['\''source'\'', '\''dest'\'']) 2022-09-12 02:17:14,067: DEBUG - for row in backup_csv: 2022-09-12 02:17:14,068: DEBUG - if row['\''source'\'']==sys.argv[2].strip('\''"'\''): 2022-09-12 02:17:14,069: DEBUG - print(row['\''dest'\'']) 2022-09-12 02:17:14,070: DEBUG - sys.exit(0) 2022-09-12 02:17:14,071: DEBUG - raise Exception('\''Original path for %s not found'\'' % sys.argv[2]) 2022-09-12 02:17:14,072: DEBUG - ' /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/backup.csv '"/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf"' 2022-09-12 02:17:14,261: DEBUG - ++ return 0 2022-09-12 02:17:14,263: DEBUG - + archive_path=/home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,264: DEBUG - + [[ -e /etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf ]] 2022-09-12 02:17:14,268: DEBUG - ++ dirname /etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,276: DEBUG - + mkdir --parents /etc/nginx/conf.d/maindomain.tld.d 2022-09-12 02:17:14,287: DEBUG - + mountpoint --quiet /home/yunohost.backup/tmp/backup-rpi-maindomain.tld 2022-09-12 02:17:14,308: DEBUG - + mv /home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf /etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf 2022-09-12 02:17:14,320: WARNING - mv: cannot stat '/home/yunohost.backup/tmp/backup-rpi-maindomain.tld/apps/nextcloud/backup/etc/nginx/conf.d/maindomain.tld.d/nextcloud.conf': No such file or directory 2022-09-12 02:17:14,322: DEBUG - + ynh_exit_properly 2022-09-12 02:17:15,845: ERROR - Could not restore nextcloud: An error occured inside the app restore script