Après migration vers 11, soucis avec la horde

Mon serveur YunoHost

Matériel: Olimex Lime 2 derrière une freebox
Version de YunoHost: 11.0.9.9 (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

Depuis la migration vers yunohost 11, j’ai ce message d’erreur dans le diagnostic

[ERROR] An issue was found for app Horde CRUST

  • This app’s installed version only requires yunohost >= 2.x, which tends to indicate that it’s not up to date with recommended packaging practices and helpers. You should really consider upgrading it.

J’en conclus qu’il faut mettre à jour l’application, par contre, elle n’est pas proposée dans les update / upgrade même si sur le git de yunohost une activité semble exister pour la branche master

Des idées ??

D’avance merci

(ici c’est un serveur de bricolage, mais j’ai un VPS qui abrite mes mails (encore en yunohost 4) et qui sera sans doute dans la même situation car proposant ce même webmail, donc je préfère attendre avant de le migrer d’avoir régler ce soucis)

Est-ce que tu te souviens de comment tu as installé Horde à la base ? Peut-être que tu avais fait genre un git clone manuel etc…

Il me semble qu’on peut avoir l’info avec yunohost app info horde --full | grep remote -A5 (pas 100% de la syntaxe de la commande)

Note que je réalise que le message est partiellement incorrect (This app’s installed version only requires yunohost >= 2.x … le requirement est sans doute à 3.x en fait, check qui a été rajouté après le passage à Bullseye)

Bonjour et merci pour la réponse
Oui je m’en rappelle très bien : installation traditionnelle depuis la logithèque :wink:
Aucunement depuis le git

yunohost app info horde --full | grep remote -A5

Ne retourne rien :wink:

Je mets le retour complet de la commande du coup :wink:

sudo yunohost app info horde --full 
description: A groupware (webmail, adressbook, calendar) that uses PHP
domain_path: XXXXXX
from_catalog: 
  antifeatures: 
  category: communication
  featured: False
  git: 
    branch: master
    revision: 4152be6f5b2ef77b63634284a6f922667eaea347
    url: https://github.com/YunoHost-Apps/horde_ynh
  high_quality: False
  id: horde
  lastUpdate: 1647205143
  level: 6
  maintained: True
  manifest: 
    arguments: 
      install: 
        0: 
          name: domain
          type: domain
        1: 
          default: /horde
          example: /horde
          name: path
          type: path
        2: 
          default: False
          name: is_public
          type: boolean
        3: 
          ask: 
            en: Choose the application language
            fr: Choisissez la langue de l'application
          choices: 
            - bg
            - de
            - en
            - es
            - fi
            - fo
            - fr
            - hr
            - hu
            - id
            - is
            - it
            - lt
            - lv
            - mg
            - mk
            - mt
            - nl
            - pl
            - pt
            - ro
            - ru
            - sk
            - so
            - th
            - tr
            - uz
          default: en
          name: language
          type: string
        4: 
          ask: 
            en: Choose an admin user
            fr: Choisissez l’administrateur
          example: johndoe
          name: admin
          type: user
        5: 
          ask: 
            en: Would you like to enable the caldDav/cardDAV service autodiscovery?
            fr: Voulez-vous activer l'autodécouverte des services calDAV/cardDAV?
          default: False
          name: service_autodiscovery
          type: boolean
        6: 
          ask: 
            en: Install a ticket-tracking system (Whups)?
          default: False
          name: whups_install
          type: boolean
        7: 
          ask: 
            en: Install a Inventory Manager (Sesha)?
          default: False
          name: sesha_install
          type: boolean
        8: 
          ask: 
            en: Install a full featured photo management (Ansel)?
          default: False
          name: ansel_install
          type: boolean
        9: 
          ask: 
            en: Install a Wiki (Wicked)?
          default: False
          name: wicked_install
          type: boolean
    description: 
      en: A groupware (webmail, adressbook, calendar) that uses PHP
      fr: Un groupware (webmail, carnet adresses, agenda), utilisant PHP.
    id: horde
    license: LGPL-2.0
    maintainer: 
      email: josue@tille.ch
      name: Josué Tille
    multi_instance: True
    name: Horde
    packaging_format: 1
    requirements: 
      yunohost: >= 4.3.0
    services: 
      - nginx
      - php7.3-fpm
      - mysql
    upstream: 
      admindoc: https://wiki.horde.org
      code: https://github.com/horde
      demo: http://demo.horde.org
      license: LGPL-2.0
      website: https://www.horde.org
    url: https://www.horde.org/
    version: 5.2.22~ynh4
  repository: default
  state: working
  subtags: email
is_default: False
is_webapp: True
label: Horde XXXXX
manifest: 
  arguments: 
    install: 
      0: 
        ask: Choose the domain where this app should be installed
        name: domain
        type: domain
      1: 
        ask: Choose the URL path (after the domain) where this app should be installed
        default: /horde
        example: /horde
        name: path
        type: path
      2: 
        ask: Choose an administrator user for this app
        name: admin
        type: user
      3: 
        ask: Should this app be exposed to anonymous visitors?
        default: False
        name: is_public
        type: boolean
      4: 
        ask: 
          en: Would you like to enable the caldDav/cardDAV service autodiscovery?
          fr: Voulez-vous activer l'autodécouverte des services calDAV/cardDAV?
        default: False
        name: service_autodiscovery
        type: boolean
      5: 
        ask: 
          en: Choose the application language
          fr: Choisissez la langue de l'application
        choices: 
          - bg
          - de
          - en
          - es
          - fi
          - fo
          - fr
          - hr
          - hu
          - id
          - is
          - it
          - lt
          - lv
          - mg
          - mk
          - mt
          - nl
          - pl
          - pt
          - ro
          - ru
          - sk
          - so
          - th
          - tr
          - uz
        default: en
        name: language
      6: 
        ask: 
          en: Install a ticket-tracking system (Whups)?
        default: False
        name: whups_install
        type: boolean
      7: 
        ask: 
          en: Install a Inventory Manager (Sesha)?
        default: False
        name: sesha_install
        type: boolean
      8: 
        ask: 
          en: Install a full featured photo management (Ansel)?
        default: False
        name: ansel_install
        type: boolean
      9: 
        ask: 
          en: Install a Wiki (Wicked)?
        default: False
        name: wicked_install
        type: boolean
  description: 
    en: A groupware (webmail, adressbook, calendar) that uses PHP
    fr: Un groupware (webmail, carnet adresses, agenda), utilisant PHP.
  id: horde
  license: LGPL-2.0
  maintainer: 
    email: josue@tille.ch
    name: Josué Tille
  multi_instance: True
  name: Horde
  packaging_format: 1
  requirements: 
    yunohost: >= 3.5.2.2
  services: 
    - nginx
    - php7.3-fpm
    - mysql
  url: https://www.horde.org/
  version: 5.2.22~ynh4
name: Horde XXXX
permissions: 
  horde.main: 
    additional_urls: 
    allowed: 
      - visitors
      - all_users
    auth_header: True
    corresponding_users: XXXXX
    label: Horde XXXXX
    protected: False
    show_tile: True
    url: XXXXXXXXX/horde
setting_path: /etc/yunohost/apps/horde
settings: 
  admin: XXXXX
  ansel_install: 0
  apt_dependencies: php-pear, expect, php7.3-imagick | php-imagick, php7.3-tidy | php-tidy, php-bcmath
  checksum__var_www_horde_horde_config_conf.php: e080ec087d2b66307757cef824bdfe6f
  checksum__var_www_horde_horde_config_registry.local.php: 90d11eff670935b043e3db54ecfb5b22
  checksum__var_www_horde_horde_gollem_config_backends.local.php: 426268541bbe15db653f7dac68f38377
  checksum__var_www_horde_horde_imp_config_conf.php: 6ccad47b4f9ec6c316524f6692d7ea15
  checksum__var_www_horde_horde_ingo_config_backends.local.php: 09ef5cc0cb061f86e22664b0ded59d87
  current_revision: 88e078661c230a9fe694624367b4b152950ae894
  db_name: horde
  db_user: horde
  domain: XXXXXXXXX
  final_path: /var/www/horde
  fpm_config_dir: /etc/php/7.4/fpm
  fpm_dedicated_service: 0
  fpm_service: php7.4-fpm
  id: horde
  install_time: 1609000871
  is_public: 1
  language: fr
  mysqlpwd: XXXXXXXXXXXXXXXX
  path: /horde
  phpversion: 7.4
  secret_key: XXXXXXXXXXXXXXX
  service_autodiscovery: 0
  sesha_install: 0
  whups_install: 0
  wicked_install: 0
supports_backup_restore: True
supports_change_url: True
supports_config_panel: False
supports_multi_instance: True
upgradable: no
version: 5.2.22~ynh4

Je me permets un up…

Personne n’a d’idée ?

Merci :wink:

Hmoké j’ai trouvé le problème, la version du paquet n’avait pas changé depuis 4 ans dans le manifest (bon je ne sais pas si la version de horde fournie a vraiment changé ou quoi d’autre a changé dans le paquet, mais à minima lorsque le paquet évolue significativement on augmente le suffixe ~ynh[nombre] à la fin de la version

C’est corrigé dans Bumping version in manifest ... it didnt get bump for 4 years é_è · YunoHost-Apps/horde_ynh@8ca8084 · GitHub

Le catalogue d’app est reconstruit toutes les ~4h je crois, après quoi si tu check quelles mises à jour sont disponibles, tu devrais voir une maj disponible pour Horde

2 Likes

Un grand merci pour l’interet Aleks

Bon l’application est bien apparue à l’upgrade mais l’upgrade plante

sudo yunohost app upgrade horde
Info: Now upgrading horde…
Info: […] > Loading installation settings…
Info: [+…] > Checking version…
Info: [#+…] > Backing up the app before upgrading (may take a while)…
Info: [##…] > Ensuring downward compatibility…
Info: [##+…] > Making sure dedicated system user exists…
Info: [###+…] > Upgrading NGINX web server configuration…
Info: [####+…] > Upgrading dependencies…
Info: [#####…] > Upgrading PHP-FPM configuration…
Info: [#####+++++…] > Upgrading source files…
Info: [##########+++++…] > Patching application…
Info: [###############++…] > Configuring application…
Info: [#################…] > Protecting directory…
Info: [#################+…] > Upgrading logrotate configuration…
Warning: /usr/share/yunohost/helpers.d/getopts: line 201: args_array[$option_flag]: unbound variable
Warning: [Error] Upgrade failed.
Warning: YunoHost automatically translated some legacy redirections in /etc/ssowat/conf.json.persistent to match the new default application using domain configuration
Warning: YunoHost automatically translated some legacy redirections in /etc/ssowat/conf.json.persistent to match the new default application using domain configuration
Warning: 223068 /usr/share/yunohost/helpers.d/getopts: line 201: args_array[$option_flag]: unbound variable
Warning: 224085 Could not restore horde: An error occured inside the app restore script
Warning: 224250 Here’s an extract of the logs before the crash. It might help debugging the error:
Warning: 277006 The operation ‘Restore ‘horde’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20220826-134839-backup_restore_app-horde’ to get help
Warning: 278016 Nothing was restored
Warning: Uhoh … Yunohost failed to restore the app to the way it was before the failed upgrade :expressionless:
Error: Could not upgrade horde: An error occurred inside the app upgrade script
Info: The operation ‘Upgrade the ‘horde’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20220826-133258-app_upgrade-horde’ to get help
Warning: Here’s an extract of the logs before the crash. It might help debugging the error:
Info: DEBUG - 272886 Removing user horde' ... Info: DEBUG - 272889 Warning: group horde’ has no more members.
Info: DEBUG - 273253 Done.
Info: DEBUG - 273956 [####################] > Removal of horde completed
Info: DEBUG - 274971 To view the log of the operation ‘Remove ‘horde’ after a failed restore from a backup archive’, use the command ‘yunohost log show 20220826-135034-remove_on_failed_restore-horde’
Info: DEBUG - 276350 The permission database has been resynchronized
Info: DEBUG - 276895 SSOwat configuration regenerated
Info: DEBUG - 276950 Permission ‘horde.main’ deleted
Info: DEBUG - 276953 To view the log of the operation ‘Delete permission ‘horde’’, use the command ‘yunohost log show 20220826-135126-permission_delete-horde’
Info: WARNING - 277006 The operation ‘Restore ‘horde’ from a backup archive’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20220826-134839-backup_restore_app-horde’ to get help
Info: DEBUG - 277392 The permission database has been resynchronized
Info: DEBUG - 277941 SSOwat configuration regenerated
Info: DEBUG - 278014 action [32384.1] executed in 276.288s
Info: WARNING - 278016 Nothing was restored
Info: DEBUG - ++ [[ -d /etc/yunohost/apps/horde ]]
Info: DEBUG - ++ ynh_die ‘–message=Uhoh … Yunohost failed to restore the app to the way it was before the failed upgrade :|’
Info: WARNING - Uhoh … Yunohost failed to restore the app to the way it was before the failed upgrade :expressionless:
Info: DEBUG - ++ echo ‘Uhoh … Yunohost failed to restore the app to the way it was before the failed upgrade :|’
Info: DEBUG - ++ exit 1
Info: ERROR - Could not upgrade horde: An error occurred inside the app upgrade script
Error: The operation ‘Upgrade the ‘horde’ app’ could not be completed. Please share the full log of this operation using the command ‘yunohost log share 20220826-133258-app_upgrade-horde’ to get help

Et le log est disponible ici https://paste.yunohost.org/raw/wesohewura

Et du coup j’ai plus accès au webmail :frowning: , heureusement j’ai un client mail :wink: toujours fonctionnel

Merci d’avance :wink:

Mouarf j’ai creusé et il y avait de nouveau un bug dans le helper logrotate … bref j’ai fait un correctif qui est disponible en version 11.0.9.10

Après ça, la restauration de l’app devrait fonctionner, déso pour le micro bug qui fait tout exploser x_x

2 Likes

Donc il sera dispo dans 4 h, je retenterai , un grand merci :wink: Pas de soucis c’est un serveur de test autohébergé avant de bosser sur mon VPS :wink:

déso pour le micro bug qui fait tout exploser x_x
Aucun problème, ce n’est que le webmail. J’ai claws-mail sur mon portable :wink:

Nonon là c’est déjà dispo (les release de yunohost “core” c’est pas le même process que les release d’apps)

Super !!!
Un update system puis de la horde et tout est de nouveau fonctionnel
J’ai relancé le diagnostique et plus de message d’erreur
Un super grand merci à toi
:slightly_smiling_face: :slightly_smiling_face: :slightly_smiling_face:

1 Like

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