Wrong version after upgrade nextcloud success

Mon serveur YunoHost

Matériel: VPS acheté en ligne / Vieil ordinateur / Raspberry Pi à la maison / Brique Internet avec VPN / Autre carte ARM / …
Version de YunoHost: x.x.x
J’ai accès à mon serveur : En SSH | Par la webadmin | En direct avec un clavier/écran | …
Êtes-vous dans un contexte particulier ou avez-vous effectué des modificiations particulières sur votre instance ? : non

Description du problème

Bonjour,
hier après une mise à jour d’un serveur yunohost et de Nextcloud, La mise à jour semble bien effectuée, mais pas prise en compte par yunohost…

Si j’effectue un yunohost tools upgrade je vois toujours l’application comme étant à mettre à jour (dans la webmin aussi) comme si elle était en 25.0.2~ynh1, alors qu’elle est en version 25.0.4

yunohost app info nextcloud
description: Online storage, file sharing platform and various other applications
domain_path: nuage.mainsdoeuvres.org/
name: Nuage Nextcloud
version: 25.0.2~ynh1

Pourtant l’opération a bien mis à jour (dans Nextcloud je suis en 25.0.4)

yunohost log show 20230314-230146-app_upgrade-nextcloud
description: Upgrade the 'nextcloud' app
log_path: /var/log/yunohost/categories/operation/20230314-230146-app_upgrade-nextcloud.log
logs: 
  - 2023-03-15 00:49:22,178: DEBUG - + args_array=(['f']='file=' ['u']='update_only')
  - 2023-03-15 00:49:22,178: DEBUG - + local -A args_array
  - 2023-03-15 00:49:22,178: DEBUG - + local file
  - 2023-03-15 00:49:22,178: DEBUG - + local update_only
  - 2023-03-15 00:49:22,179: DEBUG - + update_only=0
  - 2023-03-15 00:49:22,179: DEBUG - + ynh_handle_getopts_args --file=/etc/cron.d/nextcloud
  - 2023-03-15 00:49:22,179: DEBUG - + set +o xtrace
  - 2023-03-15 00:49:22,201: DEBUG - + local checksum_setting_name=checksum__etc_cron.d_nextcloud
  - 2023-03-15 00:49:22,201: DEBUG - + '[' 0 -eq 1 ']'
  - 2023-03-15 00:49:22,202: DEBUG - ++ md5sum /etc/cron.d/nextcloud
  - 2023-03-15 00:49:22,202: DEBUG - ++ cut '--delimiter= ' --fields=1
  - 2023-03-15 00:49:22,205: DEBUG - + ynh_app_setting_set --app=nextcloud --key=checksum__etc_cron.d_nextcloud --value=e4b55a26daf59e5f3e6457133b935499
  - 2023-03-15 00:49:22,205: DEBUG - + local _globalapp=nextcloud
  - 2023-03-15 00:49:22,205: DEBUG - + local legacy_args=akv
  - 2023-03-15 00:49:22,206: DEBUG - + args_array=(['a']='app=' ['k']='key=' ['v']='value=')
  - 2023-03-15 00:49:22,206: DEBUG - + local -A args_array
  - 2023-03-15 00:49:22,206: DEBUG - + local app
  - 2023-03-15 00:49:22,206: DEBUG - + local key
  - 2023-03-15 00:49:22,206: DEBUG - + local value
  - 2023-03-15 00:49:22,207: DEBUG - + ynh_handle_getopts_args --app=nextcloud --key=checksum__etc_cron.d_nextcloud --value=e4b55a26daf59e5f3e6457133b935499
  - 2023-03-15 00:49:22,207: DEBUG - + set +o xtrace
  - 2023-03-15 00:49:22,294: DEBUG - + app=nextcloud
  - 2023-03-15 00:49:22,295: DEBUG - + [[ checksum__etc_cron.d_nextcloud =~ (unprotected|protected|skipped)_ ]]
  - 2023-03-15 00:49:22,295: DEBUG - + ynh_app_setting set nextcloud checksum__etc_cron.d_nextcloud e4b55a26daf59e5f3e6457133b935499
  - 2023-03-15 00:49:22,295: DEBUG - + set +o xtrace
  - 2023-03-15 00:49:22,372: DEBUG - + '[' 0 -eq 1 ']'
  - 2023-03-15 00:49:22,373: DEBUG - + '[' -n '' ']'
  - 2023-03-15 00:49:22,373: DEBUG - + unset backup_file_checksum
  - 2023-03-15 00:49:22,373: DEBUG - + chown root: /etc/cron.d/nextcloud
  - 2023-03-15 00:49:22,375: DEBUG - + chmod 644 /etc/cron.d/nextcloud
  - 2023-03-15 00:49:22,508: DEBUG - + exec_occ background:cron
  - 2023-03-15 00:49:22,509: DEBUG - + '[' 25 = last ']'
  - 2023-03-15 00:49:22,509: DEBUG - + '[' 25 -ge 24 ']'
  - 2023-03-15 00:49:22,509: DEBUG - + NEXTCLOUD_PHP_VERSION=8.1
  - 2023-03-15 00:49:22,509: DEBUG - + cd /var/www/nextcloud
  - 2023-03-15 00:49:22,510: DEBUG - + ynh_exec_as nextcloud php8.1 --define apc.enable_cli=1 occ --no-interaction --no-ansi background:cron
  - 2023-03-15 00:49:22,510: DEBUG - + local user=nextcloud
  - 2023-03-15 00:49:22,510: DEBUG - + shift 1
  - 2023-03-15 00:49:22,511: DEBUG - ++ whoami
  - 2023-03-15 00:49:22,513: DEBUG - + [[ nextcloud = root ]]
  - 2023-03-15 00:49:22,513: DEBUG - + sudo -u nextcloud php8.1 --define apc.enable_cli=1 occ --no-interaction --no-ansi background:cron
  - 2023-03-15 00:49:23,048: DEBUG - Set mode for background jobs to 'cron'
  - 2023-03-15 00:49:23,071: DEBUG - + chown -R nextcloud:www-data /var/www/nextcloud
  - 2023-03-15 00:49:23,439: DEBUG - + chown -R nextcloud: /home/yunohost.app/nextcloud/data
  - 2023-03-15 00:50:26,777: DEBUG - + find /var/www/nextcloud/ -type f -print0
  - 2023-03-15 00:50:26,778: DEBUG - + xargs -0 chmod 0644
  - 2023-03-15 00:50:27,267: DEBUG - + find /var/www/nextcloud/ -type d -print0
  - 2023-03-15 00:50:27,267: DEBUG - + xargs -0 chmod 0755
  - 2023-03-15 00:50:27,446: DEBUG - + find /home/yunohost.app/nextcloud/data/ -type f -print0
  - 2023-03-15 00:50:27,447: DEBUG - + xargs -0 chmod 0640
