Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade 26>27 : Yet another "Step 6 is currently in process. Please reload this page later." #547

Open
DuvelCorp opened this issue Apr 15, 2024 · 11 comments
Labels
0. Needs triage bug feature: deletion Step 9 feature: extraction Step 6 hotspot: shipped.json Temporary tracker for these needs review Needs review for current applicability/etc

Comments

@DuvelCorp
Copy link

DuvelCorp commented Apr 15, 2024

Stuck forever at "Step 6 is currently in process. Please reload this page later."

I let it on the step for several hours and it does nothing, pages refresh always show this

This is an old well known issue that was supposedly fixed there, but it still happen on my 26.0.13.1 installation. I read all the reports and tried mostly everything and nothing helped.

I have deleted multiple times the /data/update/.step file to redo everything again and it's always stuck there.

I am on Ubuntu 220.4 with Apache and PHP up -to-date (8.2)
the PHP memory limit is set to 512MB

Updater log file shows nothing helpful

2024-04-15T09:16:58+0200 GVgEnKNTW8 [info] storage location exists
2024-04-15T09:17:03+0200 GVgEnKNTW8 [info] end of downloadUpdate()
2024-04-15T09:17:03+0200 GVgEnKNTW8 [info] endStep("4")
2024-04-15T09:17:03+0200 ydky86VgUX [info] request to updater
2024-04-15T09:17:03+0200 ydky86VgUX [info] currentStep()
2024-04-15T09:17:03+0200 ydky86VgUX [info] Step 4 is in state "end".
2024-04-15T09:17:03+0200 ydky86VgUX [info] POST request for step "5"
2024-04-15T09:17:03+0200 ydky86VgUX [info] startStep("5")
2024-04-15T09:17:03+0200 ydky86VgUX [info] verifyIntegrity()
2024-04-15T09:17:03+0200 ydky86VgUX [info] getUpdateServerResponse()
2024-04-15T09:17:03+0200 ydky86VgUX [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-15T09:17:03+0200 ydky86VgUX [info] releaseChannel: stable
2024-04-15T09:17:03+0200 ydky86VgUX [info] internal version: 26.0.13.1
2024-04-15T09:17:03+0200 ydky86VgUX [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexxx8x0x30
2024-04-15T09:17:03+0200 ydky86VgUX [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => xxxx
)

2024-04-15T09:17:03+0200 ydky86VgUX [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-15T09:17:04+0200 ydky86VgUX [info] end of verifyIntegrity()
2024-04-15T09:17:04+0200 ydky86VgUX [info] endStep("5")
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] request to updater
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] currentStep()
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] Step 5 is in state "end".
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] POST request for step "6"
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] startStep("6")
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] extractDownload()
2024-04-15T09:17:04+0200 MFPYQwby1Q [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] request to updater
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] currentStep()
2024-04-15T09:17:32+0200 IKqpQ6ozOn [info] Step 6 is in state "start".
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] request to updater
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] currentStep()
2024-04-15T09:17:38+0200 TUpUjyYvX6 [info] Step 6 is in state "start".
2024-04-15T09:17:43+0200 tJjP59TkmB [info] request to updater
2024-04-15T09:17:43+0200 tJjP59TkmB [info] currentStep()
2024-04-15T09:17:43+0200 tJjP59TkmB [info] Step 6 is in state "start".
2024-04-15T09:21:39+0200 25AExOGulU [info] request to updater
2024-04-15T09:21:39+0200 25AExOGulU [info] currentStep()
2024-04-15T09:21:39+0200 25AExOGulU [info] Step 6 is in state "start".

Contain of the downloads/nextcloud folder shows that it did extract the zip so why doesn't it just proceed with the next step of the installation ?

tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/nextcloud$ ll
total 1976
drwxr-xr-x 13 www-data www-data    4096 Apr 15 09:17 ./
drwxr-x---  3 www-data www-data      23 Apr 15 09:17 ../
drwxr-xr-x 45 www-data www-data    4096 Apr 15 09:17 3rdparty/
drwxr-xr-x 51 www-data www-data    4096 Apr 15 09:17 apps/
-rw-r--r--  1 www-data www-data   23796 Mar 28 08:02 AUTHORS
-rw-r--r--  1 www-data www-data    1283 Mar 28 08:02 composer.json
-rw-r--r--  1 www-data www-data    3140 Mar 28 08:02 composer.lock
drwxr-xr-x  2 www-data www-data      67 Apr 15 09:17 config/
-rw-r--r--  1 www-data www-data    4095 Mar 28 08:02 console.php
-rw-r--r--  1 www-data www-data   34520 Mar 28 08:02 COPYING
drwxr-xr-x 24 www-data www-data    4096 Apr 15 09:17 core/
-rw-r--r--  1 www-data www-data    6317 Mar 28 08:02 cron.php
drwxr-xr-x  2 www-data www-data   12288 Apr 15 09:17 dist/
-rw-r--r--  1 www-data www-data    3993 Mar 28 08:02 .htaccess
-rw-r--r--  1 www-data www-data     156 Mar 28 08:02 index.html
-rw-r--r--  1 www-data www-data    4103 Mar 28 08:02 index.php
drwxr-xr-x  6 www-data www-data     125 Apr 15 09:17 lib/
-rw-r--r--  1 www-data www-data     283 Mar 28 08:02 occ
drwxr-xr-x  2 www-data www-data      55 Apr 15 09:17 ocs/
drwxr-xr-x  2 www-data www-data      23 Apr 15 09:17 ocs-provider/
-rw-r--r--  1 www-data www-data    6341 Mar 28 08:02 package.json
-rw-r--r--  1 www-data www-data 1849537 Mar 28 08:02 package-lock.json
-rw-r--r--  1 www-data www-data    3187 Mar 28 08:02 public.php
-rw-r--r--  1 www-data www-data    5597 Mar 28 08:02 remote.php
drwxr-xr-x  4 www-data www-data     133 Apr 15 09:17 resources/
-rw-r--r--  1 www-data www-data      26 Mar 28 08:02 robots.txt
-rw-r--r--  1 www-data www-data    2452 Mar 28 08:02 status.php
drwxr-xr-x  3 www-data www-data      35 Apr 15 09:17 themes/
drwxr-xr-x  2 www-data www-data      43 Apr 15 09:17 updater/
-rw-r--r--  1 www-data www-data     101 Mar 28 08:02 .user.ini
-rw-r--r--  1 www-data www-data     403 Mar 28 08:05 version.php

My cloud is down for 24 hours and I just don't know what to do to fix it.

since I had all sorts of worst issues in the past with the occ maintenance_fix thing, I am reluctant to try to solve my issue with it and I would like to have some guidance on what to do.

@joshtrichards
Copy link
Member

My cloud is down for 24 hours and I just don't know what to do to fix it.

Keep in mind you can always do a manual update. There's no need to stay down while troubleshooting a situation like this: https://docs.nextcloud.com/server/latest/admin_manual/maintenance/manual_upgrade.html

Contain of the downloads/nextcloud folder shows that it did extract the zip so why doesn't it just proceed with the next step of the installation ?

Does the parent folder (/var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/ in your case) still contain the nextcloud-27.1.8.zip file?

That step does three things:

  • open and extract the zip file <-- which is seems like you've verified is happening though we're not certain it's done I guess
  • delete the zip file <-- the question above; it would indicate the extraction truly finished
  • compare the version.php from the download versus your existing installation

since I had all sorts of worst issues in the past with the occ maintenance_fix thing, I am reluctant to try to solve my issue with it and I would like to have some guidance on what to do.

Can you elaborate on the types of issues?

This is an old well known issue that was supposedly fixed #472, but it still happen on my 26.0.13.1 installation. I read all the reports and tried mostly everything and nothing helped.

That PR just expanded the error message to make it easier for people to reset things if they wanted to re-trigger the Update run. This is just a generic log entry. There's no universal "old well known issue" here since a million things can cause any given step to fail.

Have you tried running the Updater rom the command line? In addition to being more reliable, there's a chance there some error output not being shown in the log. Here's how to run the Updater in command line mode:

https://docs.nextcloud.com/server/latest/admin_manual/maintenance/update.html#using-the-command-line-based-updater

I am on Ubuntu 220.4 with Apache and PHP up -to-date (8.2)

Can you share a bit more about the underlying system? Hardware/VM? Filesystems in use?

@DuvelCorp
Copy link
Author

DuvelCorp commented Apr 15, 2024

Hello Josh,

Thank you for your help.

Does the parent folder (/var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/ in your case) still contain the nextcloud-27.1.8.zip file?

NO. There's only one folder in it. so you seem to confirm that he zip file was properly extracted and deleted.
The timestamp on the extracted folder correspond to my last attempt this morning
image

I have tried to run the updater from the command line but I got the same message.

tom@www-prd:/var/www/html/nextcloud$ sudo -u www-data php /var/www/html/nextcloud/updater/updater.phar
Nextcloud Updater - version: v26.0.6-13-gef27ae9 dirty

Step 6 is currently in process. Please call this command later.

I have not tried yet after having deleted the .step file
Same goes about throwing occ command...

The thing is: since my nextcloud system is actually in an unstable state, I don't want to make things worst and unrecoverable by launching commands for which I don't fully understand the impact.

I wont elaborate on this because I just cant remember any detail but I am pretty sure that I did triggered more issues than solutions when trying occ command on a failed upgrade some years ago (I am using Owncloud then Nextcloud at fork for many years)

