Shell in the the box problem update

impossible to update Shell in the box today and the message alert in the webmin is:

"Erreur: “500” Internal Server Error

Action: “PUT” /yunohost/api/apps/shellinabox/upgrade

Message d’erreur :
L’opération ‘Mettre à jour l’application ‘shellinabox’’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en cliquant ici

Pendant le traitement de l’action, le serveur a dit :
Mise à jour de shellinabox…
Creating a safety backup prior to the upgrade
Collecte des fichiers devant être sauvegardés pour shellinabox…
Loading installation settings…
Declaring files to be backed up…
Backup script completed for shellinabox. (YunoHost will then actually copy those files to the archive).
Création d’une archive de sauvegarde à partir des fichiers collectés …
L’archive contiendra environ 1.0MB de données.
Sauvegarde créée : shellinabox-pre-upgrade1
Sauvegarde supprimée : shellinabox-pre-upgrade2
Deprovisionning install_dir…
Deprovisionning system_user…
Failed to deprovision system_user : Failed to delete system user for shellinabox
Reprovisionning install_dir…
Reprovisionning system_user…
L’allocation automatique des ressources (provisioning), la suppression d’accès à ces ressources (déprovisioning) ou la mise à jour des ressources pour shellinabox a échoué : Failed to delete system user for shellinabox
L’opération ‘Mettre à jour l’application ‘shellinabox’’ a échoué ! Pour obtenir de l’aide, merci de partager le journal de l’opération en cliquant ici"

My Server is at home. it’s a X86 64bits with the last yunohost 11.1.20 stable

thank’s for your help

1 Like

please, share the full logs.

Ericg, this is the only log in the webadmin tool panel:

ended_at: 2023-06-05 12:32:59.174501
env:
YNH_APP_ACTION: upgrade
YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_zlkuabaw
YNH_APP_CURRENT_VERSION: 2.21~ynh3
YNH_APP_ID: shellinabox
YNH_APP_INSTANCE_NAME: shellinabox
YNH_APP_INSTANCE_NUMBER: ‘1’
YNH_APP_MANIFEST_VERSION: 2.21~ynh4
YNH_APP_PACKAGING_FORMAT: ‘2.0’
YNH_APP_UPGRADE_TYPE: UPGRADE_PACKAGE
YNH_ARCH: amd64
YNH_DEBIAN_VERSION: bullseye
error: Failed to delete system user for shellinabox
interface: api
operation: app_upgrade
parent: null
related_to:

    • app
    • shellinabox
      started_at: 2023-06-05 12:32:59.053141
      success: false
      yunohost_version: 11.1.20

============

2023-06-05 14:32:59,061: INFO - Deprovisionning install_dir…
2023-06-05 14:32:59,061: INFO - Deprovisionning system_user…
2023-06-05 14:32:59,139: WARNING - Failed to deprovision system_user : Failed to delete system user for shellinabox
2023-06-05 14:32:59,140: INFO - Reprovisionning install_dir…
2023-06-05 14:32:59,146: INFO - Reprovisionning system_user…
2023-06-05 14:32:59,173: ERROR - L’allocation automatique des ressources (provisioning), la suppression d’accès à ces ressources (déprovisioning) ou la mise à jour des ressources pour shellinabox a échoué : Failed to delete system user for shellinabox

Thank for your help

Hi,
bug confirmed on my side

5270 SUCCESS Backup deleted: shellinabox-pre-upgrade1
5270 DEBUG Checking that required services are up and running...
7919 INFO Deprovisionning install_dir...
7920 INFO Deprovisionning system_user...
userdel: user shellinabox is currently used by process 520
/usr/sbin/deluser: `/usr/sbin/userdel shellinabox' returned error code 8. Exiting.
8157 WARNING Failed to deprovision system_user : Failed to delete system user for shellinabox

manually stopping the shellinthebox service before the upgrade did the trick.

1 Like

Thanks for the feedback. Can you detail the action you did?

Ewilly, stop the service and update shell in the box seem break the apps : the app seem well update but in the user panel, the big button disappear!(and impossible to start the shell in the box service).
I uninstall shell in the box and re-install, same things, the install seem well but no shell button in the user panel!!! where is the button? in terminal SSh work well

the log after re-install:

https://paste.yunohost.org/raw/losuxivuma

I also tried to stop the service and do the update: the update was successful, but then the service doesn’t start:

juin 06 08:37:05 shellinabox[94395]: [server] Cannot look up user id "shellinabox"!
juin 06 08:37:05 shellinaboxd[94395]: [server] Cannot look up user id "shellinabox"!
juin 06 08:37:05 shellinaboxd[94395]: [server] Aborting...
juin 06 08:37:05 systemd[1]: Started LSB: Shell In A Box Daemon.
juin 06 08:38:06 systemd[1]: Stopping LSB: Shell In A Box Daemon...
juin 06 08:38:07 shellinabox[94995]: No process in pidfile '/var/run/shellinaboxd.pid' found running; none killed.
juin 06 08:38:07 systemd[1]: shellinabox.service: Succeeded.
juin 06 08:38:07 systemd[1]: Stopped LSB: Shell In A Box Daemon.
-- Boot 4897f42e4cfe4b33bf7f59cf0fdae72b --
juin 06 08:38:37 systemd[1]: Starting LSB: Shell In A Box Daemon...
juin 06 08:38:37 shellinabox[714]: [server] Cannot look up user id "shellinabox"!
juin 06 08:38:37 shellinaboxd[714]: [server] Cannot look up user id "shellinabox"!
juin 06 08:38:37 systemd[1]: Started LSB: Shell In A Box Daemon.
juin 06 08:38:37 shellinaboxd[714]: [server] Aborting...

I just execute

systemctl stop shellinabox.service
1 Like

confirmed shellinabox user is missing (@ericg see. https://github.com/YunoHost-Apps/shellinabox_ynh/pull/33#issuecomment-1578755039)

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.