metadata: 
  env: 
    NO_BACKUP_UPGRADE: 0
    YNH_APP_ACTION: upgrade
    YNH_APP_BASEDIR: /var/cache/yunohost/app_tmp_work_dirs/app_x0d32ac3
    YNH_APP_CURRENT_VERSION: 25.0.2~ynh1
    YNH_APP_ID: nextcloud
    YNH_APP_INSTANCE_NAME: nextcloud
    YNH_APP_INSTANCE_NUMBER: 1
    YNH_APP_MANIFEST_VERSION: 25.0.4~ynh1
    YNH_APP_PACKAGING_FORMAT: 1.0
    YNH_APP_UPGRADE_TYPE: UPGRADE_APP
    YNH_ARCH: amd64
    YNH_DEBIAN_VERSION: bullseye
  interface: cli
  operation: app_upgrade
  parent: None
  related_to: 
    - app
    - nextcloud
  started_at: 2023-03-15 00:01:46
  yunohost_version: 11.1.15
metadata_path: /var/log/yunohost/categories/operation/20230314-230146-app_upgrade-nextcloud.yml
name: 20230314-230146-app_upgrade-nextcloud

Mais dans les settings

cat /etc/yunohost/apps/nextcloud/manifest.json 
{
    "id": "nextcloud",
    "name": "Nextcloud",
    "packaging_format": 1,
    "description": {
        "en": "Online storage, file sharing platform and various other applications",
        "fr": "Stockage en ligne, plateforme de partage de fichiers et diverses autres applications"
    },
    "version": "25.0.2~ynh1",
    "url": "https://nextcloud.com",
    "upstream": {
        "license": "AGPL-3.0",
        "website": "https://nextcloud.com",
        "demo": "https://demo.nextcloud.com/",
        "admindoc": "https://docs.nextcloud.com/server/stable/admin_manual/",
        "userdoc": "https://docs.nextcloud.com/server/latest/user_manual/en/",
        "code": "https://github.com/nextcloud/server",
        "cpe": "cpe:2.3:a:nextcloud:nextcloud"
    },
    "license": "AGPL-3.0",
    "maintainer": {
        "name": "kay0u",
        "email": "pierre@kayou.io"
    },
    "requirements": {
        "yunohost": ">= 11.0.9"
    },
    "multi_instance": true,
    "services": [
        "nginx",
        "php8.0-fpm",
        "mysql"
    ],
    "arguments": {
        "install": [
            {
                "name": "domain",
                "type": "domain"
            },
            {
                "name": "path",
                "type": "path",
                "example": "/nextcloud",
                "default": "/nextcloud"
            },
            {
                "name": "admin",
                "type": "user"
            },
            {
                "name": "is_public",
                "type": "boolean",
                "help": {
                    "en": "If enabled, Nextcloud will be accessible by Nextcloud Desktop and by users without a YunoHost account. This can be changed later in the webadmin.",
                    "fr": "Si cette case est cochée, Nextcloud sera accessible par Nextcloud Desktop et par les utilisateurs n’ayant pas de compte YunoHost. Vous pourrez changer dans la webadmin."
                },
                "default": true
            },
            {
                "name": "user_home",
                "type": "boolean",
                "ask": {
                    "en": "Access the users home folder from Nextcloud?",
                    "fr": "Accéder au dossier personnel des utilisateurs depuis Nextcloud ?"
                },
                "default": false
            }
        ]
    }
}