It is a vmware VM from Esxi 6 running on a Dell server (and the cloud is only a part of everything it runs (fine)
Filesystem hint

tom@www-prd:/var/www/html/nextcloud$ df -T
Filesystem     Type      1K-blocks        Used  Available Use% Mounted on
tmpfs          tmpfs       1224444        4028    1220416   1% /run
/dev/sda2      ext4      102656700    51431092   46820144  53% /
tmpfs          tmpfs       6122212           0    6122212   0% /dev/shm
tmpfs          tmpfs          5120           0       5120   0% /run/lock
/dev/sdb1      xfs      1073216516   243788256  829428260  23% /var/www
/dev/sdc1      xfs     16104039404 13486310696 2617728708  84% /media
tmpfs          tmpfs       1224440          52    1224388   1% /run/user/128

The nextcloud is on /dev/sdb1

If that info helps : I was previously (so yesterday) on v25 and did upgrade to v26. It worked. Then I tried right away to upgrade to v27 (and everything from ACP in the web interface)

@joshtrichards
Copy link
Member

I have tried to run the updater from the command line but I got the same message.

tom@www-prd:/var/www/html/nextcloud$ sudo -u www-data php /var/www/html/nextcloud/updater/updater.phar
Nextcloud Updater - version: v26.0.6-13-gef27ae9 dirty

Step 6 is currently in process. Please call this command later.

I have not tried yet after having deleted the .step file

Please do so if possible. The Updater from the command line is the same underlying Updater as web one. The worst that should happen - and what I expect will happen in your case - is that it will get stuck at the same step. What I'm hoping for though is that there will be some clue output to stderr that you're not seeing when you run it via the Web.

I wont elaborate on this because I just cant remember any detail but I am pretty sure that I did triggered more issues than solutions when trying occ command on a failed upgrade some years ago (I am using Owncloud then Nextcloud at fork for many years)

I understand the caution. I'm not suggesting any occ commands. Only run the updater.phar as described in the command line Update approach.

Something very strange is going on here because the code that is in that step right after removing the ZIP file is super simple. It loads two tiny text files (the version.php from the extracted zip and the same file from your existing installation) and compares the version strings. It's... Not where I would ever expect things to get stuck.

For completeness, maybe share the content of your /var/www/html/nextcloud/version.php (prior to attempting the use the command line Updater). Though I can't image it being messed up since you'd likely have other problems with your Nextcloud if so.

@DuvelCorp
Copy link
Author

@joshtrichards then we might have spotted the issue but not the root cause yet.

I dont have any file /var/www/html/nextcloud/version.php !!!

This is the contain of my nextcloud root dir :

image

I thus dont touch anything and wait for your next guidelines

@DuvelCorp
Copy link
Author

DuvelCorp commented Apr 16, 2024

just in case : I am absolutely certain that I haven't done anything manually that could have deleted files in the root folder. It should have happened during an upgrade

@joshtrichards
Copy link
Member

I dont have any file /var/www/html/nextcloud/version.php !!!

!!! The screenshot looks like how it might if you somehow managed to get to later steps.

I suspect if you run at the command line you'd get an exception telling you that the version file is missing. We should probably catch that better to report it in web mode, but that still leaves is with the mystery of how you ended up in this state. The step that would do this would be deleteOldFiles().

  • Do all of your data/updater-ocbkiyalgllo/backups/ folders have version.php files? (they should if it was there before the Updater ran since the backup runs earlier)
  • Can you share your entire updater.log?

I was previously (so yesterday) on v25 and did upgrade to v26. It worked. Then I tried right away to upgrade to v27 (and everything from ACP in the web interface)

@DuvelCorp
Copy link
Author

DuvelCorp commented Apr 16, 2024

tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups$ ll
total 60
drwxr-x--- 22 www-data www-data 4096 Apr 15 07:52 ./
drwxr-xr-x  4 www-data www-data   96 Apr 15 09:16 ../
drwxr-x--- 13 www-data www-data 4096 Aug 20  2022 nextcloud-22.2.10.2-1661016663/
drwxr-x--- 13 www-data www-data 4096 Aug 20  2022 nextcloud-22.2.6.2-1661016443/
drwxr-x--- 13 www-data www-data 4096 Aug 21  2022 nextcloud-23.0.8.1-1661076288/
drwxr-x--- 14 www-data www-data 4096 Oct  3  2022 nextcloud-24.0.4.1-1664814526/
drwxr-x--- 14 www-data www-data 4096 Nov  4  2022 nextcloud-24.0.5.1-1667572535/
drwxr-x--- 14 www-data www-data 4096 Dec 17  2022 nextcloud-24.0.7.1-1671312272/
drwxr-x--- 14 www-data www-data 4096 Feb 10  2023 nextcloud-24.0.8.2-1676049904/
drwxr-x--- 14 www-data www-data 4096 Feb 10  2023 nextcloud-24.0.9.2-1676050328/
drwxr-x--- 14 www-data www-data 4096 Feb 10  2023 nextcloud-24.0.9.2-1676050447/
drwxr-x--- 14 www-data www-data 4096 Feb 12 21:07 nextcloud-25.0.13.2-1707767866/
drwxr-x--- 14 www-data www-data 4096 Apr  7  2023 nextcloud-25.0.3.2-1680867246/
drwxr-x--- 14 www-data www-data 4096 Jun 29  2023 nextcloud-25.0.8.2-1688063446/
drwxr-x--- 14 www-data www-data 4096 Jun 29  2023 nextcloud-25.0.8.2-1688063686/
drwxr-x--- 13 www-data www-data 4096 Apr 14 12:21 nextcloud-26.0.13.1-1713089148/
drwxr-x---  5 www-data www-data  118 Apr 14 16:56 nextcloud-26.0.13.1-1713106539/
drwxr-x---  5 www-data www-data  118 Apr 14 16:59 nextcloud-26.0.13.1-1713106712/
drwxr-x---  5 www-data www-data  118 Apr 14 21:11 nextcloud-26.0.13.1-1713121848/
drwxr-x---  5 www-data www-data  118 Apr 14 21:14 nextcloud-26.0.13.1-1713121995/
drwxr-x---  5 www-data www-data  118 Apr 15 07:36 nextcloud-26.0.13.1-1713159324/
drwxr-x---  5 www-data www-data  118 Apr 15 07:53 nextcloud-26.0.13.1-1713160356/
tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups$ cd nextcloud-26.0.13.1-1713160356/
tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713160356$ ll
total 24
drwxr-x---  5 www-data www-data  118 Apr 15 07:53 ./
drwxr-x--- 22 www-data www-data 4096 Apr 15 07:52 ../
drwxr-x--- 14 www-data www-data 4096 Apr 15 07:53 apps/
drwxr-x---  2 www-data www-data   69 Apr 15 07:53 config/
-rw-r--r--  1 www-data www-data   57 Apr 15 07:52 index.php
-rw-r--r--  1 www-data www-data   57 Apr 15 07:52 public.php
-rw-r--r--  1 www-data www-data   57 Apr 15 07:52 remote.php
-rw-r--r--  1 www-data www-data   57 Apr 15 07:52 status.php
drwxr-x---  2 www-data www-data   43 Apr 15 07:53 updater/
tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713160356$ cd /var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713089148
tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713089148$ ll
total 1948
drwxr-x--- 13 www-data www-data    4096 Apr 14 12:21 ./
drwxr-x--- 22 www-data www-data    4096 Apr 15 07:52 ../
drwxr-x--- 45 www-data www-data    4096 Apr 14 12:21 3rdparty/
drwxr-x--- 62 www-data www-data    4096 Apr 14 12:12 apps/
-rw-r--r--  1 www-data www-data   19327 Apr 14 12:21 AUTHORS
-rw-r--r--  1 www-data www-data    1283 Apr 14 12:21 composer.json
-rw-r--r--  1 www-data www-data    3140 Apr 14 12:20 composer.lock
drwxr-x---  2 www-data www-data      94 Apr 14 12:12 config/
-rw-r--r--  1 www-data www-data    4095 Apr 14 12:21 console.php
-rw-r--r--  1 www-data www-data   34520 Apr 14 12:21 COPYING
drwxr-x--- 24 www-data www-data    4096 Apr 14 12:21 core/
-rw-r--r--  1 www-data www-data    6317 Apr 14 12:21 cron.php
drwxr-x---  2 www-data www-data    8192 Apr 14 12:21 dist/
-rw-r--r--  1 www-data www-data    4270 Apr 14 12:21 .htaccess
-rw-r--r--  1 www-data www-data     156 Apr 14 12:20 index.html
-rw-r--r--  1 www-data www-data    4103 Apr 14 12:05 index.php
drwxr-x---  6 www-data www-data     125 Apr 14 12:20 lib/
-rw-r--r--  1 www-data www-data     283 Apr 14 12:21 occ
drwxr-x---  2 www-data www-data      55 Apr 14 12:20 ocs/
drwxr-x---  2 www-data www-data      23 Apr 14 12:20 ocs-provider/
-rw-r--r--  1 www-data www-data    6005 Apr 14 12:21 package.json
-rw-r--r--  1 www-data www-data 1819242 Apr 14 12:20 package-lock.json
-rw-r--r--  1 www-data www-data    3187 Apr 14 12:05 public.php
-rw-r--r--  1 www-data www-data    5597 Apr 14 12:05 remote.php
drwxr-x---  4 www-data www-data     133 Apr 14 12:20 resources/
-rw-r--r--  1 www-data www-data      26 Apr 14 12:20 robots.txt
-rw-r--r--  1 www-data www-data    2452 Apr 14 12:05 status.php
drwxr-x---  3 www-data www-data      35 Apr 14 12:05 themes/
drwxr-x---  2 www-data www-data      43 Apr 14 12:12 updater/
-rw-r--r--  1 www-data www-data     101 Apr 14 12:21 .user.ini
-rw-r--r--  1 www-data www-data     385 Apr 14 12:21 version.php
tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713089148$

So you can see that its there in the very first nextcloud-26.0.13.1-xxxxxxx folder but not the last.
And its not in the second one either so the thing went wrong between my first and second attempt.

I must say that I am unsure about the exact symptoms on that attempt because you can see that I retried hard afterwards. But I dont remember having had something different than finally stuck on 6th step.

It should be noted also that on all attempts the script was also timing out on DB backup step and I had to refresh or come back later, which finally worked. And I do have a pretty powerful and fully dedicated MySQL server running on another Ubuntu VM and only on SSD. So a DB dump should normally be fast on my system (I only have a few users and a few thousands of files)

Updater log attached
updater.log

@joshtrichards
Copy link
Member

Thanks - that is helpful. Though there is still a mystery here. Things went wrong at some point during the first run attempt to update from 26.0.13.1 -> 27.1.8.1, but the source is unclear.

This was the run with the good backup:

2024-04-14T12:05:48+0200 GqeOKM6h5c [info] backup folder location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713089148/

Everything look good up until 2024-04-14T16:50:39+0200. At that point, before we delete anything we check the shipped app list of the current installation. But when we went to do that, the manifest (shipped.json) was gone:

2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] deleteOldFiles()
2024-04-14T16:50:39+0200 fD8kKwX0Zn [error] POST request failed with other exception
2024-04-14T16:50:39+0200 fD8kKwX0Zn [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/html/nextcloud/updater/index.php(1399): Updater->deleteOldFiles()
#1 {main}
File:/var/www/html/nextcloud/updater/index.php
Line:847

That indicates that your installation folder was wiped out somehow between when the backup step ran (because we know the files were there at that point - they're in your backup!) and the above step. But we haven't deleted anything yet at this point so I have zero idea how that would have happened.

I understand why things stopped where they did, but not how you ended up in this state. The above error is just a symptom of whatever the real culprit is: the files for your active 26.0.13.1 installation were removed/disappeared from the installation folder at some point after we did our backup.

There are no indications that anything unusual happened in between per the logs or file listings you've provided.

If I had to take a wild guess, maybe something happened during this big time gap here:

2024-04-14T12:21:41+0200 GqeOKM6h5c [info] endStep("3")
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] request to updater

Not that there's necessarily anything wrong with a huge time gap, but it is... suspicious. Did the server go down or was it rebooted or any restores from backups or manual interventions you made during that time that you can think of?

Here's the full excerpt from your log for just the specific Updater run in question:

2024-04-14T12:05:46+0200 tLwAnmkrkh [info] request to updater
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] currentStep()
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] show HTML page
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] current version: 26.0.13 build time: 2024-03-28T08:15:59+00:00 27dcfb94a08990a5b3f40aa9f2fd8bb2039778bf
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] getUpdateServerResponse()
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] releaseChannel: stable
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] internal version: 26.0.13.1
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexx2024-03-28T08%3A15%3A59%2B00%3A00+27dcfb94a08990a5b3f40aa9f2fd8bb2039778bfx8x0x30
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T12:05:46+0200 tLwAnmkrkh [info] checkForUpdate() Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T12:05:46+0200 tLwAnmkrkh [info] getChangelogURL()
2024-04-14T12:05:46+0200 tLwAnmkrkh [info] end of checkForUpdate() Update to Nextcloud 27.1.8 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-8" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-04-14T12:05:48+0200 3rBfHfxSar [info] request to updater
2024-04-14T12:05:48+0200 3rBfHfxSar [info] currentStep()
2024-04-14T12:05:48+0200 3rBfHfxSar [info] POST request for step "1"
2024-04-14T12:05:48+0200 3rBfHfxSar [info] startStep("1")
2024-04-14T12:05:48+0200 3rBfHfxSar [info] checkForExpectedFilesAndFolders()
2024-04-14T12:05:48+0200 3rBfHfxSar [info] end of checkForExpectedFilesAndFolders()
2024-04-14T12:05:48+0200 3rBfHfxSar [info] endStep("1")
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] request to updater
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] currentStep()
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] Step 1 is in state "end".
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] POST request for step "2"
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] startStep("2")
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] checkWritePermissions()
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] end of checkWritePermissions()
2024-04-14T12:05:48+0200 beOqu1DRH0 [info] endStep("2")
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] request to updater
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] currentStep()
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] Step 2 is in state "end".
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] POST request for step "3"
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] startStep("3")
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] createBackup()
2024-04-14T12:05:48+0200 GqeOKM6h5c [info] backup folder location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-26.0.13.1-1713089148/
2024-04-14T12:06:48+0200 PmTgcv7oQY [info] request to updater
2024-04-14T12:06:48+0200 PmTgcv7oQY [info] currentStep()
2024-04-14T12:06:48+0200 PmTgcv7oQY [info] Step 3 is in state "start".
2024-04-14T12:08:54+0200 l22P2ELbEy [info] request to updater
2024-04-14T12:08:54+0200 l22P2ELbEy [info] currentStep()
2024-04-14T12:08:54+0200 l22P2ELbEy [info] Step 3 is in state "start".
2024-04-14T12:09:04+0200 KGB8uz7SBm [info] request to updater
2024-04-14T12:09:04+0200 KGB8uz7SBm [info] currentStep()
2024-04-14T12:09:04+0200 KGB8uz7SBm [info] Step 3 is in state "start".
2024-04-14T12:10:10+0200 iaICyZNcp7 [info] request to updater
2024-04-14T12:10:10+0200 iaICyZNcp7 [info] currentStep()
2024-04-14T12:10:10+0200 iaICyZNcp7 [info] Step 3 is in state "start".
2024-04-14T12:21:41+0200 GqeOKM6h5c [info] end of createBackup()
2024-04-14T12:21:41+0200 GqeOKM6h5c [info] endStep("3")
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] request to updater
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] currentStep()
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] Step 3 is in state "end".
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] show HTML page
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] current version: 26.0.13 build time: 2024-03-28T08:15:59+00:00 27dcfb94a08990a5b3f40aa9f2fd8bb2039778bf
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] getUpdateServerResponse()
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] releaseChannel: stable
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] internal version: 26.0.13.1
2024-04-14T16:47:44+0200 JLKPXfCwXw [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexx2024-03-28T08%3A15%3A59%2B00%3A00+27dcfb94a08990a5b3f40aa9f2fd8bb2039778bfx8x0x30
2024-04-14T16:47:45+0200 JLKPXfCwXw [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T16:47:45+0200 JLKPXfCwXw [info] checkForUpdate() Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T16:47:45+0200 JLKPXfCwXw [info] getChangelogURL()
2024-04-14T16:47:45+0200 JLKPXfCwXw [info] end of checkForUpdate() Update to Nextcloud 27.1.8 available. (channel: "stable")<br /><span class="light">Following file will be downloaded automatically:</span> <code class="light">https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip</code><br /><a class="external_link" href="https://nextcloud.com/changelog/#27-1-8" target="_blank" rel="noreferrer noopener">Open changelog ↗</a>
2024-04-14T16:47:47+0200 D7SEiDdryP [info] request to updater
2024-04-14T16:47:47+0200 D7SEiDdryP [info] currentStep()
2024-04-14T16:47:47+0200 D7SEiDdryP [info] Step 3 is in state "end".
2024-04-14T16:47:47+0200 D7SEiDdryP [info] POST request for step "4"
2024-04-14T16:47:47+0200 D7SEiDdryP [info] startStep("4")
2024-04-14T16:47:47+0200 D7SEiDdryP [info] downloadUpdate()
2024-04-14T16:47:47+0200 D7SEiDdryP [info] getUpdateServerResponse()
2024-04-14T16:47:47+0200 D7SEiDdryP [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-14T16:47:47+0200 D7SEiDdryP [info] releaseChannel: stable
2024-04-14T16:47:47+0200 D7SEiDdryP [info] internal version: 26.0.13.1
2024-04-14T16:47:47+0200 D7SEiDdryP [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexx2024-03-28T08%3A15%3A59%2B00%3A00+27dcfb94a08990a5b3f40aa9f2fd8bb2039778bfx8x0x30
2024-04-14T16:47:47+0200 D7SEiDdryP [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T16:47:47+0200 D7SEiDdryP [info] storage location exists
2024-04-14T16:47:51+0200 D7SEiDdryP [info] end of downloadUpdate()
2024-04-14T16:47:51+0200 D7SEiDdryP [info] endStep("4")
2024-04-14T16:47:51+0200 p6bWaoRlad [info] request to updater
2024-04-14T16:47:51+0200 p6bWaoRlad [info] currentStep()
2024-04-14T16:47:51+0200 p6bWaoRlad [info] Step 4 is in state "end".
2024-04-14T16:47:51+0200 p6bWaoRlad [info] POST request for step "5"
2024-04-14T16:47:51+0200 p6bWaoRlad [info] startStep("5")
2024-04-14T16:47:51+0200 p6bWaoRlad [info] verifyIntegrity()
2024-04-14T16:47:51+0200 p6bWaoRlad [info] getUpdateServerResponse()
2024-04-14T16:47:51+0200 p6bWaoRlad [info] updaterServer: https://updates.nextcloud.com/updater_server/
2024-04-14T16:47:51+0200 p6bWaoRlad [info] releaseChannel: stable
2024-04-14T16:47:51+0200 p6bWaoRlad [info] internal version: 26.0.13.1
2024-04-14T16:47:51+0200 p6bWaoRlad [info] updateURL: https://updates.nextcloud.com/updater_server/?version=26x0x13x1xxxstablexx2024-03-28T08%3A15%3A59%2B00%3A00+27dcfb94a08990a5b3f40aa9f2fd8bb2039778bfx8x0x30
2024-04-14T16:47:57+0200 p6bWaoRlad [info] getUpdateServerResponse response: Array
(
    [version] => 27.1.8.1
    [versionstring] => Nextcloud 27.1.8
    [url] => https://download.nextcloud.com/server/releases/nextcloud-27.1.8.zip
    [web] => https://docs.nextcloud.com/server/27/admin_manual/maintenance/upgrade.html
    [changes] => https://updates.nextcloud.com/changelog_server/?version=27.1.8
    [autoupdater] => 1
    [eol] => 0
    [signature] => aWrnpr6OwrpOfEGfZY+Du2yFyZqfDAcHRKLs3lG2RxtsfuZbRg0jZPSCwlFnpS2i
rQyrooFbAtazaunWdRSX1XaxnnW9c7eVNPqfkr0Itx8ZzNJ5F+FET6vk49Z7Tp8l
//sxF0eVn103RxD3FLzyZzclHCE00TLyGkQfBpenQy+kf7qJvsnz9LQ4XoAHj7vO
BIYjN/LbCjbDYfvPEorToRaf1+RwQQL8zfTVvOE4BjX4ynfXyPI7QyHI3RZEFTNa
/b1KOl1ZmNT2/bZZOoExEafaKyBLfMssPL6e8ZeXMkQJm8pSoqde7bXHnk+IVonN
z4lhu6hMkBY+DaGjDU/JNA==
)

2024-04-14T16:47:57+0200 p6bWaoRlad [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-14T16:47:57+0200 p6bWaoRlad [info] end of verifyIntegrity()
2024-04-14T16:47:57+0200 p6bWaoRlad [info] endStep("5")
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] request to updater
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] currentStep()
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] Step 5 is in state "end".
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] POST request for step "6"
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] startStep("6")
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] extractDownload()
2024-04-14T16:47:57+0200 U2UUQ105j6 [info] storage location: /var/www/html/nextcloud/data/updater-ocbkiyalgllo/downloads/
2024-04-14T16:48:01+0200 U2UUQ105j6 [info] end of extractDownload()
2024-04-14T16:48:01+0200 U2UUQ105j6 [info] endStep("6")
2024-04-14T16:48:01+0200 YUtMya0jGl [info] request to updater
2024-04-14T16:48:01+0200 YUtMya0jGl [info] currentStep()
2024-04-14T16:48:01+0200 YUtMya0jGl [info] Step 6 is in state "end".
2024-04-14T16:48:01+0200 YUtMya0jGl [info] POST request for step "7"
2024-04-14T16:48:01+0200 YUtMya0jGl [info] startStep("7")
2024-04-14T16:48:01+0200 YUtMya0jGl [info] setMaintenanceMode("true")
2024-04-14T16:48:01+0200 YUtMya0jGl [info] configFileName /var/www/html/nextcloud/updater/../config/config.php
2024-04-14T16:48:01+0200 YUtMya0jGl [info] end of setMaintenanceMode()
2024-04-14T16:48:01+0200 YUtMya0jGl [info] endStep("7")
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] request to updater
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] currentStep()
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] Step 7 is in state "end".
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] POST request for step "8"
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] startStep("8")
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replaceEntryPoints()
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace index.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace status.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace remote.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace public.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace ocs/v1.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] replace ocs/v2.php
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] end of replaceEntryPoints()
2024-04-14T16:48:01+0200 2MFH16U8Lw [info] endStep("8")
2024-04-14T16:48:01+0200 vOLCB6umVo [info] request to updater
2024-04-14T16:48:01+0200 vOLCB6umVo [info] currentStep()
2024-04-14T16:48:01+0200 vOLCB6umVo [info] Step 8 is in state "end".
2024-04-14T16:48:01+0200 vOLCB6umVo [info] POST request for step "9"
2024-04-14T16:48:01+0200 vOLCB6umVo [info] startStep("9")
2024-04-14T16:48:01+0200 vOLCB6umVo [info] deleteOldFiles()
2024-04-14T16:48:03+0200 vOLCB6umVo [info] config sample exists
2024-04-14T16:48:03+0200 vOLCB6umVo [info] themes README exists
2024-04-14T16:49:02+0200 DjPPGiPNOs [info] request to updater
2024-04-14T16:49:02+0200 DjPPGiPNOs [info] currentStep()
2024-04-14T16:49:02+0200 DjPPGiPNOs [info] Step 9 is in state "start".
2024-04-14T16:49:36+0200 vOLCB6umVo [info] end of deleteOldFiles()
2024-04-14T16:49:36+0200 vOLCB6umVo [info] endStep("9")
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] request to updater
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] currentStep()
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] Step 9 is in state "end".
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] POST request for step "9"
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] startStep("9")
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] deleteOldFiles()
2024-04-14T16:50:39+0200 fD8kKwX0Zn [error] POST request failed with other exception
2024-04-14T16:50:39+0200 fD8kKwX0Zn [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/html/nextcloud/updater/index.php(1399): Updater->deleteOldFiles()
#1 {main}
File:/var/www/html/nextcloud/updater/index.php
Line:847

2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] rollbackChanges("9")
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] unlink .step
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] rollbackChanges - step >= 7
2024-04-14T16:50:39+0200 fD8kKwX0Zn [info] end of  rollbackChanges()

