YunoHost-Apps / nextcloud_ynh

Nextcloud package for YunoHost
https://nextcloud.com/
GNU Affero General Public License v3.0
147 stars 62 forks source link

Update from 15.0.12~ynh1 to 15.0.13~ynh1failed #250

Closed klorydryk closed 4 years ago

klorydryk commented 4 years ago

I don't know what part of the log is interesting, I don't find any usefull information :x

2020-01-02 12:51:50,809: DEBUG - 72436 + ynh_script_progression '--message=Restoration completed for nextcloud' --last 2020-01-02 12:51:50,810: DEBUG - 72436 + set +x 2020-01-02 12:51:50,810: DEBUG - 72436 + set +x 2020-01-02 12:51:50,810: DEBUG - 72437 + echo '! Helper used in legacy mode !' 2020-01-02 12:51:50,811: DEBUG - 72437 + set +x 2020-01-02 12:51:50,811: DEBUG - 72437 + echo '[####################] > Restoration completed for nextcloud' 2020-01-02 12:51:50,812: DEBUG - 72438 + set -x 2020-01-02 12:51:50,812: DEBUG - 72438 + ynh_exit_properly 2020-01-02 12:51:50,812: DEBUG - 72439 + local exit_code=0 2020-01-02 12:51:50,813: DEBUG - 72439 + '[' 0 -eq 0 ']' 2020-01-02 12:51:50,813: DEBUG - 72439 + exit 0 2020-01-02 12:51:50,914: DEBUG - 72501 Pour voir le journal historisé de cette opération 'Restaurer 'nextcloud' depuis une sauvegarde', utilisez la commande 'yunohost log display 20200102-115105-backup_restore_app-nextcloud' 2020-01-02 12:51:51,816: DEBUG - La configuration de SSOwat a été générée 2020-01-02 12:51:51,916: DEBUG - 73484 Restauration terminée 2020-01-02 12:51:51,917: WARNING - The app was restored to the way it was before the failed upgrade. 2020-01-02 12:51:51,918: DEBUG - 73485 action [27436.1] executed in 73.144s 2020-01-02 12:51:51,918: DEBUG - apps: 2020-01-02 12:51:51,918: DEBUG - nextcloud: Success 2020-01-02 12:51:51,919: DEBUG - system: 2020-01-02 12:51:51,919: DEBUG - + ynh_die '--message=The app was restored to the way it was before the failed upgrade.'

maniackcrudelis commented 4 years ago

Not that part. Here that's only the end of the restoration, long after the error. You should find the log into your admin panel, in Tools, Logs.

klorydryk commented 4 years ago

yes, it is where I found it, but it is veeeery long. And I don't find the line of the error...

maniackcrudelis commented 4 years ago

You can share the log by clicking "Share with YunoPaste" on the upper right of the interface.

klorydryk commented 4 years ago

Ok, let's do it: https://paste.yunohost.org/raw/rixoqigupa

maniackcrudelis commented 4 years ago

2020-01-02 12:50:09,157: DEBUG - This ** of Nextcloud is not compatible with > PHP 7.3.
You are currently running 7.4.1.+ ynh_exit_properly

maniackcrudelis commented 4 years ago

You probably have installed an app that does not handle php correctly... Do you have some apps that are not Official or High quality ?

klorydryk commented 4 years ago

I only see "I hate money" not in the "decent quality apps"

maniackcrudelis commented 4 years ago

I'm not talking about "not decent quality". We know that there may be apps that don't fail to automatic tests but may break others.

That's why I asked you if you have apps that aren't Official or High quality. Those one are regularly checked. The others aren't.

klorydryk commented 4 years ago

Ok, not in high quality: I hate money Phpmyadmin Kresus Rainloop Redirect

maniackcrudelis commented 4 years ago

Probably another app, uninstalled since.

What gives you ls -l /etc/php/ and update-alternatives --display php ?

klorydryk commented 4 years ago

ls -l /etc/php/ 5.6 7.0 7.1 7.2 7.3 7.4

update-alternatives --display php php - mode automatique link best version is /usr/bin/php7.4 le lien pointe actuellement sur /usr/bin/php7.4 link php is /usr/bin/php slave php.1.gz is /usr/share/man/man1/php.1.gz /usr/bin/php7.0 - priorité 70 lien secondaire php.1.gz : /usr/share/man/man1/php7.0.1.gz /usr/bin/php7.3 - priorité 73 lien secondaire php.1.gz : /usr/share/man/man1/php7.3.1.gz /usr/bin/php7.4 - priorité 74 lien secondaire php.1.gz : /usr/share/man/man1/php7.4.1.gz

maniackcrudelis commented 4 years ago

Solution found here https://forum.yunohost.org/t/nextcloud-mise-a-jour-impossible/9956/11

klorydryk commented 4 years ago

I applied the command, and now I get: update-alternatives --display php php - mode manuel link best version is /usr/bin/php7.4 le lien pointe actuellement sur /usr/bin/php7.0

But installation still don't work :s

maniackcrudelis commented 4 years ago

Is the error still the same ?

klorydryk commented 4 years ago

Nope: "PHP module zip not installed." https://paste.yunohost.org/raw/gomogabasa

"apt install php7.0-zip"

maniackcrudelis commented 4 years ago

So I guess it's not an upgrade but an install then. Anyway, yes, you can install php7.0-zip to fix that.

klorydryk commented 4 years ago

Installation OK ! Thanks for your support :)