[Nextcloud] A cloud for personal or group use

Uuuugh that’s weird … can you check what URL this corresponds to ? (= what is displayed in the bottom left corner of your browser BEFORE you click the tile ?)

Before I click : “https://domain.tld/yunohost/sso/”. After I click : “https://domain.tld/nextcloud/
Edit: I just understood “before you click” : it’s displayed “https://domain.tld/nextcloud/”.

I’ve opened an issue about this here : Error 404 or page isn't redirecting properly after upgrade to 20.0.4 · Issue #362 · YunoHost-Apps/nextcloud_ynh · GitHub.

1 Like

Plop !

I got 2 servers which ran the same version (19.0.3~ynh1, stable one), on the first the upgrade ran perfectly, on the second one I had to interrupt it after more than one hour (log below).
Too long didn’t read : I had to reboot server and relaunch upgrade to repair Nextcloud and run the upgrade properly.

  • The server which had no problem has a weaker hardware (Atom versus i3 on the second one, both were more or less on idle when I launched the upgrade).
  • Both upgrades were launched with root user via SSH.
  • Here is the log of the failed upgrade : https://paste.yunohost.org/raw/nudifequri
  • The failed upgrade broke the app, it still run on the v19 of Nextcloud according to the CLI, but I now have a 403 error when trying to access Nextcloud using the Portal (or directly with https://myserver.tld/nextcloud/login).
    I tried a reboot (second magical solution after plug on/off power cord according to helpdesks :stuck_out_tongue:), but same problem : can’t access to my Nextcloud anymore and the update seems to be stuck.
    Last are lines of the CLI are :

Info: The service nginx has correctly executed the action reload-or-restart.
Info: [#############+…] > Upgrading Nextcloud…
Info: Upgrade to nextcloud 20.0.4

Well well well… After a few minutes (Maybe… ten?) the upgrade finished properly and Nextcloud is now running the v20.0.4~ynh1.

Not sure how the upgrade work, but putting a timeout in case of trouble could be useful (reminder : on my first attempt nothing happened in more than one hour before I interrupt the upgrade, according to the log : )

2021-01-12 13:17:56,282: DEBUG - ++ wget --tries 3 --no-dns-cache --timeout 900 --no-verbose --output-document=app.tar.bz2 https://download.nextcloud.com/server/releases/nextcloud-20.0.0.tar.bz2
2021-01-12 14:24:18,275: ERROR - Could not upgrade nextcloud: The operation was manually interrupted?

Hope the trouble I experienced can help other people !

I don’t really know why, but the nextcloud servers were very slow that pm. It’s back to normal now, that may explain why the update seemed to be stuck.

If you have restarted your server during an upgrade, it is normal that your application behaves strangely. The “best” thing to do IMO is check if you have a backup (the upgrade should create it before starting the actual upgrade), and if you have one, remove nextcloud and restore it.

1 Like

Backup was created according to log, but it’s ok.

The only issue I have now is that I lost the Yunohost overlay (I still have it on the other apps).
Both servers have this issue (including the one where upgrade ran perfectly).

Just in case it can help, the upgrade took hours for me yesterday, but ended successfully.

“Took hours” ? Could you specify your hardware configuration?

I did the update, everything worked fine. The download of the new version was slow (~1.5Mbps average) even if I’m on a fiber connection but that’s not something related to the yunohost package but rather to Nextcloud’s servers which are quite loaded at the moment I guess.

2 Likes

It is this one : Intel® NUC Kit NUC5CPYH Product Specifications
The nextCloud datas are on external drive, the backup on an external drive too, and I have a slow bandwith.

The log says 57 minutes, which is strange because I am pretty sure it took way more than that.

Bonjour,

Mise à jour sans souci pour moi ce matin (environ 10min pour réaliser la mise à jour). Tout semble parfaitement fonctionnel.

Bravo pour le travail accompli ! :+1:
Sangokuss

New stable release:

  • Upgrade to version 20.0.7
  • Remove ownCloud migration support
  • Fix upgrade for old installs
7 Likes

Hi,

I’ve just upgraded from the latest stable version 20.0.4 to 20.0.7 on my VPS based Debian Buster 64 without any problem.

The only warning in the Nextcloud web panel is the 4-byte encoding.

Thanks <3

ppr

2 Likes

Version 21 just announced. The Nextcloud team never stops :sweat_smile:

But for this version is recommended to use php 7.4, and yunohost use 7.3, but works. Future versions will use php 8.0 as mandatory, then we will have a problem since there apps that only works in 7.3 and others that in a future will only work in 8.0 or 8.1 or whatever version appears in the future. So not only for php 7.4 or 8.0 we will need to advance in yunohost in general to support several versions of php or upgrade to a higher working version.

@bjarkan I’m not a specialist but I think that since a few Yunohost versions the developpers have made possible the use of different php versions in parallel. On my instance I already have php7.1, 7.2 and 7.4. I don’t see why adding others like php8 would be a problem but anyway, time will tell.

And don’t get me wrong, I’m perfectly happy with my version 20 right now !

1 Like

Exactly, and until now php 7.4 is enough. I am running another NC instance and upgraded to NC 21 with php 7.4 without any issues, most apps survived the upgrade well, and the new version feels faster. But it is always a good idea to wait a bit and I appreciate having not the newest but a stable version with Yunohost

Hello,
Petit problème de mise à jours de mon côté pour un passage de la 19.0.3 à la 20.0.7 sur un RPI 3B+ en 4.1.7.2, et voici les logs : hastebin
J’avoue que je comprends pas trop où est le problème, si vous avez une petite idée je suis preneur :wink:

Bonjour à toutes et tous,

Pour info, upgrade sans souci de mon Nextcloud 20.0.7 vers 20.0.8 :sunglasses:

Merci à tous les devs, good job :+1:
Sangokuss

2 Likes

Hi,

I’ve just upgraded from the latest stable version 20.0.7 to 20.0.8 on my VPS based Debian Buster 64 without any problem.

The only warning in the Nextcloud web panel is the 4-byte encoding.

Thanks <3

ppr

1 Like