Planté depuis Migration : Help

What type of hardware are you using: VPS bought online
What YunoHost version are you running: 12.0.7
How are you able to access your server: SSH

Describe your issue

Bonjour à tous,
Après de multiple lectures sur le forum depuis l’apres midi à essayer de regler le problème, je pense que mon dernier espoir est ici. Je ne suis pas adminsys du tout, supernoob linux.
Mon yunohost est sur un VPS,

yunohost:
  repo: stable
  version: 12.0.7
yunohost-admin:
  repo: stable
  version: 11.3.0
yunohost-portal:
  repo: ?
  version: ?
moulinette:
  repo: stable
  version: 12.0.3
ssowat:
  repo: stable
  version: 12.0.3

Operating System: Debian GNU/Linux 12 (bookworm)
Kernel: Linux 6.1.0-27-amd64

j’ai essayé de faire la migration j’ai eu ce message :
Erreur: “400”

Action: “PUT” /yunohost/api/upgrade/system

Dernier message d’erreur depuis l’interface graphqiue avant que tout soit cassé:

Vous ne pouvez pas faire ça maintenant car dpkg/apt (le gestionnaire de paquets du système) semble avoir laissé des choses non configurées… Vous pouvez essayer de résoudre ce problème en vous connectant via SSH et en exécutant `sudo apt install --fix-broken` et/ou `sudo dpkg --configure -a` et/ou `sudo dpkg --audit`.

Bon, j’ai un peu touché à tout.

**Tout d’abord, en essayant de reparer, j’ai vu que j’avais des alerte au niveaux des depots, j’ai modifié ainsi : **

#deb http://forge.yunohost.org/debian/ buster stable
#deb http://yunohost.org/debian/ yunohost stable
deb  https:// forge.yunohost.org/debian/ bookworm stable

Share relevant logs or error messages

