Pb mise à jour shaarli

#1

J’ai vu un post récent sur un échec d’installation pour shaarli. Pour moi c’est un plantage lors de la mise à jour. Shaarli disparu et une réinstallation impossible.
Environnement Raspi 3 B+ tout à jour.

Le log du plantage de la mise à jour :

2019-04-24 18:06:40,690 DEBUG    yunohost.hook <lambda> - [18637.41] 41401 + ynh_handle_getopts_args '--message=Reload the service php7.0-fpm'
    2019-04-24 18:06:40,691 DEBUG    yunohost.hook <lambda> - [18637.41] 41402 + set +x
    2019-04-24 18:06:40,692 DEBUG    yunohost.hook <lambda> - [18637.41] 41403 + echo 'Reload the service php7.0-fpm'
    2019-04-24 18:06:40,693 DEBUG    yunohost.hook <lambda> - [18637.41] 41404 + '[' reload == reload ']'
    2019-04-24 18:06:40,694 DEBUG    yunohost.hook <lambda> - [18637.41] 41405 + action=reload-or-restart
    2019-04-24 18:06:40,695 DEBUG    yunohost.hook <lambda> - [18637.41] 41406 + systemctl reload-or-restart php7.0-fpm
    2019-04-24 18:06:40,696 DEBUG    yunohost.hook <lambda> - [18637.41] 41408 + [[ -n '' ]]
    2019-04-24 18:06:40,698 DEBUG    yunohost.hook <lambda> - [18637.41] 41409 + ynh_remove_logrotate
    2019-04-24 18:06:40,698 DEBUG    yunohost.hook <lambda> - [18637.41] 41410 + '[' -e /etc/logrotate.d/shaarli ']'
    2019-04-24 18:06:40,699 DEBUG    yunohost.hook <lambda> - [18637.41] 41411 + ynh_remove_fail2ban_config
    2019-04-24 18:06:40,700 DEBUG    yunohost.hook <lambda> - [18637.41] 41412 + ynh_secure_remove /etc/fail2ban/jail.d/shaarli.conf
    2019-04-24 18:06:40,701 DEBUG    yunohost.hook <lambda> - [18637.41] 41413 + local legacy_args=f
    2019-04-24 18:06:40,703 DEBUG    yunohost.hook <lambda> - [18637.41] 41414 + args_array=([f]=file=)
    2019-04-24 18:06:40,704 DEBUG    yunohost.hook <lambda> - [18637.41] 41414 + declare -Ar args_array
    2019-04-24 18:06:40,705 DEBUG    yunohost.hook <lambda> - [18637.41] 41415 + local file
    2019-04-24 18:06:40,706 DEBUG    yunohost.hook <lambda> - [18637.41] 41416 + ynh_handle_getopts_args /etc/fail2ban/jail.d/shaarli.conf
    2019-04-24 18:06:40,707 DEBUG    yunohost.hook <lambda> - [18637.41] 41417 + set +x
    2019-04-24 18:06:40,708 DEBUG    yunohost.hook <lambda> - [18637.41] 41424 + echo '! Helper used in legacy mode !'
    2019-04-24 18:06:40,709 DEBUG    yunohost.hook <lambda> - [18637.41] 41425 + set +x
    2019-04-24 18:06:40,710 DEBUG    yunohost.hook <lambda> - [18637.41] 41426 + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
    2019-04-24 18:06:40,711 DEBUG    yunohost.hook <lambda> - [18637.41] 41428 + '[' 1 -ge 2 ']'
    2019-04-24 18:06:40,712 DEBUG    yunohost.hook <lambda> - [18637.41] 41429 + [[  	/var/www 	/home/yunohost.app =~ /etc/fail2ban/jail\.d/shaarli\.conf ]]
    2019-04-24 18:06:40,713 DEBUG    yunohost.hook <lambda> - [18637.41] 41430 + [[ /etc/fail2ban/jail.d/shaarli.conf =~ ^/[[:alnum:]]+$ ]]
    2019-04-24 18:06:40,714 DEBUG    yunohost.hook <lambda> - [18637.41] 41431 + [[ f = \/ ]]
    2019-04-24 18:06:40,715 DEBUG    yunohost.hook <lambda> - [18637.41] 41433 + '[' -e /etc/fail2ban/jail.d/shaarli.conf ']'
    2019-04-24 18:06:40,716 DEBUG    yunohost.hook <lambda> - [18637.41] 41434 + echo '/etc/fail2ban/jail.d/shaarli.conf wasn'\''t deleted because it doesn'\''t exist.'
    2019-04-24 18:06:40,717 DEBUG    yunohost.hook <lambda> - [18637.41] 41435 + ynh_secure_remove /etc/fail2ban/filter.d/shaarli.conf
    2019-04-24 18:06:40,718 DEBUG    yunohost.hook <lambda> - [18637.41] 41436 + local legacy_args=f
    2019-04-24 18:06:40,719 DEBUG    yunohost.hook <lambda> - [18637.41] 41438 + args_array=([f]=file=)
    2019-04-24 18:06:40,720 DEBUG    yunohost.hook <lambda> - [18637.41] 41439 + declare -Ar args_array
    2019-04-24 18:06:40,721 DEBUG    yunohost.hook <lambda> - [18637.41] 41441 + local file
    2019-04-24 18:06:40,722 DEBUG    yunohost.hook <lambda> - [18637.41] 41442 + ynh_handle_getopts_args /etc/fail2ban/filter.d/shaarli.conf
    2019-04-24 18:06:40,723 DEBUG    yunohost.hook <lambda> - [18637.41] 41443 + set +x
    2019-04-24 18:06:40,724 DEBUG    yunohost.hook <lambda> - [18637.41] 41445 + echo '! Helper used in legacy mode !'
    2019-04-24 18:06:40,725 DEBUG    yunohost.hook <lambda> - [18637.41] 41446 + set +x
    2019-04-24 18:06:40,726 DEBUG    yunohost.hook <lambda> - [18637.41] 41447 + local 'forbidden_path= 	/var/www 	/home/yunohost.app'
    2019-04-24 18:06:40,727 DEBUG    yunohost.hook <lambda> - [18637.41] 41448 + '[' 1 -ge 2 ']'
    2019-04-24 18:06:40,728 DEBUG    yunohost.hook <lambda> - [18637.41] 41450 + [[  	/var/www 	/home/yunohost.app =~ /etc/fail2ban/filter\.d/shaarli\.conf ]]
    2019-04-24 18:06:40,729 DEBUG    yunohost.hook <lambda> - [18637.41] 41451 + [[ /etc/fail2ban/filter.d/shaarli.conf =~ ^/[[:alnum:]]+$ ]]
    2019-04-24 18:06:40,730 DEBUG    yunohost.hook <lambda> - [18637.41] 41453 + [[ f = \/ ]]
    2019-04-24 18:06:40,731 DEBUG    yunohost.hook <lambda> - [18637.41] 41454 + '[' -e /etc/fail2ban/filter.d/shaarli.conf ']'
    2019-04-24 18:06:40,732 DEBUG    yunohost.hook <lambda> - [18637.41] 41455 + echo '/etc/fail2ban/filter.d/shaarli.conf wasn'\''t deleted because it doesn'\''t exist.'
    2019-04-24 18:06:40,733 DEBUG    yunohost.hook <lambda> - [18637.41] 41457 + systemctl try-reload-or-restart fail2ban
    2019-04-24 18:06:47,854 DEBUG    yunohost.hook <lambda> - [18637.41] 48590 + ynh_system_user_delete shaarli
    2019-04-24 18:06:47,855 DEBUG    yunohost.hook <lambda> - [18637.41] 48591 + local legacy_args=u
    2019-04-24 18:06:47,856 DEBUG    yunohost.hook <lambda> - [18637.41] 48592 + args_array=([u]=username=)
    2019-04-24 18:06:47,856 DEBUG    yunohost.hook <lambda> - [18637.41] 48593 + declare -Ar args_array
    2019-04-24 18:06:47,857 DEBUG    yunohost.hook <lambda> - [18637.41] 48593 + local username
    2019-04-24 18:06:47,858 DEBUG    yunohost.hook <lambda> - [18637.41] 48594 + ynh_handle_getopts_args shaarli
    2019-04-24 18:06:47,859 WARNING  yunohost.hook <lambda> - [18637.41] 48603 Remove the user shaarli
    2019-04-24 18:06:47,861 DEBUG    yunohost.hook <lambda> - [18637.41] 48595 + set +x
    2019-04-24 18:06:47,862 DEBUG    yunohost.hook <lambda> - [18637.41] 48596 + echo '! Helper used in legacy mode !'
    2019-04-24 18:06:47,863 DEBUG    yunohost.hook <lambda> - [18637.41] 48597 + set +x
    2019-04-24 18:06:47,864 DEBUG    yunohost.hook <lambda> - [18637.41] 48598 + ynh_system_user_exists shaarli
    2019-04-24 18:06:47,865 DEBUG    yunohost.hook <lambda> - [18637.41] 48599 + local legacy_args=u
    2019-04-24 18:06:47,865 DEBUG    yunohost.hook <lambda> - [18637.41] 48600 + args_array=([u]=username=)
    2019-04-24 18:06:47,866 DEBUG    yunohost.hook <lambda> - [18637.41] 48600 + declare -Ar args_array
    2019-04-24 18:06:47,867 DEBUG    yunohost.hook <lambda> - [18637.41] 48601 + local username
    2019-04-24 18:06:47,867 DEBUG    yunohost.hook <lambda> - [18637.41] 48602 + ynh_handle_getopts_args shaarli
    2019-04-24 18:06:47,868 DEBUG    yunohost.hook <lambda> - [18637.41] 48604 + set +x
    2019-04-24 18:06:47,868 DEBUG    yunohost.hook <lambda> - [18637.41] 48605 + echo '! Helper used in legacy mode !'
    2019-04-24 18:06:47,869 DEBUG    yunohost.hook <lambda> - [18637.41] 48606 + set +x
    2019-04-24 18:06:47,869 DEBUG    yunohost.hook <lambda> - [18637.41] 48607 + getent passwd shaarli
    2019-04-24 18:06:47,870 DEBUG    yunohost.hook <lambda> - [18637.41] 48608 + echo 'Remove the user shaarli'
    2019-04-24 18:06:47,871 DEBUG    yunohost.hook <lambda> - [18637.41] 48609 + deluser shaarli
    2019-04-24 18:06:48,172 DEBUG    yunohost.hook <lambda> - [18637.41] 48911 Removing user `shaarli' ...
    2019-04-24 18:06:48,173 DEBUG    yunohost.hook <lambda> - [18637.41] 48912 Warning: group `shaarli' has no more members.
    2019-04-24 18:06:48,375 DEBUG    yunohost.hook <lambda> - [18637.41] 49114 Done.
    2019-04-24 18:06:48,376 DEBUG    yunohost.hook <lambda> - [18637.41] 49115 + ynh_system_group_exists shaarli
    2019-04-24 18:06:48,377 DEBUG    yunohost.hook <lambda> - [18637.41] 49116 + local legacy_args=g
    2019-04-24 18:06:48,378 DEBUG    yunohost.hook <lambda> - [18637.41] 49117 + args_array=([g]=group=)
    2019-04-24 18:06:48,379 DEBUG    yunohost.hook <lambda> - [18637.41] 49119 + declare -Ar args_array
    2019-04-24 18:06:48,380 DEBUG    yunohost.hook <lambda> - [18637.41] 49120 + local group
    2019-04-24 18:06:48,381 DEBUG    yunohost.hook <lambda> - [18637.41] 49121 + ynh_handle_getopts_args shaarli
    2019-04-24 18:06:48,381 DEBUG    yunohost.hook <lambda> - [18637.41] 49122 + set +x
    2019-04-24 18:06:48,382 DEBUG    yunohost.hook <lambda> - [18637.41] 49123 + echo '! Helper used in legacy mode !'
    2019-04-24 18:06:48,384 DEBUG    yunohost.hook <lambda> - [18637.41] 49124 + set +x
    2019-04-24 18:06:48,385 DEBUG    yunohost.hook <lambda> - [18637.41] 49125 + getent group shaarli
    2019-04-24 18:06:48,487 DEBUG    yunohost.hook <lambda> - [18637.41] 49160 To view the log of the operation 'Remove 'shaarli' after a failed restore from a backup archive', use the command 'yunohost log display 20190424-170631-remove_on_failed_restore-shaarli'
    2019-04-24 18:06:48,489 WARNING  yunohost.hook <lambda> - [18637.41] 49181 Nothing has been restored
    2019-04-24 18:06:48,494 DEBUG    yunohost.hook <lambda> - [18637.41] 49180 action [19292.1] executed in 48.100s
    2019-04-24 18:06:48,596 DEBUG    yunohost.hook <lambda> - [18637.41] + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'
    2019-04-24 18:06:48,597 DEBUG    yunohost.hook <lambda> - [18637.41] + local legacy_args=mc
    2019-04-24 18:06:48,598 DEBUG    yunohost.hook <lambda> - [18637.41] + args_array=([m]=message= [c]=ret_code=)
    2019-04-24 18:06:48,599 DEBUG    yunohost.hook <lambda> - [18637.41] + declare -Ar args_array
    2019-04-24 18:06:48,600 DEBUG    yunohost.hook <lambda> - [18637.41] + local message
    2019-04-24 18:06:48,600 DEBUG    yunohost.hook <lambda> - [18637.41] + local ret_code
    2019-04-24 18:06:48,601 DEBUG    yunohost.hook <lambda> - [18637.41] + ynh_handle_getopts_args '--message=The app was restored to the way it was before the failed upgrade.'
    2019-04-24 18:06:48,602 DEBUG    yunohost.hook <lambda> - [18637.41] + set +x
    2019-04-24 18:06:48,704 DEBUG    yunohost.hook <lambda> - [18637.41] + echo 'The app was restored to the way it was before the failed upgrade.'
    2019-04-24 18:06:48,705 WARNING  yunohost.hook <lambda> - [18637.41] The app was restored to the way it was before the failed upgrade.
    2019-04-24 18:06:48,706 DEBUG    yunohost.hook <lambda> - [18637.41] + exit 1
    2019-04-24 18:06:48,857 ERROR    yunohost.app app_upgrade - [18637.41] Impossible de mettre à jour shaarli
    2019-04-24 18:06:48,872 INFO     yunohost.log close - [18637.41] <strong>L’opération 'Mettre à jour l’application 'shaarli'' a échouée ! Pour avoir de l’aide, merci <a href="#/tools/logs/20190424-170442-app_upgrade-shaarli"> de fournir le journal historisé complet de l’opération en cliquant ici</a></strong>
    2019-04-24 18:06:48,885 INFO     yunohost.app app_upgrade - [18637.41] Mise à jour de l’application shellinabox …
    2019-04-24 18:06:49,084 SUCCESS  yunohost.app success - [18637.41] shellinabox est déjà à jour
    2019-04-24 18:06:49,086 INFO     yunohost.app app_upgrade - [18637.41] Mise à jour de l’application wallabag2 …
    2019-04-24 18:06:49,206 SUCCESS  yunohost.app success - [18637.41] wallabag2 est déjà à jour
    2019-04-24 18:06:49,208 WARNING  yunohost.tools tools_upgrade - [18637.41] unable to upgrade apps: Les applications suivantes n'ont pas été mises à jour : shaarli
    2019-04-24 18:06:49,209 ERROR    yunohost.tools tools_upgrade - [18637.41] Impossible de mettre à jour certaines applications