@DuvelCorp
Copy link
Author

DuvelCorp commented Apr 17, 2024

Not that there's necessarily anything wrong with a huge time gap, but it is... suspicious. Did the server go down or was it rebooted or any restores from backups or manual interventions you made during that time that you can think of?

No. Nothing of that.
Just one graph among others for that server on 14/04 between 11:00 and 18:00
image

This from Prometheus/Grafana running on another server and monitoring all my infrastructure.
You can see that there were no downtime.

The Nextcloud disk is the sdb (yellow/blue). And we can see some R/W activity on it around 12:00, and then around 17:00, which is excatly what you have found in the logs. Between this timeframe I just let the upgrade run because it was timed out, and spend my afternoon on something else. Which is according to me, the wiser thing I could have done. Its only after that I tried hard to reinstall the upgrade.

Just FYI the violet is the /media disk and my seedbox server was probably moving a lot of downloaded files on it until 14:30. Just everything normal on this specific server that is beefed for streaming media to friends and family. And this clearly helps to prove that there were no downtime or issue at all on it.

Now the question is : what do you propose to do so I can finally have a cloud again ? :-)

@joshtrichards
Copy link
Member

Now the question is : what do you propose to do so I can finally have a cloud again ? :-)

I'd suggest the following, ranked by what I'd probably personally do:

  1. Technically, given this is only failing in the deleteOldFiles() step, the only file that needs to exist is the core/shipped.json. You can copy it over from the good updater backup folder then re-trigger the Updater from the command line. As long as the .step file hasn't been touched it should just complete that step fully and move on.

  2. Another option: copy the entire backup from the good updater backup folder (the one that has all the files) and clear the .step file. Then re-running the Updater from the command line (though admittedly since we're not sure what the underlying cause is in your situation it may just result in the same scenario where a manual update is required).

  3. You can always do a a fully manual code deployment (as already noted) and described in the Updating Manually section of the documentation.

Choice 1 is easy enough to try. If it fails, just jump to choice 3 unless you feel like experimenting (because it's possible choice 2 will turn up some new info, but I'm also somewhat doubtful).

@joshtrichards joshtrichards added feature: deletion Step 9 hotspot: shipped.json Temporary tracker for these labels Apr 22, 2024
@DuvelCorp
Copy link
Author

DuvelCorp commented Apr 27, 2024

@joshtrichards

I chose the 1.
And I copied the whole core/ directory in the /nextcloud folder

The problem is that when I launched the upgrader it was still bugging on :

tom@www-prd:/var/www/html/nextcloud/data/updater-ocbkiyalgllo/backups/nextcloud-25.0.8.2-1688063446$ sudo -u www-data php /var/www/html/nextcloud/updater/updater.phar
Nextcloud Updater - version: v26.0.6-13-gef27ae9 dirty

Step 6 is currently in process. Please call this command later.

Which is logical as the .step file was still on "start step 6"

I backuped the .step file and try a first attempt changing it to "end step 5"
image
So I understood that the step 6 was not only deleting old files but also extracting which was already done.

So what I did is just changing the .step file again to "end step 6"... and there it worked
image

After that I disabled the maintenance mode manually in the config and went to the upgrader web page which said complete, and I ran the rest of the upgrade process in the GUI and everything worked

All in one all this convinced to me to finally move my nextcloud install to full docker to avoid those upgrade issues in the future. Not done yet but working on it

Thank you for your assistance !

@joshtrichards joshtrichards added needs review Needs review for current applicability/etc and removed needs info labels Oct 16, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
0. Needs triage bug feature: deletion Step 9 feature: extraction Step 6 hotspot: shipped.json Temporary tracker for these needs review Needs review for current applicability/etc
Projects
None yet
Development

No branches or pull requests

2 participants