operation:
  0:
    description: Upgrade the 'n8n' app
    name: 20241120-092617-app_upgrade-n8n
    path: /var/log/yunohost/operations/20241120-092617-app_upgrade-n8n.yml
    started_at: 2024-11-20 10:26:17
  1:
    description: Create a backup archive
    name: 20241120-092818-backup_create
    path: /var/log/yunohost/operations/20241120-092818-backup_create.yml
    started_at: 2024-11-20 10:28:18
  2:
    description: Upgrade the 'searxng' app
    name: 20241120-092831-app_upgrade-searxng
    path: /var/log/yunohost/operations/20241120-092831-app_upgrade-searxng.yml
    started_at: 2024-11-20 10:28:31
  3:
    description: Create a backup archive
    name: 20241120-094005-backup_create
    path: /var/log/yunohost/operations/20241120-094005-backup_create.yml
    started_at: 2024-11-20 10:40:05
  4:
    description: Create a backup archive
    name: 20241120-094033-backup_create
    path: /var/log/yunohost/operations/20241120-094033-backup_create.yml
    started_at: 2024-11-20 10:40:33
  5:
    description: Create a backup archive
    name: 20241120-094047-backup_create
    path: /var/log/yunohost/operations/20241120-094047-backup_create.yml
    started_at: 2024-11-20 10:40:47
  6:
    description: Run migrations
    name: 20241120-094120-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094120-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:41:20
  7:
    description: Run migrations
    name: 20241120-094938-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094938-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:49:38
  8:
    description: Run migrations
    name: 20241120-094939-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094939-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:49:39
  9:
    description: Run migrations
    name: 20241120-094947-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094947-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:49:47
  10:
    description: Run migrations
    name: 20241120-094955-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094955-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:49:55
  11:
    description: Run migrations
    name: 20241120-094956-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-094956-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:49:56
  12:
    description: Run migrations
    name: 20241120-095004-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-095004-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:50:04
  13:
    description: Run migrations
    name: 20241120-095005-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-095005-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:50:05
  14:
    description: Run migrations
    name: 20241120-095010-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-095010-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:50:10
  15:
    description: Run migrations
    name: 20241120-095015-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-095015-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:50:15
  16:
    description: Run migrations
    name: 20241120-095810-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-095810-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 10:58:10
  17:
    description: Run migrations
    name: 20241120-125048-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-125048-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 13:50:48
  18:
    description: Run migrations
    name: 20241120-125050-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-125050-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 13:50:50
  19:
    description: Run migrations
    name: 20241120-125438-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-125438-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 13:54:38
  20:
    description: Run migrations
    name: 20241120-125439-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-125439-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 13:54:39
  21:
    description: Run migrations
    name: 20241120-130426-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-130426-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 14:04:26
  22:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-132643-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-132643-regen_conf-ssowat.yml
    started_at: 2024-11-20 14:26:43
  23:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-133018-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-133018-regen_conf-ssowat.yml
    started_at: 2024-11-20 14:30:18
  24:
    description: Regenerate system configurations 'all'
    name: 20241120-133425-regen_conf-all
    path: /var/log/yunohost/operations/20241120-133425-regen_conf-all.yml
    started_at: 2024-11-20 14:34:25
  25:
    description: Remove the 'phpinfo' app
    name: 20241120-133558-app_remove-phpinfo
    path: /var/log/yunohost/operations/20241120-133558-app_remove-phpinfo.yml
    started_at: 2024-11-20 14:35:58
  26:
    description: Delete permission 'phpinfo'
    name: 20241120-133604-permission_delete-phpinfo
    path: /var/log/yunohost/operations/20241120-133604-permission_delete-phpinfo.yml
    started_at: 2024-11-20 14:36:04
  27:
    description: Remove the 'phpsysinfo' app
    name: 20241120-133614-app_remove-phpsysinfo
    path: /var/log/yunohost/operations/20241120-133614-app_remove-phpsysinfo.yml
    started_at: 2024-11-20 14:36:14
  28:
    description: Delete permission 'phpsysinfo'
    name: 20241120-133617-permission_delete-phpsysinfo
    path: /var/log/yunohost/operations/20241120-133617-permission_delete-phpsysinfo.yml
    started_at: 2024-11-20 14:36:17
  29:
    description: Remove the 'searxng' app
    name: 20241120-133633-app_remove-searxng
    path: /var/log/yunohost/operations/20241120-133633-app_remove-searxng.yml
    started_at: 2024-11-20 14:36:33
  30:
    description: Delete permission 'searxng'
    name: 20241120-133639-permission_delete-searxng
    path: /var/log/yunohost/operations/20241120-133639-permission_delete-searxng.yml
    started_at: 2024-11-20 14:36:39
  31:
    description: Regenerate system configurations 'all'
    name: 20241120-133644-regen_conf-all
    path: /var/log/yunohost/operations/20241120-133644-regen_conf-all.yml
    started_at: 2024-11-20 14:36:44
  32:
    description: Remove 'later.superzen.et' domain from system configuration
    name: 20241120-134043-domain_remove-later.superzen.et
    path: /var/log/yunohost/operations/20241120-134043-domain_remove-later.superzen.et.yml
    started_at: 2024-11-20 14:40:43
  33:
    description: Regenerate system configurations 'all'
    name: 20241120-134103-regen_conf-all
    path: /var/log/yunohost/operations/20241120-134103-regen_conf-all.yml
    started_at: 2024-11-20 14:41:03
  34:
    description: Regenerate system configurations 'all'
    name: 20241120-134249-regen_conf-all
    path: /var/log/yunohost/operations/20241120-134249-regen_conf-all.yml
    started_at: 2024-11-20 14:42:49
  35:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-134759-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-134759-regen_conf-ssowat.yml
    started_at: 2024-11-20 14:47:59
  36:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-135156-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-135156-regen_conf-ssowat.yml
    started_at: 2024-11-20 14:51:56
  37:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-135849-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-135849-regen_conf-ssowat.yml
    started_at: 2024-11-20 14:58:49
  38:
    description: Run migrations
    name: 20241120-140617-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-140617-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 15:06:17
  39:
    description: Run migrations
    name: 20241120-140803-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-140803-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 15:08:03
  40:
    description: Run migrations
    name: 20241120-141820-tools_migrations_migrate_forward
    path: /var/log/yunohost/operations/20241120-141820-tools_migrations_migrate_forward.yml
    started_at: 2024-11-20 15:18:20
  41:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-141849-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-141849-regen_conf-ssowat.yml
    started_at: 2024-11-20 15:18:49
  42:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-142025-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-142025-regen_conf-ssowat.yml
    started_at: 2024-11-20 15:20:25
  43:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-145729-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-145729-regen_conf-ssowat.yml
    started_at: 2024-11-20 15:57:29
  44:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-150458-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-150458-regen_conf-ssowat.yml
    started_at: 2024-11-20 16:04:58
  45:
    description: Regenerate system configurations 'ssowat'
    name: 20241120-150600-regen_conf-ssowat
    path: /var/log/yunohost/operations/20241120-150600-regen_conf-ssowat.yml
    started_at: 2024-11-20 16:06:00
  46:
    description: Restore system from a backup archive
    name: 20241120-155108-backup_restore_system
    path: /var/log/yunohost/operations/20241120-155108-backup_restore_system.yml
    started_at: 2024-11-20 16:51:08
  47:
    description: Regenerate system configurations 'all'
    name: 20241120-155110-regen_conf-all
    path: /var/log/yunohost/operations/20241120-155110-regen_conf-all.yml
    started_at: 2024-11-20 16:51:10
  48:
    description: Delete permission 'xmpp'
    name: 20241120-155152-permission_delete-xmpp
    path: /var/log/yunohost/operations/20241120-155152-permission_delete-xmpp.yml
    started_at: 2024-11-20 16:51:52
  49:
    description: Remove 'later.superzen.et' domain from system configuration
    name: 20241120-170440-domain_remove-later.superzen.et
    path: /var/log/yunohost/operations/20241120-170440-domain_remove-later.superzen.et.yml
    started_at: 2024-11-20 18:04:40

