What app is this about, and its version: immich
What YunoHost version are you running: 12.1.32
What type of hardware are you using: Raspberry Pi 3, 4+
Describe your issue
Hello,
I’ve tried multiple times to install immich on my yunohost but every time i’ve got these errors about pi user and password.
Share relevant logs or error messages
env:
BASH_XTRACEFD: ‘7’
YNH_APP_ACTION: remove
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_lr4t6y7v
YNH_APP_ID: immich
YNH_APP_INSTANCE_NAME: immich
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 2.1.0~ynh1
YNH_APP_PACKAGING_FORMAT: ‘2.0’
YNH_ARCH: arm64
YNH_CWD: /var/cache/yunohost/app_tmp_work_dirs/app_lr4t6y7v/scripts
YNH_DEBIAN_VERSION: bookworm
YNH_DEFAULT_PHP_VERSION: ‘8.2’
YNH_HELPERS_VERSION: ‘2.1’
YNH_INTERFACE: api
YNH_STDRETURN: /tmp/tmpkfvhos3_/stdreturn
error: null
interface: api
operation: remove_on_failed_install
parent: null
related_to:
-
- app
- immich
started_at: 2025-10-25 07:50:38.606937
started_by: ******
success: true
yunohost_version: 12.1.32
============
2025-10-25 08:50:39,622: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./remove” immich 7>&1’]’
2025-10-25 08:50:39,635: DEBUG - + source _common.sh
2025-10-25 08:50:39,636: DEBUG - ++ psql_bookworm=16
2025-10-25 08:50:39,636: DEBUG - ++ psql_trixie=17
2025-10-25 08:50:39,636: DEBUG - ++ [[ bookworm == \b\o\o\k\w\o\r\m ]]
2025-10-25 08:50:39,637: DEBUG - ++ psql_version=16
2025-10-25 08:50:39,637: DEBUG - ++ failregex=‘immich-server.Failed login attempt for user.+from ip address\s?’
2025-10-25 08:50:39,637: DEBUG - + source /usr/share/yunohost/helpers
2025-10-25 08:50:39,638: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2025-10-25 08:50:39,638: DEBUG - +++ cd – /usr/share/yunohost
2025-10-25 08:50:39,639: DEBUG - +++ pwd
2025-10-25 08:50:39,639: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-10-25 08:50:39,640: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-10-25 08:50:39,641: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2025-10-25 08:50:39,643: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2025-10-25 08:50:39,720: DEBUG - + ynh_config_remove_fail2ban
2025-10-25 08:50:39,721: DEBUG - + ynh_safe_rm /etc/fail2ban/jail.d/immich.conf
2025-10-25 08:50:39,722: INFO - [++++++++++…] > Removing system configurations related to immich…
2025-10-25 08:50:39,722: DEBUG - + local target=/etc/fail2ban/jail.d/immich.conf
2025-10-25 08:50:39,723: INFO - ‘/etc/fail2ban/jail.d/immich.conf’ wasn’t deleted because it doesn’t exist.
2025-10-25 08:50:39,724: INFO - ‘/etc/fail2ban/filter.d/immich.conf’ wasn’t deleted because it doesn’t exist.
2025-10-25 08:50:39,726: DEBUG - + ynh_safe_rm /etc/fail2ban/filter.d/immich.conf
2025-10-25 08:50:39,727: DEBUG - + local target=/etc/fail2ban/filter.d/immich.conf
2025-10-25 08:50:39,727: DEBUG - + ynh_systemctl --service=fail2ban --action=reload
2025-10-25 08:50:39,774: DEBUG - + service=fail2ban
2025-10-25 08:50:39,775: DEBUG - + action=reload
2025-10-25 08:50:39,775: DEBUG - + wait_until=
2025-10-25 08:50:39,776: DEBUG - + length=20
2025-10-25 08:50:39,776: DEBUG - + log_path=/var/log/fail2ban/fail2ban.log
2025-10-25 08:50:39,779: DEBUG - + ynh_in_ci_tests
2025-10-25 08:50:39,780: DEBUG - + timeout=300
2025-10-25 08:50:39,780: DEBUG - + ‘[’ reload == stop ‘]’
2025-10-25 08:50:39,780: DEBUG - + ‘[’ reload == reload ‘]’
2025-10-25 08:50:39,781: DEBUG - + action=reload-or-restart
2025-10-25 08:50:39,781: DEBUG - ++ date --utc --rfc-3339=seconds
2025-10-25 08:50:39,781: DEBUG - ++ cut -d+ -f1
2025-10-25 08:50:39,781: DEBUG - + local ‘time_start=2025-10-25 07:50:39 UTC’
2025-10-25 08:50:39,781: DEBUG - + systemctl reload-or-restart fail2ban
2025-10-25 08:50:39,927: DEBUG - + ynh_config_remove_logrotate
2025-10-25 08:50:39,927: DEBUG - + ‘[’ -e /etc/logrotate.d/immich ‘]’
2025-10-25 08:50:39,927: DEBUG - + ynh_hide_warnings yunohost service status immich-server
2025-10-25 08:50:39,928: DEBUG - + yunohost service status immich-server
2025-10-25 08:50:40,137: DEBUG - + ynh_config_remove_systemd immich-server
2025-10-25 08:50:40,138: DEBUG - + local service=immich-server
2025-10-25 08:50:40,138: DEBUG - + ‘[’ -e /etc/systemd/system/immich-server.service ‘]’
2025-10-25 08:50:40,138: DEBUG - + ynh_hide_warnings yunohost service status immich-machine-learning
2025-10-25 08:50:40,139: DEBUG - + yunohost service status immich-machine-learning
2025-10-25 08:50:40,345: DEBUG - + ynh_config_remove_systemd immich-machine-learning
2025-10-25 08:50:40,346: INFO - ‘/etc/nginx/conf.d/maindomain.tld.d/immich.conf’ wasn’t deleted because it doesn’t exist.
2025-10-25 08:50:40,346: DEBUG - + local service=immich-machine-learning
2025-10-25 08:50:40,348: DEBUG - + ‘[’ -e /etc/systemd/system/immich-machine-learning.service ‘]’
2025-10-25 08:50:40,348: DEBUG - + ynh_config_remove_nginx
2025-10-25 08:50:40,348: DEBUG - + ynh_safe_rm /etc/nginx/conf.d/maindomain.tld.d/immich.conf
2025-10-25 08:50:40,349: DEBUG - + local target=/etc/nginx/conf.d/maindomain.tld.d/immich.conf
2025-10-25 08:50:40,349: DEBUG - + ynh_systemctl --service=nginx --action=reload
2025-10-25 08:50:40,397: DEBUG - + service=nginx
2025-10-25 08:50:40,398: DEBUG - + action=reload
2025-10-25 08:50:40,398: DEBUG - + wait_until=
2025-10-25 08:50:40,399: DEBUG - + length=20
2025-10-25 08:50:40,399: DEBUG - + log_path=/var/log/nginx/nginx.log
2025-10-25 08:50:40,399: DEBUG - + ynh_in_ci_tests
2025-10-25 08:50:40,400: DEBUG - + timeout=300
2025-10-25 08:50:40,400: DEBUG - + ‘[’ reload == stop ‘]’
2025-10-25 08:50:40,400: DEBUG - + ‘[’ reload == reload ‘]’
2025-10-25 08:50:40,401: DEBUG - + action=reload-or-restart
2025-10-25 08:50:40,401: DEBUG - ++ date --utc --rfc-3339=seconds
2025-10-25 08:50:40,401: DEBUG - ++ cut -d+ -f1
2025-10-25 08:50:40,401: DEBUG - + local ‘time_start=2025-10-25 07:50:40 UTC’
2025-10-25 08:50:40,401: DEBUG - + systemctl reload-or-restart nginx
2025-10-25 08:50:40,490: DEBUG - ++ ynh_app_setting_get --key=db_cluster
2025-10-25 08:50:40,561: DEBUG - + db_cluster=16/main
2025-10-25 08:50:40,561: DEBUG - + myynh_drop_psql_db
2025-10-25 08:50:40,564: DEBUG - + return
2025-10-25 08:50:40,565: DEBUG - + cluster=16/main
2025-10-25 08:50:40,565: DEBUG - + myynh_execute_psql_as_root --cluster=16/main ‘–sql=REVOKE CONNECT ON DATABASE immich FROM public;’
2025-10-25 08:50:40,606: DEBUG - + tool=psql
2025-10-25 08:50:40,607: DEBUG - + sql=‘REVOKE CONNECT ON DATABASE immich FROM public;’
2025-10-25 08:50:40,607: DEBUG - + options=
2025-10-25 08:50:40,607: DEBUG - + cluster=16/main
2025-10-25 08:50:40,608: DEBUG - + database=
2025-10-25 08:50:40,608: DEBUG - + ‘[’ -n ‘REVOKE CONNECT ON DATABASE immich FROM public;’ ‘]’
2025-10-25 08:50:40,608: DEBUG - + sql=‘–command=REVOKE CONNECT ON DATABASE immich FROM public;’
2025-10-25 08:50:40,609: DEBUG - + cluster=–cluster=16/main
2025-10-25 08:50:40,609: DEBUG - + ‘[’ -n ‘’ ‘]’
2025-10-25 08:50:40,609: DEBUG - ++ cat /etc/yunohost/psql
2025-10-25 08:50:40,609: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********* psql --cluster=16/main ‘’ ‘–command=REVOKE CONNECT ON DATABASE immich FROM public;’
2025-10-25 08:50:40,658: DEBUG -
2025-10-25 08:50:40,659: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:40,659: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:40,659: DEBUG -
2025-10-25 08:50:40,699: DEBUG - REVOKE
2025-10-25 08:50:40,702: DEBUG - + myynh_execute_psql_as_root --cluster=16/main ‘–sql=SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = ‘'‘immich’'’ AND pid <> pg_backend_pid();’
2025-10-25 08:50:40,748: DEBUG - + tool=psql
2025-10-25 08:50:40,748: DEBUG - + sql=‘SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = ‘'‘immich’'’ AND pid <> pg_backend_pid();’
2025-10-25 08:50:40,748: DEBUG - + options=
2025-10-25 08:50:40,749: DEBUG - + cluster=16/main
2025-10-25 08:50:40,749: DEBUG - + database=
2025-10-25 08:50:40,749: DEBUG - + ‘[’ -n ‘SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = ‘'‘immich’'’ AND pid <> pg_backend_pid();’ ‘]’
2025-10-25 08:50:40,749: DEBUG - + sql=’–command=SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = ‘'‘immich’'’ AND pid <> pg_backend_pid();’
2025-10-25 08:50:40,750: DEBUG - + cluster=–cluster=16/main
2025-10-25 08:50:40,750: DEBUG - + ‘[’ -n ‘’ ‘]’
2025-10-25 08:50:40,750: DEBUG - ++ cat /etc/yunohost/psql
2025-10-25 08:50:40,750: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql --cluster=16/main ‘’ ‘–command=SELECT pg_terminate_backend (pg_stat_activity.pid) FROM pg_stat_activity WHERE pg_stat_activity.datname = ‘'‘immich’'’ AND pid <> pg_backend_pid();’
2025-10-25 08:50:40,789: DEBUG -
2025-10-25 08:50:40,790: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:40,791: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:40,792: DEBUG -
2025-10-25 08:50:40,826: DEBUG - pg_terminate_backend
2025-10-25 08:50:40,827: DEBUG - ----------------------
2025-10-25 08:50:40,828: DEBUG - (0 rows)
2025-10-25 08:50:40,828: DEBUG -
2025-10-25 08:50:40,830: DEBUG - + myynh_execute_psql_as_root --cluster=16/main ‘–sql=DROP DATABASE immich;’
2025-10-25 08:50:40,875: DEBUG - + tool=psql
2025-10-25 08:50:40,876: DEBUG - + sql=‘DROP DATABASE immich;’
2025-10-25 08:50:40,877: DEBUG - + options=
2025-10-25 08:50:40,877: DEBUG - + cluster=16/main
2025-10-25 08:50:40,877: DEBUG - + database=
2025-10-25 08:50:40,877: DEBUG - + ‘[’ -n ‘DROP DATABASE immich;’ ‘]’
2025-10-25 08:50:40,878: DEBUG - + sql=‘–command=DROP DATABASE immich;’
2025-10-25 08:50:40,878: DEBUG - + cluster=–cluster=16/main
2025-10-25 08:50:40,878: DEBUG - + ‘[’ -n ‘’ ‘]’
2025-10-25 08:50:40,878: DEBUG - ++ cat /etc/yunohost/psql
2025-10-25 08:50:40,879: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql --cluster=16/main ‘’ ‘–command=DROP DATABASE immich;’
2025-10-25 08:50:40,929: DEBUG -
2025-10-25 08:50:40,930: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:40,930: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:40,930: DEBUG -
2025-10-25 08:50:41,065: DEBUG - DROP DATABASE
2025-10-25 08:50:41,069: DEBUG - + myynh_execute_psql_as_root --cluster=16/main ‘–sql=DROP USER immich;’
2025-10-25 08:50:41,118: DEBUG - + tool=psql
2025-10-25 08:50:41,119: DEBUG - + sql=‘DROP USER immich;’
2025-10-25 08:50:41,119: DEBUG - + options=
2025-10-25 08:50:41,119: DEBUG - + cluster=16/main
2025-10-25 08:50:41,120: DEBUG - + database=
2025-10-25 08:50:41,120: DEBUG - + ‘[’ -n ‘DROP USER immich;’ ‘]’
2025-10-25 08:50:41,120: DEBUG - + sql=‘–command=DROP USER immich;’
2025-10-25 08:50:41,120: DEBUG - + cluster=–cluster=16/main
2025-10-25 08:50:41,120: DEBUG - + ‘[’ -n ‘’ ‘]’
2025-10-25 08:50:41,120: DEBUG - ++ cat /etc/yunohost/psql
2025-10-25 08:50:41,121: DEBUG - + sudo --login --user=postgres PGUSER=postgres PGPASSWORD=********** psql --cluster=16/main ‘’ ‘–command=DROP USER immich;’
2025-10-25 08:50:41,162: DEBUG -
2025-10-25 08:50:41,162: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:41,163: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:41,163: DEBUG -
2025-10-25 08:50:41,202: DEBUG - DROP ROLE
2025-10-25 08:50:41,206: DEBUG - + ynh_nodejs_remove
2025-10-25 08:50:41,207: DEBUG - + [[ -n 22.21.0 ]]
2025-10-25 08:50:41,207: DEBUG - + ynh_app_setting_delete --key=nodejs_version
2025-10-25 08:50:41,269: DEBUG - ++ awk -F/ ‘{print $2}’
2025-10-25 08:50:41,269: WARNING - /usr/share/yunohost/helpers.v2.1.d/nodejs: line 114: N_PREFIX: readonly variable
2025-10-25 08:50:41,270: DEBUG - ++ /usr/share/yunohost/helpers.v2.1.d/vendor/n/n ls
2025-10-25 08:50:41,279: DEBUG - + local installed_versions=22.21.0
2025-10-25 08:50:41,279: DEBUG - + for version in $installed_versions
2025-10-25 08:50:41,279: DEBUG - + grep -qE ‘^nodejs_version: ‘'’?22.21.0’'‘?’ /etc/yunohost/apps/immich/settings.yml
2025-10-25 08:50:41,280: DEBUG - + /usr/share/yunohost/helpers.v2.1.d/vendor/n/n rm 22.21.0
2025-10-25 08:50:41,391: DEBUG - + grep -q ‘^nodejs_version:’ /etc/yunohost/apps/immich/settings.yml
2025-10-25 08:50:41,392: DEBUG - + ynh_safe_rm /opt/node_n
2025-10-25 08:50:41,393: DEBUG - + local target=/opt/node_n
2025-10-25 08:50:41,501: DEBUG - + sed --in-place /N_PREFIX/d /root/.bashrc
2025-10-25 08:50:41,504: INFO - [####################] > Removal of immich completed
2025-10-25 08:50:41,619: INFO - Deprovisioning database…
2025-10-25 08:50:41,626: DEBUG - Executing command ‘[‘sh’, ‘-c’, ‘/bin/bash -x “./deprovision_database” 7>&1’]’
2025-10-25 08:50:41,637: DEBUG - + source /usr/share/yunohost/helpers
2025-10-25 08:50:41,637: DEBUG - ++++ dirname – /usr/share/yunohost/helpers
2025-10-25 08:50:41,638: DEBUG - +++ cd – /usr/share/yunohost
2025-10-25 08:50:41,638: DEBUG - +++ pwd
2025-10-25 08:50:41,638: DEBUG - ++ SCRIPT_DIR=/usr/share/yunohost
2025-10-25 08:50:41,638: DEBUG - ++ YNH_HELPERS_VERSION=2.1
2025-10-25 08:50:41,639: DEBUG - ++ readonly ‘XTRACE_ENABLE=set -o xtrace’
2025-10-25 08:50:41,640: DEBUG - ++ XTRACE_ENABLE=‘set -o xtrace’
2025-10-25 08:50:41,651: DEBUG - + ynh_abort_if_errors
2025-10-25 08:50:41,653: DEBUG - + trap ynh_exit_properly EXIT
2025-10-25 08:50:41,653: DEBUG - + ynh_psql_database_exists immich
2025-10-25 08:50:41,655: DEBUG - + local database=immich
2025-10-25 08:50:41,655: DEBUG - + sudo --login --user=postgres psql -tAc ‘SELECT datname FROM pg_database WHERE datname=’'‘immich’'‘;’
2025-10-25 08:50:41,655: DEBUG - + grep --quiet immich
2025-10-25 08:50:41,744: DEBUG - + ynh_psql_drop_db immich
2025-10-25 08:50:41,744: DEBUG - + local db=immich
2025-10-25 08:50:41,745: DEBUG - + sudo --login --user=postgres psql immich
2025-10-25 08:50:41,784: DEBUG -
2025-10-25 08:50:41,785: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:41,786: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:41,786: DEBUG -
2025-10-25 08:50:41,830: DEBUG - REVOKE
2025-10-25 08:50:41,834: DEBUG - + sudo --login --user=postgres psql immich
2025-10-25 08:50:41,888: DEBUG -
2025-10-25 08:50:41,889: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:41,889: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:41,890: DEBUG -
2025-10-25 08:50:41,926: DEBUG - pg_terminate_backend
2025-10-25 08:50:41,927: DEBUG - ----------------------
2025-10-25 08:50:41,928: DEBUG - (0 rows)
2025-10-25 08:50:41,928: DEBUG -
2025-10-25 08:50:41,930: DEBUG - + sudo --login --user=postgres dropdb immich
2025-10-25 08:50:41,965: DEBUG -
2025-10-25 08:50:41,965: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:41,966: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:41,966: DEBUG -
2025-10-25 08:50:42,179: DEBUG - + ynh_psql_user_exists immich
2025-10-25 08:50:42,180: DEBUG - + local user=immich
2025-10-25 08:50:42,181: DEBUG - + sudo --login --user=postgres psql -tAc ‘SELECT rolname FROM pg_roles WHERE rolname=’'‘immich’'‘;’
2025-10-25 08:50:42,182: DEBUG - + grep --quiet immich
2025-10-25 08:50:42,263: DEBUG - + ynh_psql_drop_user immich
2025-10-25 08:50:42,265: DEBUG - + sudo --login --user=postgres psql
2025-10-25 08:50:42,317: DEBUG -
2025-10-25 08:50:42,317: DEBUG - SSH is enabled and the default password for the ‘pi’ user has not been changed.
2025-10-25 08:50:42,318: DEBUG - This is a security risk - please login as the ‘pi’ user and type ‘passwd’ to set a new password.
2025-10-25 08:50:42,318: DEBUG -