Nextcloud update stuck "Update in process."

My YunoHost server

Hardware: Raspberry Pi at home
YunoHost version: 11.2.5 (stable)
I have access to my server : Through SSH | through the webadmin | direct access via keyboard / screen
Are you in a special context or did you perform some particular tweaking on your YunoHost instance ? : no
If your request is related to an app, specify its name and version: Nextcloud 27.1.2~ynh3

Description of my issue

In Nextcloud admin interface, I started an update. It got stuck and now I only get a white screen with the words “Update in process.” It’s been at least 20h now.

I tried rebooting the yunohost raspberry pi: no success. The Yunohost admin don’t have any relevant logs.

Looking online and in this forum, it seems I can use the occ command to control nextcloud, but whatever I try, I can’t get it to run. It seems it doesn’t even exist?

root@yuno /v/w/nextcloud# ls -la
total 44
drwxr-x---   7 nextcloud www-data 4096 Nov 14 12:23 ./
drwxr-xr-x+ 10 root      root     4096 Oct 30 15:33 ../
drwxr-xr-x  10 nextcloud www-data 4096 Nov 14 12:21 apps/
drwxr-xr-x   2 nextcloud www-data 4096 Nov 14 12:21 config/
drwxr-xr-x   2 nextcloud www-data 4096 Oct 30 15:42 data/
-rw-r--r--   1 nextcloud www-data   57 Nov 14 12:17 index.php
-rw-r--r--   1 nextcloud www-data   57 Nov 14 12:17 public.php
-rw-r--r--   1 nextcloud www-data   57 Nov 14 12:17 remote.php
-rw-r--r--   1 nextcloud www-data   57 Nov 14 12:17 status.php
drwxr-xr-x   2 nextcloud www-data 4096 Nov 14 12:21 themes/
drwxr-xr-x   2 nextcloud www-data 4096 Oct  5 06:49 updater/

root@yuno /v/w/nextcloud# php occ
Could not open input file: occ

root@yuno /v/w/nextcloud [1]# sudo -u nextcloud php occ
Could not open input file: occ

Questions:
1- Is it ok to update nextcloud through the Nextcloud admin or should I only update it through Yunohost?
2- How do I run the occ command?
3- How do I fix my Nextcloud instance?

1st tip : do not reboot DURING an update :scream: (unless you are sure).
2nd : normally, a backup was done just before the upgrade, so you should be able to restore it.
3rd : do upgrades only from YunoHost, but how did you manage to do it from NextCloud’s interface ? On my instance, it is disabled (so maybe the backup was not done, and this is stressfull :scream: )

Just a little question, is NextCloud’s path really /v/w on your system or is this just u graphical hack to be more readable than /var/www ?

wow really?! :open_mouth: If it is indeed better to update Nextcloud only through Yunohost admin interface, then I feel there should be a big warning in the Yunohost documentation about this!!

Well, it’s a good thing that it’s only a testing nextcloud instance that I installed very recently and has nothing important in it yet! :sweat_smile:

Unfortunately, I don’t have a backup since I never updated through Yunohost… :frowning:

Nothing was disabled in the Nextcloud admin interface. I’m used to update Nextcloud this way because I have another instance that isn’t using Yunohost.

Don’t worry, the path is indeed /var/www. I’m using fish as my shell and it shrinks path in this manner in the prompts.

How can I run occ commands?

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