J’ai toujours ce message dpkg qui revient et nginx refuse de se lancer maintenant. Je vous joints les messages que j’ai

sudo apt install --fix-broken et sudo dpkg --configure -a

Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
0 upgraded, 0 newly installed, 0 to remove and 2 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
Setting up yunohost (12.0.7) ...
Regenerating configuration, this might take a while...
Traceback (most recent call last):
  File "/usr/bin/yunohost", line 77, in <module>
    yunohost.cli(
  File "/usr/lib/python3/dist-packages/yunohost/__init__.py", line 41, in cli
    ret = moulinette.cli(
          ^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/__init__.py", line 115, in cli
    ).run(args, output_as=output_as, timeout=timeout)
      ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/interfaces/cli.py", line 498, in run
    ret = self.actionsmap.process(args, timeout=timeout)
          ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/moulinette/actionsmap.py", line 561, in process
    return func(**arguments)
           ^^^^^^^^^^^^^^^^^
  File "/usr/lib/python3/dist-packages/yunohost/app.py", line 1658, in app_ssowatconf
    default_app = _get_raw_domain_settings(domain).get("default_app")
                  ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
AttributeError: 'NoneType' object has no attribute 'get'
dpkg: error processing package yunohost (--configure):
 installed yunohost package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)

sudo dpkg --audit

The following packages are only half configured, probably due to problems
configuring them the first time.  The configuration should be retried using
dpkg --configure <package> or the configure menu option in dselect:
 yunohost             manageable and configured self-hosting server

**sudo apt install --reinstall ssowat **
done un fichier /etc/ssowat/conf.json vide et Nginx refuse de se lancer

sudo apt update

Err:6 forge.yunohost.org/debian bookworm InRelease
  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D09F2273DAC3BD5
Fetched 17.1 kB in 1s (16.7 kB/s)
Reading package lists... Done
Building dependency tree... Done
Reading state information... Done
2 packages can be upgraded. Run 'apt list --upgradable' to see them.
W: An error occurred during the signature verification. The repository is not updated and the previous index files will be used. GPG error: https:// forge.yunohost.org/debian bookworm InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D09F2273DAC3BD5
W: Failed to fetch https:// forge.yunohost.org/debian/dists/bookworm/InRelease  The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 5D09F2273DAC3BD5
W: Some index files failed to download. They have been ignored, or old ones used instead.

domain supprimé
Je me suis rendu compte qu’il trainait un domaine avec une faute de frappe dans la config ‘yunohost domain list’, donc je l’ai supprimé avec ‘yunohost domain remove’

J’ai essayé de me debrouiller avec de l’ia mais à un moment, je tourne en rond, avec toujours ces memes erreurs
Pouvez-vous m’aider ?