et ici

cat /etc/yunohost/apps/nextcloud/settings.yml 
admin: useryunoadmin
apt_dependencies: imagemagick,, libmagickcore-6.q16-6-extra,, acl,, tar,, smbclient,,
  at, php7.3-bz2, php7.3-imap, php7.3-gmp, php7.3-gd, php7.3-json, php7.3-intl, php7.3-curl,
  php7.3-apcu, php7.3-redis, php7.3-ldap, php7.3-imagick, php7.3-zip, php7.3-mbstring,
  php7.3-xml, php7.3-mysql, php7.3-igbinary, php7.3-bcmath
backup_core_only: '1'
checksum__etc_cron.d_nextcloud: e4b55a26daf59e5f3e6457133b935499
checksum__etc_fail2ban_filter.d_nextcloud.conf: 6f17123832efe377a229ead060dc0764
checksum__etc_fail2ban_jail.d_nextcloud.conf: ca3661d25669df24abad48db3d4b5bc5
checksum__etc_nginx_conf.d_nextcloud.domain.tld.d_nextcloud.conf: a9ce75121d2b631c1a6d0ab829ad3b79
checksum__etc_php_7.4_fpm_pool.d_nextcloud.conf: b8402327841f88331bcc805e52e24950
checksum__etc_php_8.0_fpm_pool.d_nextcloud.conf: 6e591824f6a3b2524e01a63781a9e451
checksum__etc_php_8.1_fpm_pool.d_nextcloud.conf: 3258a7d7134700f55087fae2c2f9e1c0
checksum__var_www_nextcloud_config.json: 7372dcc4d0ca69ea5c9e3db4644c7c29
checksum__var_www_nextcloud_config_config.php: ed950f614c4d7d5980391477c37f3ad0
checksum__var_www_nextcloud_config_install.json: 07943a6d3733c38af2ca406563353714
current_revision: 2741a052b3891e9f8097311717341831b5a588ab
datadir: /home/yunohost.app/nextcloud
db_name: nextcloud
domain: nextcloud.domain.tld
final_path: /var/www/nextcloud
fpm_config_dir: /etc/php/8.1/fpm
fpm_dedicated_service: '0'
fpm_footprint: medium
fpm_free_footprint: '0'
fpm_service: php8.1-fpm
fpm_usage: high
id: nextcloud
install_time: 1636550286
maintenance_mode: '0'
mysqlpwd: XXXXXXXXXXXXXXXXX
path: /
phpversion: '8.1'
update_time: 1673265398
user_home: '0'

Bon ce soir j’ai effectué un yunohost app upgrade nextcloud -F et tout est rentré dans l’ordre…

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