Le log de l’échec de réinstall :

2019-04-24 18:10:47,333: DEBUG - + ynh_handle_getopts_args /etc/fail2ban/filter.d/shaarli.conf
2019-04-24 18:10:47,334: DEBUG - + set +x
2019-04-24 18:10:47,335: DEBUG - + echo '! Helper used in legacy mode !'
2019-04-24 18:10:47,337: DEBUG - + set +x
2019-04-24 18:10:47,338: DEBUG - + local checksum_setting_name=checksum__etc_fail2ban_filter.d_shaarli.conf
2019-04-24 18:10:47,339: DEBUG - ++ sudo md5sum /etc/fail2ban/filter.d/shaarli.conf
2019-04-24 18:10:47,341: DEBUG - ++ cut '-d ' -f1
2019-04-24 18:10:47,442: DEBUG - + ynh_app_setting_set --app=shaarli --key=checksum__etc_fail2ban_filter.d_shaarli.conf --value=3bc5990586ff2d2df39b9e453
2019-04-24 18:10:47,443: DEBUG - + local legacy_args=akv
2019-04-24 18:10:47,443: DEBUG - + args_array=([a]=app= [k]=key= [v]=value=)
2019-04-24 18:10:47,444: DEBUG - + declare -Ar args_array
2019-04-24 18:10:47,444: DEBUG - + local app
2019-04-24 18:10:47,445: DEBUG - + local key
2019-04-24 18:10:47,445: DEBUG - + local value
2019-04-24 18:10:47,446: DEBUG - + ynh_handle_getopts_args --app=shaarli --key=checksum__etc_fail2ban_filter.d_shaarli.conf --value=3bc59905c7b504386ff2d2df39b9e453
2019-04-24 18:10:47,446: DEBUG - + set +x
2019-04-24 18:10:47,447: DEBUG - + ynh_app_setting set shaarli checksum__etc_fail2ban_filter.d_shaarli.conf 3bc59905c7b504386ff2d2df39b9e453
2019-04-24 18:10:47,447: DEBUG - + ACTION=set
2019-04-24 18:10:47,448: DEBUG - + APP=shaarli
2019-04-24 18:10:47,448: DEBUG - + KEY=checksum__etc_fail2ban_filter.d_shaarli.conf
2019-04-24 18:10:47,449: DEBUG - + VALUE=3bc59905c7b504386ff2d2df39b9e453
2019-04-24 18:10:47,449: DEBUG - + python -
2019-04-24 18:10:47,851: DEBUG - + '[' -n '' ']'
2019-04-24 18:10:47,852: DEBUG - + unset backup_file_checksum
2019-04-24 18:10:47,852: DEBUG - + systemctl try-reload-or-restart fail2ban
2019-04-24 18:10:56,016: DEBUG - + ynh_exit_properly
2019-04-24 18:10:56,016: WARNING - Job for fail2ban.service failed because the control process exited with error code.
2019-04-24 18:10:56,018: DEBUG - + local exit_code=1
2019-04-24 18:10:56,018: WARNING - See "systemctl status fail2ban.service" and "journalctl -xe" for details.
2019-04-24 18:10:56,020: DEBUG - + '[' 1 -eq 0 ']'
2019-04-24 18:10:56,020: WARNING - !!
2019-04-24 18:10:56,021: DEBUG - + trap '' EXIT
2019-04-24 18:10:56,022: WARNING -   shaarli's script has encountered an error. Its execution was cancelled.
2019-04-24 18:10:56,023: DEBUG - + set +eu
2019-04-24 18:10:56,024: WARNING - !!
2019-04-24 18:10:56,025: DEBUG - + echo -e '!!\n  shaarli'\''s script has encountered an error. Its execution was cancelled.\n!!'
2019-04-24 18:10:56,026: WARNING - 
2019-04-24 18:10:56,028: DEBUG - + type -t ynh_clean_setup
2019-04-24 18:10:56,031: DEBUG - + ynh_clean_setup
2019-04-24 18:10:56,032: DEBUG - + true
2019-04-24 18:10:56,033: DEBUG - + ynh_die
2019-04-24 18:10:56,034: DEBUG - + local legacy_args=mc
2019-04-24 18:10:56,035: DEBUG - + args_array=([m]=message= [c]=ret_code=)
2019-04-24 18:10:56,036: DEBUG - + declare -Ar args_array
2019-04-24 18:10:56,037: DEBUG - + local message
2019-04-24 18:10:56,037: DEBUG - + local ret_code
2019-04-24 18:10:56,038: DEBUG - + ynh_handle_getopts_args
2019-04-24 18:10:56,039: DEBUG - + set +x
2019-04-24 18:10:56,040: DEBUG - + echo ''
2019-04-24 18:10:56,040: DEBUG - + exit 1

Merci pour vos lumières
Ym

#2

Complement d’info :
La commande : systemctl status fail2ban.service
Renvoi :
● fail2ban.service - Fail2Ban Service
Loaded: loaded (/lib/systemd/system/fail2ban.service; enabled; vendor preset: enabled)
Active: active (running) (Result: exit-code) since Mon 2019-04-15 09:13:54 BST; 1 weeks 2 days ago
Docs: man:fail2ban(1)
Process: 26518 ExecReload=/usr/bin/fail2ban-client reload (code=exited, status=0/SUCCESS)
Main PID: 1300 (fail2ban-server)
CGroup: /system.slice/fail2ban.service
└─1300 /usr/bin/python3 /usr/bin/fail2ban-server -s /var/run/fail2ban/fail2ban.sock -p /var/run/fail2ban/fail2ban.pid -x -b

#3

Tu n’as que ça comme info de statut de fail2ban ?

C’est bien la restauration de sauvegarde qui foire, pas une installation neuve ?

Pour le premier log, tu as le moment où il n’arrive pas à mettre à jour, plutôt que la désinstallation pour cause d’échec ? (en gros la partie d’avant)