Déjà , je crois que le dépôt pour yunohost 12 doit être signé !

Par exemple j’ai ceci

cat /etc/apt/sources.list.d/yunohost.list 
deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] http://forge.yunohost.org/debian/ bookworm stable

Est-ce que tu as une clé dans /usr/share/keyrings/ ?

ls -l /usr/share/keyrings/

Sinon il faudrait tenter

curl --fail --silent https://forge.yunohost.org/yunohost_bookworm.asc | gpg --dearmor > /usr/share/keyrings/yunohost-bookworm.gpg

Ensuite un

yunohost tools apt update

En fait ton sso devait être bon auparavant c’est les paquets yunohost-admin et yunohost-portal qui devraient être réparés… et ssowat qui est un paquet de Yunohost aussi…

Déjà commence par ajouter le dépôt signé…

j’étais en ‘main’ pas ‘stable’, j’ai modifié

Sinon j’ai ça

deb [signed-by=/usr/share/keyrings/yunohost-archive-keyring.gpg] https://forge.yunohost.org/debian bookworm stable

J’ai bien une clé mais elle est à 0 en taille

-rw-r--r-- 1 root root     0 Nov 20 18:18 yunohost-archive-keyring.gpg

Si je fais le curl, j’ai un acces denied meme en sudo

Sutout il te faut avoit la clé gpg signée ensuite je pense qu’il faudra mettre la ligne proposée;

Déjà lance

curl --fail --silent https://forge.yunohost.org/yunohost_bookworm.asc | gpg --dearmor > /usr/share/keyrings/yunohost-bookworm.gpg

ensuite édite le yunhost.list ainsi

deb [signed-by=/usr/share/keyrings/yunohost-bookworm.gpg] https://forge.yunohost.org/debian/ bookworm stable

remplace yunohost-archive-keyring.gpg par yunohost-bookworm.gpg et un update ? Mais il faut la clé avant !!

Je pense il faut se connecter en root et essayer

sudo -i
curl --fail --silent https://forge.yunohost.org/yunohost_bookworm.asc | gpg --dearmor > /usr/share/keyrings/yunohost-bookworm.gpg

Merci, bon, mon pwd root ne marche pas … je l’ai mis à jour via l’interface hebergeur mais le novueau ne marche pas non plus … J’ai ecris au support.
Merci pour ton aide.

Tu n’as pas besoin de connecter en root, tu peux te connecter avec ton user ?
root ne peux pas se connecter en ssh.
Par contre ton user peux passer en root avec sudo -i sans mot de passe ou bien celui de l’user.
la commande curl doit être passée en root

j’etais en déplacement., j’ai fait le sudo -i curl…
Puis un apt-get update et upgrade

J’ai toujours :

AttributeError: 'NoneType' object has no attribute 'get'
dpkg: error processing package yunohost (--configure):
 installed yunohost package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)

J’ai essayé ce que l’ia me propose :

sudo dpkg --configure -a --> erreur
sudo apt-get install --reinstall yunohost ---> erreur
yunohost domain list --> tout semble ok
yunohost tools regen-conf ssowat --force

Erreur :

Info: The operation 'Regenerate system configurations 'ssowat'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241126-212100-regen_conf-ssowat' to get help
Error: Could not regenerate the configuration for category(s):

Le log dit :

args:
  dry_run: false
  force: true
  list_pending: false
  names:
  - ssowat
  with_diff: false
ended_at: 2024-11-26 21:19:26.270535
error: 'Could not regenerate the configuration for category(s): '
interface: cli
operation: regen_conf
parent: null
related_to:
- - configuration
  - ssowat
started_at: 2024-11-26 21:19:26.197852
success: false
yunohost_version: 12.0.7

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

2024-11-26 22:19:26,243: DEBUG - initializing root ldap interface
2024-11-26 22:19:26,268: DEBUG - Formating result in 'export' mode

Puis

sudo yunohost tools regen-conf ldap --force

Info: The operation 'Regenerate system configurations 'ldap'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241126-212654-regen_conf-ldap' to get help
Error: Could not regenerate the configuration for category(s):

le log

args:
  dry_run: false
  force: true
  list_pending: false
  names:
  - ldap
  with_diff: false
