Immich: impossible de mettre à jour et sauvegarder / unable to update and to save

Bonjour et merci pour ton aide.

Je précise à toute fin utile que depuis les échecs de la sauvegarde puis de la mise à jour:

  • l’application Immich est inaccessible; sur le domaine je tombe sur la page d’accueil par défaut de Nginx et non plus Immich,
  • j’ai noté qu’Immich semble avoir perdu “ses” permissions d’origine à la suite de la mise à jour échouée; Yunohost a automatiquement restauré la préupgrade en mentionnant des erreurs de permissions "Uhoh, unknown permission immich.main ? (Maybe we’re in the process or deleting the perm for this app…) " (j’ai scindé le problème d’accès à Immich dans un autre post , si c’est une erreur je regroupe le tout ici).

Voici le retour de la commande sudo yunohost app upgrade immich -u https://github.com/YunoHost-Apps/immich_ynh --force --debug

61   DEBUG initializing base actions map parser for cli
62   DEBUG loading actions map
62   DEBUG building parser...
68   DEBUG building parser took 0.006s
69   DEBUG acquiring lock...
74   DEBUG lock has been acquired
80   DEBUG loading python module yunohost.app took 0.006s
80   DEBUG processing action [22056.1]: yunohost.app.upgrade with args={'app': ['immich'], 'url': 'https://github.com/YunoHost-Apps/immich_ynh', 'file': None, 'force': True, 'no_safety_backup': False, 'continue_on_failure': False}
150  INFO Now upgrading immich…
174  DEBUG initializing ldap interface
197  DEBUG Checking default branch
624  DEBUG Downloading…
1337 DEBUG Done
1732 DEBUG Checking requirements for immich…
1738 INFO Creating a safety backup prior to the upgrade
1758 INFO Collecting files to be backed up for immich…
1771 DEBUG Executing command '['sh', '-c', '/bin/bash -x "/var/cache/yunohost/app_tmp_work_dirs/app_n3ihj_pb/scripts/backup"  7>&1']'
1776 DEBUG + source ../settings/scripts/_common.sh
1776 DEBUG ++ nodejs_version=20
1776 DEBUG ++ failregex='immich-server.*Failed login attempt for user.+from ip address\s?<ADDR>'
1777 DEBUG + source /usr/share/yunohost/helpers
1777 DEBUG ++++ dirname -- /usr/share/yunohost/helpers
1778 DEBUG +++ cd -- /usr/share/yunohost
1778 DEBUG +++ pwd
1778 DEBUG ++ SCRIPT_DIR=/usr/share/yunohost
1778 DEBUG ++ YNH_HELPERS_VERSION=2
1779 DEBUG +++ set +o
1779 DEBUG +++ grep xtrace
1780 DEBUG ++ readonly 'XTRACE_ENABLE=set -o xtrace'
1780 DEBUG ++ XTRACE_ENABLE='set -o xtrace'
1780 DEBUG ++ set +x
1802 DEBUG + ynh_print_info '--message=Declaring files to be backed up...'
1802 DEBUG + local legacy_args=m
1802 DEBUG + args_array=(['m']='message=')
1802 DEBUG + local -A args_array
1803 DEBUG + local message
1803 DEBUG + ynh_handle_getopts_args '--message=Declaring files to be backed up...'
1803 DEBUG + set +o xtrace
1810 DEBUG + echo 'Declaring files to be backed up...'
1810 INFO Declaring files to be backed up...
1810 DEBUG + ynh_backup --src_path=/var/www/immich
1810 DEBUG + local legacy_args=sdbm
1811 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
1811 DEBUG + local -A args_array
1811 DEBUG + local src_path
1811 DEBUG + local dest_path
1811 DEBUG + local is_big
1811 DEBUG + local not_mandatory
1811 DEBUG + ynh_handle_getopts_args --src_path=/var/www/immich
1811 DEBUG + set +o xtrace
1836 DEBUG + dest_path=
1836 DEBUG + is_big=0
1836 DEBUG + not_mandatory=0
1836 DEBUG + BACKUP_CORE_ONLY=1
1837 DEBUG + test -n immich
1837 DEBUG ++ ynh_app_setting_get --app=immich --key=do_not_backup_data
1837 DEBUG ++ local _globalapp=immich
1837 DEBUG ++ local legacy_args=ak
1837 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
1837 DEBUG ++ local -A args_array
1837 DEBUG ++ local app
1838 DEBUG ++ local key
1838 DEBUG ++ ynh_handle_getopts_args --app=immich --key=do_not_backup_data
1838 DEBUG ++ set +o xtrace
1862 DEBUG ++ app=immich
1863 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
1863 DEBUG ++ ynh_app_setting get immich do_not_backup_data
1863 DEBUG ++ set +o xtrace
1905 DEBUG + do_not_backup_data=
1905 DEBUG + '[' 0 -eq 1 ']'
1905 DEBUG + '[' '!' -e /var/www/immich ']'
1906 DEBUG ++ realpath /var/www/immich
1907 DEBUG + src_path=/var/www/immich
1907 DEBUG + [[ -z '' ]]
1907 DEBUG + dest_path=var/www/immich
1908 DEBUG + [[ -e var/www/immich ]]
1908 DEBUG + local rel_dir=/apps/immich/backup
1908 DEBUG + rel_dir=/apps/immich/backup/
1908 DEBUG + dest_path=/apps/immich/backup/var/www/immich
1908 DEBUG + dest_path=apps/immich/backup/var/www/immich
1908 DEBUG ++ echo /var/www/immich
1908 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
1909 DEBUG + local src=/var/www/immich
1910 DEBUG ++ echo apps/immich/backup/var/www/immich
1910 DEBUG ++ sed --regexp-extended 's/"/\"\"/g'
1911 DEBUG + local dest=apps/immich/backup/var/www/immich
1911 DEBUG + echo '"/var/www/immich","apps/immich/backup/var/www/immich"'
1911 DEBUG ++ dirname /home/yunohost.backup/tmp/immich-pre-upgrade2/apps/immich/backup/var/www/immich
1912 DEBUG + mkdir --parents /home/yunohost.backup/tmp/immich-pre-upgrade2/apps/immich/backup/var/www
1913 DEBUG + ynh_backup --src_path=/home/yunohost.app/immich --is_big
1913 DEBUG + local legacy_args=sdbm
1913 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
1914 DEBUG + local -A args_array
1914 DEBUG + local src_path
1914 DEBUG + local dest_path
1914 DEBUG + local is_big
1914 DEBUG + local not_mandatory
1914 DEBUG + ynh_handle_getopts_args --src_path=/home/yunohost.app/immich --is_big
1914 DEBUG + set +o xtrace
1944 DEBUG + dest_path=
1944 DEBUG + is_big=1
1944 DEBUG + not_mandatory=0
1945 DEBUG + BACKUP_CORE_ONLY=1
1945 DEBUG + test -n immich
1945 DEBUG ++ ynh_app_setting_get --app=immich --key=do_not_backup_data
1945 DEBUG ++ local _globalapp=immich
1945 DEBUG ++ local legacy_args=ak
1945 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
1945 DEBUG ++ local -A args_array
1945 DEBUG ++ local app
1945 DEBUG ++ local key
1945 DEBUG ++ ynh_handle_getopts_args --app=immich --key=do_not_backup_data
1946 DEBUG ++ set +o xtrace
1962 DEBUG ++ app=immich
1962 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
1962 DEBUG ++ ynh_app_setting get immich do_not_backup_data
1963 DEBUG ++ set +o xtrace
1995 DEBUG + do_not_backup_data=
1995 DEBUG + '[' 1 -eq 1 ']'
1995 DEBUG + '[' 0 -eq 1 ']'
1995 DEBUG + '[' 1 -eq 1 ']'
1996 DEBUG + '[' 1 -eq 1 ']'
1996 DEBUG + ynh_print_info '--message=/home/yunohost.app/immich will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
1996 DEBUG + local legacy_args=m
1996 DEBUG + args_array=(['m']='message=')
1996 DEBUG + local -A args_array
1996 DEBUG + local message
1996 DEBUG + ynh_handle_getopts_args '--message=/home/yunohost.app/immich will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
1997 DEBUG + set +o xtrace
2002 DEBUG + echo '/home/yunohost.app/immich will not be saved, because '\''BACKUP_CORE_ONLY'\'' is set.'
2002 DEBUG + return 0
2002 INFO /home/yunohost.app/immich will not be saved, because 'BACKUP_CORE_ONLY' is set.
2002 DEBUG + ynh_backup --src_path=/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf
2002 DEBUG + local legacy_args=sdbm
2002 DEBUG + args_array=(['s']='src_path=' ['d']='dest_path=' ['b']='is_big' ['m']='not_mandatory')
2002 DEBUG + local -A args_array
2002 DEBUG + local src_path
2002 DEBUG + local dest_path
2002 DEBUG + local is_big
2002 DEBUG + local not_mandatory
2003 DEBUG + ynh_handle_getopts_args --src_path=/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf
2003 DEBUG + set +o xtrace
2019 DEBUG + dest_path=
2019 DEBUG + is_big=0
2019 DEBUG + not_mandatory=0
2019 DEBUG + BACKUP_CORE_ONLY=1
2020 DEBUG + test -n immich
2020 DEBUG ++ ynh_app_setting_get --app=immich --key=do_not_backup_data
2020 DEBUG ++ local _globalapp=immich
2020 DEBUG ++ local legacy_args=ak
2020 DEBUG ++ args_array=(['a']='app=' ['k']='key=')
2020 DEBUG ++ local -A args_array
2021 DEBUG ++ local app
2021 DEBUG ++ local key
2021 DEBUG ++ ynh_handle_getopts_args --app=immich --key=do_not_backup_data
2021 DEBUG ++ set +o xtrace
2037 DEBUG ++ app=immich
2038 DEBUG ++ [[ do_not_backup_data =~ (unprotected|protected|skipped)_ ]]
2038 DEBUG ++ ynh_app_setting get immich do_not_backup_data
2038 DEBUG ++ set +o xtrace
2069 DEBUG + do_not_backup_data=
2069 DEBUG + '[' 0 -eq 1 ']'
2069 DEBUG + '[' '!' -e /etc/nginx/conf.d/servicevla.noho.st.d/immich.conf ']'
2069 DEBUG + ynh_print_warn '--message=Source path '\''/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf'\'' does not exist'
2069 DEBUG + local legacy_args=m
2069 DEBUG + args_array=(['m']='message=')
2069 DEBUG + local -A args_array
2069 DEBUG + local message
2069 DEBUG + ynh_handle_getopts_args '--message=Source path '\''/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf'\'' does not exist'
2070 DEBUG + set +o xtrace
2075 DEBUG + ynh_print_log 'Source path '\''/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf'\'' does not exist'
2075 DEBUG + echo -e 'Source path '\''/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf'\'' does not exist'
2077 WARNING Source path '/etc/nginx/conf.d/servicevla.noho.st.d/immich.conf' does not exist
2078 DEBUG + '[' 0 == 0 ']'
2078 DEBUG + echo /etc/nginx/conf.d/servicevla.noho.st.d/immich.conf
2078 DEBUG + grep --quiet /etc/fail2ban
2078 DEBUG + return 1
2078 DEBUG + ynh_exit_properly
2078 DEBUG + local exit_code=1
2078 DEBUG + [[ backup =~ ^install$|^upgrade$|^restore$ ]]
2078 DEBUG + '[' 1 -eq 0 ']'
2078 DEBUG + trap '' EXIT
2078 DEBUG + set +o errexit
2078 DEBUG + set +o nounset
2079 DEBUG + sleep 0.5
2578 DEBUG + type -t ynh_clean_setup
2579 DEBUG + exit 1
3581 DEBUG Could not run script: /var/cache/yunohost/app_tmp_work_dirs/app_n3ihj_pb/scripts/backup
3585 ERROR Could not back up immich
3588 INFO The operation 'Create a backup archive' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20240901-074239-backup_create' to get help
3592 DEBUG action [22056.1] executed in 3.511s
3592 DEBUG lock has been released
3592 ERROR Nothing to save