Demande #35772
Mise a jour vers 25.0.9 de nextcloud en erreur sur EOLE 2.8.1
0%
Description
La mise à jour et le reconfigure vont jusqu'au bout avec aucune erreur apparente.
Par contre impossible de se logger sur nextcloud. On me dit de faire l'upgrade à la main.
En réalité il y a un message "Impossible de reconstruire les sources nécessaires à la mise à jour" en blanc sans avertissement visible.
Faudrait pas au minimum le mettre à rouge ?
Voire arrêter complètement reconfigure ? Ca sert a quoi d'avoir un nextcloud installé mais non fonctionnel ?
Si je rajouter un "set -x" dans le script on peut voir :
+ '[' -f /var/www/html/nextcloud/version.php ']' ++ grep OC_VersionString /var/www/html/nextcloud/version.php ++ awk -F \' '{print $2}' + nextcloud_version=25.0.13 + [[ 25.0.13 != \2\5\.\0\.\9 ]] + reconstruct_sources 25.0.13 + local start=25.0.13 + local last_step + local steps + local base + local target ++ seq 0 13 + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=25.0.9 + previous_version=24.0.1 + [[ 24.0.1 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-25.0.9-to-nextcloud-24.0.1.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=24.0.1 + previous_version=23.0.5 + [[ 23.0.5 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-24.0.1-to-nextcloud-23.0.5.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=23.0.5 + previous_version=22.2.8 + [[ 22.2.8 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-23.0.5-to-nextcloud-22.2.8.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=22.2.8 + previous_version=21.0.9 + [[ 21.0.9 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-22.2.8-to-nextcloud-21.0.9.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=21.0.9 + previous_version=20.0.14 + [[ 20.0.14 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-21.0.9-to-nextcloud-20.0.14.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=20.0.14 + previous_version=19.0.1 + [[ 19.0.1 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-20.0.14-to-nextcloud-19.0.1.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=19.0.1 + previous_version=18.0.4 + [[ 18.0.4 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-19.0.1-to-nextcloud-18.0.4.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=18.0.4 + previous_version=17.0.5 + [[ 17.0.5 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-18.0.4-to-nextcloud-17.0.5.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=17.0.5 + previous_version=16.0.9 + [[ 16.0.9 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-17.0.5-to-nextcloud-16.0.9.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=16.0.9 + previous_version=15.0.14 + [[ 15.0.14 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-16.0.9-to-nextcloud-15.0.14.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=15.0.14 + previous_version=14.0.3 + [[ 14.0.3 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-15.0.14-to-nextcloud-14.0.3.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=14.0.3 + previous_version=13.0.6 + [[ 13.0.6 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-14.0.3-to-nextcloud-13.0.6.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=13.0.6 + previous_version=12.0.3 + [[ 12.0.3 = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-13.0.6-to-nextcloud-12.0.3.patch + for step in $(seq 0 $VERSIONS_MAX_INDEX) + current_version=12.0.3 + previous_version= + [[ '' = \2\5\.\0\.\1\3 ]] + steps[$step]=/var/www/nextcloud/nextcloud-12.0.3-to-nextcloud-.patch + ls /var/www/nextcloud/nextcloud-25.0.9-to-nextcloud-24.0.1.patch /var/www/nextcloud/nextcloud-24.0.1-to-nextcloud-23.0.5.patch /var/www/nextcloud/nextcloud-23.0.5-to-nextcloud-22.2.8.patch /var/www/nextcloud/nextcloud-22.2.8-to-nextcloud-21.0.9.patch /var/www/nextcloud/nextcloud-21.0.9-to-nextcloud-20.0.14.patch /var/www/nextcloud/nextcloud-20.0.14-to-nextcloud-19.0.1.patch /var/www/nextcloud/nextcloud-19.0.1-to-nextcloud-18.0.4.patch /var/www/nextcloud/nextcloud-18.0.4-to-nextcloud-17.0.5.patch /var/www/nextcloud/nextcloud-17.0.5-to-nextcloud-16.0.9.patch /var/www/nextcloud/nextcloud-16.0.9-to-nextcloud-15.0.14.patch /var/www/nextcloud/nextcloud-15.0.14-to-nextcloud-14.0.3.patch /var/www/nextcloud/nextcloud-14.0.3-to-nextcloud-13.0.6.patch /var/www/nextcloud/nextcloud-13.0.6-to-nextcloud-12.0.3.patch /var/www/nextcloud/nextcloud-12.0.3-to-nextcloud-.patch + ls_result=2 + [[ -z '' ]] + echo 'Impossible de reconstruire les sources nécessaires à la mise à jour' Impossible de reconstruire les sources nécessaires à la mise à jour + exit 1 run-parts: executing /usr/share/eole/postservice/95-envole-themes reconfigure >> EAD >> eoleSSO
Dans la liste de fichier recherché on trouve des noms fantaisistes :
- /var/www/nextcloud/nextcloud-14.0.3-to-nextcloud-13.0.6.patch
- /var/www/nextcloud/nextcloud-13.0.6-to-nextcloud-12.0.3.patch
- /var/www/nextcloud/nextcloud-12.0.3-to-nextcloud-.patch
- ...
Ces fichiers n'existant pas, le processus bloque.
Si je retire le test, la procédure va jusqu'au bout et l'upgrade se fait.
Historique
#1 Mis à jour par Benjamin Bohard il y a 2 mois
Le premier problème semble être lié à la version courante de nextcloud qui est la 25.0.13. La procédure n’est pas prévu pour aller au-delà de la version 25.0.9 et le cas d’une version supérieure n’est pas géré comme il faut.