ended_at: 2024-11-26 21:26:54.758467
error: 'Could not regenerate the configuration for category(s): '
interface: cli
operation: regen_conf
parent: null
related_to:
- - configuration
  - ldap
started_at: 2024-11-26 21:26:54.688939
success: false
yunohost_version: 12.0.7

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

2024-11-26 22:26:54,738: DEBUG - initializing root ldap interface
2024-11-26 22:26:54,757: DEBUG - Formating result in 'export' mode

Donc j’ai fait : sudo journalctl -u slapd

puis sudo yunohost tools regen-conf ssowat --force
mais toujours :

Completed. Please share the full log of this operation using the command 'yunohost log share 20241126-213017-regen_conf-ssowat' to get help
Error: Could not regenerate the configuration for category(s):
sudo apt-get install --reinstall yunohost 
0 upgraded, 0 newly installed, 1 reinstalled, 0 to remove and 40 not upgraded.
1 not fully installed or removed.
After this operation, 0 B of additional disk space will be used.
E: Internal Error, No file name for yunohost:amd64

j’ai essayé sudo yunohost tools regen-conf --force

Success! Configuration updated for 'dovecot'
Success! Configuration updated for 'dnsmasq'
Warning: setfacl: /etc/ssowat: No such file or directory
Error: Could not run script: /usr/share/yunohost/hooks/conf_regen/01-yunohost
dnsmasq:
  applied:
    /etc/resolv.dnsmasq.conf:
      status: updated
  pending:
dovecot:
  applied:
    /etc/dovecot/dovecot.conf:
      status: updated
  pending:

puis :

greg@yuno:/$ sudo yunohost tools repair
usage: yunohost tools
                      {rootpw,maindomain,postinstall,update,upgrade,shell,basic-space-cleanup,shutdown,reboot,regen-conf,versions,migrations}
                      ...
                      [-h]
yunohost tools: error: argument {rootpw,maindomain,postinstall,update,upgrade,shell,basic-space-cleanup,shutdown,reboot,regen-conf,versions,migrations}: invalid choice: 'repair' (choose from 'rootpw', 'maindomain', 'postinstall', 'update', 'upgrade', 'shell', 'basic-space-cleanup', 'shutdown', 'reboot', 'regen-conf', 'versions', 'migrations')

Ensuite, ça tourne en rond, coté IA jusqu’à ce qu’elle me propose de faire :

sudo wget https://forge.yunohost.org/debian/pool/stable/m/moulinette/moulinette_12.0.3_all.deb
sudo wget https://forge.yunohost.org/debian/pool/stable/s/ssowat/ssowat_12.0.3_all.deb

puis
greg@yuno:/$ sudo dpkg -i moulinette_12.0.3_all.deb ssowat_12.0.3_all.deb
(Reading database … 68055 files and directories currently installed.)
Preparing to unpack moulinette_12.0.3_all.deb …
Unpacking moulinette (12.0.3) over (12.0.3) …
Preparing to unpack ssowat_12.0.3_all.deb …
Unpacking ssowat (12.0.3) over (12.0.3) …
Setting up moulinette (12.0.3) …
Setting up ssowat (12.0.3) …
nginx.service is not active, cannot reload.

puis

greg@yuno:/$ sudo yunohost tools regen-conf ssowat --force
Info: The operation 'Regenerate system configurations 'ssowat'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241126-215134-regen_conf-ssowat' to get help
Error: Could not regenerate the configuration for category(s):
greg@yuno:/$ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.

greg@yuno:/$ sudo yunohost tools regen-conf ssowat --force
Info: The operation 'Regenerate system configurations 'ssowat'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241126-215134-regen_conf-ssowat' to get help
Error: Could not regenerate the configuration for category(s):
greg@yuno:/$ sudo systemctl restart nginx
Job for nginx.service failed because the control process exited with error code.
See "systemctl status nginx.service" and "journalctl -xeu nginx.service" for details.
greg@yuno:/$ ^C
greg@yuno:/$ yunohost log share 20241126-215134-regen_conf-ssowat
Error: yunohost command must be run as root or with sudo.
greg@yuno:/$ sudo yunohost log share 20241126-215134-regen_conf-ssowat

et je retourne en rond :

