Le modèle de carte du serveur est Olimex A20-OLinuXino-LIME
Le serveur utilise le noyau Linux 4.19.62-sunxi
Le serveur utilise Debian 9.12
Le serveur utilise YunoHost 3.8.4.9 (stable)
yunohost version : 3.8.4.9 (stable)
yunohost-admin version : 3.8.3.4 (stable)
moulinette version : 3.8.1.2 (stable)
ssowat version : 3.8.0.2 (stable)
J’ai accès à mon serveur : En SSH | Par la webadmin
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non
Description du problème
Mise à jour Wifi Hotspot de 1.2.0 à 1.2.0~ynh2 impossible le serveur devient inaccessible et je suis obliger de le redémarrer que je fasse la mise à jour par la web admin ou en ssh aucun retour dans les journaux donc je n’ai aucune piste pour essayer de trouver d’où viens le problème.
Si qulqu’un à une idée pour la suite à donner je suis preneur.
Aïe, je suis en train de reproduire le même bug… Je fais la mise à jour en console: sudo yunohost tools upgrade --apps
et j’en suis à cette étape:
Info: Now upgrading hotspot…
Info: [+...................] > Loading installation settings...
Info: [#+..................] > Checking version...
Info: [##+.................] > Ensuring downward compatibility...
Info: [###+................] > Backing up the app before upgrading (may take a while)...
Info: [####+...............] > Stopping a systemd service...
Info: [#####+..............] > Upgrading nginx web server configuration...
Info: [######+.............] > Upgrading dependencies...
Info: [#######+............] > Making sure dedicated system user exists...
Info: [########++..........] > Upgrading php-fpm configuration...
Info: [##########+.........] > Copying configuration...
Info: [###########+........] > Modifying a config file...
Info: [############+.......] > Upgrading systemd configuration...
Info: [#############+......] > Securing files and directories...
Warning: /!\ Packagers! Please provide a --test_status when adding oneshot-type services in Yunohost, such that it has a reliable way to check if the service is running or not.
Info: [##############+.....] > Integrating service in YunoHost...
Info: [###############+....] > Starting a systemd service...
systemd n’a pas l’air de redémarrer…
Avant de tout arrêter, puis-je tenter quelque chose ?
Du coup, via l’interface SSO, je suis aller éteintre Hotspot-wifi, et voici les logs dans le terminal:
Warning: Job for ynh-hotspot.service canceled.
Warning: [Error] Jul 06 15:03:25 dnsmasq[2792]: sortie sur réception du signal SIGTERM
Warning: Jul 06 15:03:25 ynh-hotspot[10660]: Stop hostapd
Warning: Jul 06 15:03:25 ynh-hotspot[10660]: [INFO] Retrieving Yunohost settings...
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [ OK ] Settings retrieved
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [INFO] [vpnclient] Starting...
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [INFO] (openvpn is already running)
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [INFO] Adding IPv6 server route
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: Cannot find device "202"
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [INFO] Adding IPv6 from VPN configuration
Warning: Jul 06 15:03:26 ynh-hotspot[10660]: [INFO] Saving settings...
Warning: Jul 06 15:04:55 systemd[1]: ynh-hotspot.service: Stopping timed out. Terminating.
Warning: Jul 06 15:04:55 systemd[1]: ynh-hotspot.service: Control process exited, code=killed, status=15/TERM
Warning: Jul 06 15:04:55 systemd[1]: ynh-hotspot.service: Failed with result 'timeout'.
Warning: Jul 06 15:04:55 systemd[1]: Stopped YunoHost Wifi Hotspot..
Warning: Jul 06 15:05:21 systemd[1]: Starting YunoHost Wifi Hotspot....
Warning: Jul 06 15:05:21 ynh-hotspot[13884]: Retrieving Yunohost settings... OK
Warning: Jul 06 15:05:21 ynh-hotspot[13884]: [hotspot] Starting...
Warning: Jul 06 15:15:58 systemd[1]: ynh-hotspot.service: Main process exited, code=killed, status=15/TERM
Warning: Jul 06 15:15:58 systemd[1]: ynh-hotspot.service: Failed with result 'signal'.
Warning: Jul 06 15:15:58 systemd[1]: Stopped YunoHost Wifi Hotspot..
Warning: /usr/share/yunohost/helpers.d/logging: line 20: message: unbound variable
Warning: [Error] Upgrade failed.
Warning: Removed /etc/systemd/system/hostapd.service.
Warning: dpkg: warning: while removing hostapd, directory '/etc/hostapd' not empty so not removed
Warning: userdel: user hotspot is currently used by process 14497
Warning: /usr/sbin/deluser: `/usr/sbin/userdel hotspot' returned error code 8. Exiting.
Warning: /usr/sbin/delgroup: `hotspot' still has `hotspot' as their primary group!
Warning: 22033 Created symlink /etc/systemd/system/multi-user.target.wants/hostapd.service -> /lib/systemd/system/hostapd.service.
Warning: 23338 Job for hostapd.service failed because the control process exited with error code.
Warning: 23338 See "systemctl status hostapd.service" and "journalctl -xe" for details.
Warning: 23439 Created symlink /etc/systemd/system/hostapd.service -> /dev/null.
Warning: 26979 Created symlink /etc/systemd/system/multi-user.target.wants/ynh-hotspot.service → /etc/systemd/system/ynh-hotspot.service.
Warning: 28187 /!\ Packagers! Please provide a --test_status when adding oneshot-type services in Yunohost, such that it has a reliable way to check if the service is running or not.
Warning: The app was restored to the way it was before the failed upgrade.
Error: Could not upgrade hotspot: An error occurred inside the app upgrade script
Info: The operation 'Upgrade the 'hotspot' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200706-130307-app_upgrade-hotspot --share' to get help
Warning: Here's an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - 10832 ++ realpath /etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10833 + src_path=/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10833 + [[ -z '' ]]
Info: DEBUG - 10834 + dest_path=etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10834 + [[ -e etc/systemd/system/ynh-hotspot.service ]]
Info: DEBUG - 10834 + local rel_dir=/apps/hotspot/backup
Info: DEBUG - 10835 + rel_dir=/apps/hotspot/backup/
Info: DEBUG - 10835 + dest_path=/apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10835 + dest_path=apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10835 ++ echo /etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10836 ++ sed --regexp-extended 's/"/\"\"/g'
Info: DEBUG - 10836 + local src=/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10836 ++ echo apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10836 ++ sed --regexp-extended 's/"/\"\"/g'
Info: DEBUG - 10837 + local dest=apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10837 + echo '"/etc/systemd/system/ynh-hotspot.service","apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service"'
Info: DEBUG - 10837 ++ dirname /home/yunohost.backup/tmp/hotspot-pre-upgrade1/apps/hotspot/backup/etc/systemd/system/ynh-hotspot.service
Info: DEBUG - 10837 + mkdir --parents /home/yunohost.backup/tmp/hotspot-pre-upgrade1/apps/hotspot/backup/etc/systemd/system
Info: DEBUG - 10838 + ynh_print_info 'Backup script completed for hotspot. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 10941 + echo 'Backup script completed for hotspot. (YunoHost will then actually copy those files to the archive).'
Info: DEBUG - 10941 + ynh_exit_properly
Warning: unable to upgrade apps: The operation 'Upgrade the 'hotspot' app' could not be completed. Please share the full log of this operation using the command 'yunohost log display 20200706-130307-app_upgrade-hotspot --share' to get help
Error: Some apps could not be upgraded
Du coup, pas d’upgrade, mais j’ai gardé la version actuelle qui fonctionne…
Peut-être que j’aurai du attendre plus longtemps ?? c’est avec une Yunohost Buster sur un raspberry Pi4…
@Didier58@charly@rodinux : j’ai poussé une version (1.2.0~ynh3) qui devrait résoudre le problème … est-ce que vous pouvez retenter l’install ou la mise à jour ?
(N.B. : si ça reste bloqué de nouveau plus de ~10 minutes sur le lancement du service c’est qu’il y a un soucis et il faut réintérrompre la commande)
Ça n’a pas fonctionner pour moi, sur une version buster , les logs: https://paste.yunohost.org/raw/wefijidixi
Ceci dit j’arrivai à faire marcher hotspot-wifi, mais il ne démarre plus correctement…
L’erreur en essayant de redémarrer le service envoyée par journalctl:
-- Logs begin at Fri 2020-07-03 11:17:01 CEST, end at Tue 2020-07-07 23:25:01 CEST. --
juil. 07 23:17:13 ynh-hotspot[9612]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl1': Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: RTNETLINK answers: Device or resource busy
juil. 07 23:17:13 ynh-hotspot[9612]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl2': Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: cat: /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: rm: impossible de supprimer '/etc/hostapd/hostapd.conf.tmp': Aucun fichier ou dossier de ce type
juil. 07 23:17:13 ynh-hotspot[9612]: Failed to start hostapd.service: Unit hostapd.service is masked.
juil. 07 23:17:13 systemd[1]: ynh-hotspot.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit ynh-hotspot.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
juil. 07 23:17:13 systemd[1]: ynh-hotspot.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit ynh-hotspot.service has entered the 'failed' state with result 'exit-code'.
juil. 07 23:17:13 systemd[1]: Failed to start YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) ynh-hotspot.service a échoué, avec le résultat failed.
juil. 07 23:18:30 systemd[1]: Starting YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) ynh-hotspot.service a commencé à démarrer.
juil. 07 23:18:30 ynh-hotspot[10121]: Retrieving Yunohost settings... OK
juil. 07 23:18:30 ynh-hotspot[10121]: [hotspot] Starting...
juil. 07 23:18:31 ynh-hotspot[10121]: Run hostapd
juil. 07 23:18:31 ynh-hotspot[10121]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl1': Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: RTNETLINK answers: Device or resource busy
juil. 07 23:18:31 ynh-hotspot[10121]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl2': Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: cat: /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: rm: impossible de supprimer '/etc/hostapd/hostapd.conf.tmp': Aucun fichier ou dossier de ce type
juil. 07 23:18:31 ynh-hotspot[10121]: Failed to start hostapd.service: Unit hostapd.service is masked.
juil. 07 23:18:31 systemd[1]: ynh-hotspot.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit ynh-hotspot.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
juil. 07 23:18:31 systemd[1]: ynh-hotspot.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit ynh-hotspot.service has entered the 'failed' state with result 'exit-code'.
juil. 07 23:18:31 systemd[1]: Failed to start YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) ynh-hotspot.service a échoué, avec le résultat failed.
juil. 07 23:18:48 systemd[1]: Starting YunoHost Wifi Hotspot....
-- Subject: L'unité (unit) ynh-hotspot.service a commencé à démarrer
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) ynh-hotspot.service a commencé à démarrer.
juil. 07 23:18:48 ynh-hotspot[10228]: Retrieving Yunohost settings... OK
juil. 07 23:18:48 ynh-hotspot[10228]: [hotspot] Starting...
juil. 07 23:18:49 ynh-hotspot[10228]: Run hostapd
juil. 07 23:18:49 ynh-hotspot[10228]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl1': Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: RTNETLINK answers: Device or resource busy
juil. 07 23:18:49 ynh-hotspot[10228]: cp: impossible d'évaluer '/etc/hostapd/hostapd.conf.tpl2': Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: sed: impossible de lire /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: cat: /etc/hostapd/hostapd.conf.tmp: Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: rm: impossible de supprimer '/etc/hostapd/hostapd.conf.tmp': Aucun fichier ou dossier de ce type
juil. 07 23:18:49 ynh-hotspot[10228]: Failed to start hostapd.service: Unit hostapd.service is masked.
juil. 07 23:18:49 systemd[1]: ynh-hotspot.service: Main process exited, code=exited, status=1/FAILURE
-- Subject: Unit process exited
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- An ExecStart= process belonging to unit ynh-hotspot.service has exited.
--
-- The process' exit code is 'exited' and its exit status is 1.
juil. 07 23:18:49 systemd[1]: ynh-hotspot.service: Failed with result 'exit-code'.
-- Subject: Unit failed
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- The unit ynh-hotspot.service has entered the 'failed' state with result 'exit-code'.
juil. 07 23:18:49 systemd[1]: Failed to start YunoHost Wifi Hotspot..
-- Subject: L'unité (unit) ynh-hotspot.service a échoué
-- Defined-By: systemd
-- Support: https://www.debian.org/support
--
-- L'unité (unit) ynh-hotspot.service a échoué, avec le résultat failed