args:
  dry_run: false
  force: true
  list_pending: false
  names:
  - ssowat
  with_diff: false
ended_at: 2024-11-26 21:51:34.264351
error: 'Could not regenerate the configuration for category(s): '
interface: cli
operation: regen_conf
parent: null
related_to:
- - configuration
  - ssowat
started_at: 2024-11-26 21:51:34.188376
success: false
yunohost_version: 12.0.7

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

2024-11-26 22:51:34,240: DEBUG - initializing root ldap interface
2024-11-26 22:51:34,263: DEBUG - Formating result in 'export' mode
greg@yuno:/$ sudo nginx -t
2024/11/26 22:54:55 [info] 6446#6446: Using 116KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
2024/11/26 22:54:55 [info] 6446#6446: Using 131072KiB of shared memory for nchan in /etc/nginx/nginx.conf:61
nginx: the configuration file /etc/nginx/nginx.conf syntax is ok
nginx: configuration file /etc/nginx/nginx.conf test is successful

j’ai ensuite configuré ce fichier qui etait vide sudo nano /etc/ssowat/conf.json

puis

sudo chown -R root:root /etc/ssowat
sudo chmod 755 /etc/ssowat

puis

sudo yunohost tools regen-conf ssowat --force

et je retourne en rond

Info: The operation 'Regenerate system configurations 'ssowat'' could not be completed. Please share the full log of this operation using the command 'yunohost log share 20241126-221811-regen_conf-ssowat' to get help
Error: Could not regenerate the configuration for category(s):

et nginx toujours en rideau

greg@yuno:/$ systemctl status nginx.service
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enable>
     Active: failed (Result: exit-code) since Tue 2024-11-26 23:18:46 CET; 56s >
       Docs: man:nginx(8)
    Process: 7306 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_proce>
        CPU: 7ms
lines 1-6/6 (END)...skipping...
× nginx.service - A high performance web server and a reverse proxy server
     Loaded: loaded (/lib/systemd/system/nginx.service; enabled; preset: enabled)
     Active: failed (Result: exit-code) since Tue 2024-11-26 23:18:46 CET; 56s ago
       Docs: man:nginx(8)
    Process: 7306 ExecStartPre=/usr/sbin/nginx -t -q -g daemon on; master_process on; (code=exited, status=1/FAILURE)
        CPU: 7ms

en fait nginx planté et les fichiers de conf sont vides :
/etc/nginx/fastcgi_params
/etc/nginx/mime.types
/etc/nginx/conf.d

les directives more_set_headers dans /etc/nginx/conf.d/security.conf.inc avaient des espaces avant “:” mais toujours rien

mon /etc/ssowat/conf.json etait quasi vide, c’est corrigé, je viens reussir à remettre nginx en route. j’ai maintenant accès à yunohost/admin mais la liste des app est vide et les url app ne marche pas ni l’url d’accès aux app qui est en 403

Sur l’interface graphique si je tente une màj j’ai cette erreur :

**Erreur**: `"400" `

**Action**: `"PUT" /yunohost/api/upgrade/system`

**Message d'erreur :**

Vous ne pouvez pas faire ça maintenant car dpkg/apt (le gestionnaire de paquets du système) semble avoir laissé des choses non configurées… Vous pouvez essayer de résoudre ce problème en vous connectant via SSH et en exécutant `sudo apt install --fix-broken` et/ou `sudo dpkg --configure -a` et/ou `sudo dpkg --audit`.

et en ligne de commande j’ai toujours :

dpkg: error processing package yunohost (--configure):
 installed yunohost package post-installation script subprocess returned error exit status 1
Errors were encountered while processing:
 yunohost
E: Sub-process /usr/bin/dpkg returned an error code (1)
greg@yuno:/$ sudo yunohost --version
yunohost:
  repo: stable
  version: 12.0.7
yunohost-admin:
  repo: stable
  version: 11.3.0
yunohost-portal:
  repo: ?
  version: ?
moulinette:
  repo: stable
  version: 12.0.3
ssowat:
  repo: stable
  version: 12.0.3

li y a du mieux sauf pour dpkg

Bon, pour résumer et après des tas de tests, j’ai réinstallé debian + yunohost.
La restauration s’est plutot mal passée … certaines app passent, d’autres non …