Update to 13 fails - core/shipped.json is not available

nc13
update_problems

#1

Please help!

2018-02-11T14:12:20+0100 kFO3AJxF7m [info] rollbackChanges(“9”)
2018-02-11T14:12:20+0100 kFO3AJxF7m [info] unlink .step
2018-02-11T14:12:20+0100 kFO3AJxF7m [info] rollbackChanges - step >= 7
2018-02-11T14:12:20+0100 kFO3AJxF7m [info] end of rollbackChanges()
2018-02-11T14:15:08+0100 h0hwSEUwZj [info] request to updater
2018-02-11T14:15:08+0100 h0hwSEUwZj [info] currentStep()
2018-02-11T14:15:08+0100 h0hwSEUwZj [info] POST request for step "9"
2018-02-11T14:15:08+0100 h0hwSEUwZj [info] startStep(“9”)
2018-02-11T14:15:08+0100 h0hwSEUwZj [info] deleteOldFiles()
2018-02-11T14:15:08+0100 h0hwSEUwZj [error] POST request failed with other exception
2018-02-11T14:15:08+0100 h0hwSEUwZj [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /homepages/28/d19879336/htdocs/nextcloud/updater/index.php(1309): Updater->deleteOldFiles()
#1 {main}
File:/homepages/28/d19879336/htdocs/nextcloud/updater/index.php
Line:864


#2

Got the same Problem, but via Web-UI.
First of all it was "Delete old files Parsing response failed."
Then "Step 9 is currently in process"
And now this.


Retry Button does not help…

Some Logs:
2018-02-13T10:15:36+0100 rOOaN1U9yf [info] rollbackChanges(“9”)
2018-02-13T10:15:36+0100 rOOaN1U9yf [info] unlink .step
2018-02-13T10:15:36+0100 rOOaN1U9yf [info] rollbackChanges - step >= 7
2018-02-13T10:15:36+0100 rOOaN1U9yf [info] end of rollbackChanges()
2018-02-13T10:20:16+0100 6ptsavTnPN [info] request to updater
2018-02-13T10:20:16+0100 6ptsavTnPN [info] currentStep()
2018-02-13T10:20:16+0100 6ptsavTnPN [info] POST request for step "9"
2018-02-13T10:20:16+0100 6ptsavTnPN [info] startStep(“9”)
2018-02-13T10:20:16+0100 6ptsavTnPN [info] deleteOldFiles()
2018-02-13T10:20:16+0100 6ptsavTnPN [error] POST request failed with other exception
2018-02-13T10:20:16+0100 6ptsavTnPN [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1309): Updater->deleteOldFiles()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:864

2018-02-13T10:20:16+0100 6ptsavTnPN [info] rollbackChanges(“9”)
2018-02-13T10:20:16+0100 6ptsavTnPN [info] unlink .step
2018-02-13T10:20:16+0100 6ptsavTnPN [info] rollbackChanges - step >= 7
2018-02-13T10:20:16+0100 6ptsavTnPN [info] end of rollbackChanges()
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] request to updater
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] currentStep()
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] POST request for step "9"
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] startStep(“9”)
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] deleteOldFiles()
2018-02-13T10:21:26+0100 xVBxJf6LFb [error] POST request failed with other exception
2018-02-13T10:21:26+0100 xVBxJf6LFb [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1309): Updater->deleteOldFiles()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:864

2018-02-13T10:21:26+0100 xVBxJf6LFb [info] rollbackChanges(“9”)
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] unlink .step
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] rollbackChanges - step >= 7
2018-02-13T10:21:26+0100 xVBxJf6LFb [info] end of rollbackChanges()
2018-02-13T10:23:21+0100 zQWfsQ3eBc [info] request to updater
2018-02-13T10:23:21+0100 zQWfsQ3eBc [info] currentStep()
2018-02-13T10:23:21+0100 zQWfsQ3eBc [info] POST request for step "9"
2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] startStep(“9”)
2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] deleteOldFiles()
2018-02-13T10:23:22+0100 zQWfsQ3eBc [error] POST request failed with other exception
2018-02-13T10:23:22+0100 zQWfsQ3eBc [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1309): Updater->deleteOldFiles()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:864

2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] rollbackChanges(“9”)
2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] unlink .step
2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] rollbackChanges - step >= 7
2018-02-13T10:23:22+0100 zQWfsQ3eBc [info] end of rollbackChanges()
2018-02-13T10:23:26+0100 jfISe5DC1K [info] request to updater
2018-02-13T10:23:26+0100 jfISe5DC1K [info] currentStep()
2018-02-13T10:23:26+0100 jfISe5DC1K [info] POST request for step "9"
2018-02-13T10:23:26+0100 jfISe5DC1K [info] startStep(“9”)
2018-02-13T10:23:26+0100 jfISe5DC1K [info] deleteOldFiles()
2018-02-13T10:23:26+0100 jfISe5DC1K [error] POST request failed with other exception
2018-02-13T10:23:26+0100 jfISe5DC1K [error] Exception: Exception
Message: core/shipped.json is not available
Code:0
Trace:
#0 /var/www/nextcloud/updater/index.php(1309): Updater->deleteOldFiles()
#1 {main}
File:/var/www/nextcloud/updater/index.php
Line:864

2018-02-13T10:23:26+0100 jfISe5DC1K [info] rollbackChanges(“9”)
2018-02-13T10:23:26+0100 jfISe5DC1K [info] unlink .step
2018-02-13T10:23:26+0100 jfISe5DC1K [info] rollbackChanges - step >= 7
2018-02-13T10:23:26+0100 jfISe5DC1K [info] end of rollbackChanges()


Upgrade to 13.0.2 failed - stuck in the middle
#3

Update:
The issue is that all files have being deleted already:

ls -lah
total 44K
drwxr-xr-x  7 www-data www-data 4.0K Feb 13 10:12 .
drwxr-xr-x  5 root     root     4.0K Jan 23 12:49 ..
drwxr-xr-x 20 www-data www-data 4.0K Feb 13 10:00 apps
drwxr-xr-x  2 www-data www-data 4.0K Feb 13 10:00 config
drwxr-x--- 12 www-data www-data 4.0K Feb  5 06:25 data
-rw-r--r--  1 www-data www-data   57 Feb 13 10:00 index.php
-rw-r--r--  1 www-data www-data   57 Feb 13 10:00 public.php
-rw-r--r--  1 www-data www-data   57 Feb 13 10:00 remote.php
-rw-r--r--  1 www-data www-data   57 Feb 13 10:00 status.php
drwxr-xr-x  2 www-data www-data 4.0K Feb 13 10:00 themes
drwxr-xr-x  2 www-data www-data 4.0K Jan 25 14:03 updater

How to jump to next step?

Can I simply move files from …data/updater-xxxxxx/downloads/nextcloud/. do nextcloud root end disable maintenance mode?


Update from 13.0.1.1 to 13.0.2 Error
#4

Looks I solve it:

  1. go to your nextcloud installation path, for me it is /var/www/nextcloud and my data user is www-data

  2. if you will see something like this, proceed to step 3:

  1. go to Nextcloud update downloaded by Web-Updater

    cd data/updater-XXXXXXX/downloads/nextcloud/

  2. run to copy all files to nextcloud installation folder

    cp -rf * /var/www/nextcloud

  3. come back to nextcloud installation -->

    cd /var/www/nextcloud/

  4. for me it was needed to set correct permissions by running

    chown -R www-data:www-data *

  5. I try to disable maintenance mode by running

    sudo -u www-data php occ maintenance:mode --off,

    but this looks not needed as not all aps were up-to-date.

  6. then I run to start upgrade:

    sudo -u www-data php occ upgrade --no-app-disable --no-interaction

    …Checking for update of app workflowengine in appstore
    Checked for update of app “workflowengine” in appstore
    Starting code integrity check…
    Finished code integrity check
    Update successful
    Maintenance mode is kept active
    Reset log level

  7. Disable maintenance mode

    sudo -u www-data php occ maintenance:mode --off

  8. Its alive!!!:trophy:

P.S. I have only 2 errors: one is Cron job was executed long time ago and second one is some files inconsistency:
Results
=======
- core
- INVALID_HASH
- .htaccess
- FILE_MISSING
- .user.ini

But this is easy to solve.:grin:

Solution: go to your latest backup folder and copy files to nextcloud root:

cd data/updater-XXXXXXXXX/backups/nextcloud-XX.X.X.X/
sudo -u www-data cp .htaccess /var/www/nextcloud
sudo -u www-data cp .user.ini /var/www/nextcloud

Huge files Client upload error
Upgrade 11 to 12 error
Update from 13.0.1.1 to 13.0.2 Error
#5

Hi and thank you!
Is there a solution wihout using shell commands?
Can i somehow leave this update mode and let the installer do the rest?

When try to open the UI, i geht “Update in process.”

Thanks

Alex


#6

I try few different scenario before to end up with this. My goal was not to restore (I did it before already) but proceed with update:

  1. I try to restore my 12 version from the …data/updater-XXXXXXX/backup/nextcloud-12xxxx/ but if you reach it via https you will see the message that upgrade is ongoing. You need to set some occ commands any way to bring it back, but at the end it stucks in the same step 9.
  2. I try to copy data/updater-XXXXXXX/downloads/nextcloud/ to the folder and in the web I can see the same step stuck - deletion. If I proceed I end up with the same empty folder and stuck in this step 9.

Basically post above is only one procedure how to work around for me. I do not thing that if you live it as it is it will brings you some happiness, besides somebody will come and confirm opposite :grin:.

Everything was already done by the installer, except copy new version into correct folder. After this you need to run occ upgrade from the terminal, otherwise you will stuck with scenario 2 from above when everything was deleted again.


#7

Thank you!
I coped the files from the update using my ftp-software.
Then i startet the UI.
The UI went to a specal update mode updating all addins.
After that was redirected to login.


#8

Glad for you! Have done the same, but got another error that some apps were incomparable with NC13 and could not be deleted or disabled, this was the reason why I run command occ upgrade --no-app-disable to tell updater to not touch my apps.


#9

Especially with NC13 this is a bad idea. There are some issues with older apps from NC12 and these apps should better be disabled.
Furthermore the update will update many apps during the update process. Some apps have a version for NC12 and a version for NC13.

My suggestion: disable most of your apps, run the update, run the app updates and re-enable the apps. In my opinion that is the best way to avoid upgrade issues.


#10

I did manual App clean-up after install. Some Apps were not enabled (this is good), but exactly they were incompatible with NC13. I delete them and did manual update of the rest of Apps. Otherwise Web Updater cause an error and do not want to proceed. Do not know why it could not delete or disable some apps, I did not noticed what exactly App was causing the issue, but for me it was easy solution to do like this.


#11

Hey I made an account just to tell whoever else has this issue how I solved it without using occ, very easily:

Just go to your nextcloud installation path, create the folder core and in that folder create an empty file called shipped.json.
Then go back to the installer web-page and hit retry!

That did it for me so good luck!


#12

@xaos Thanks a lot for sharing your solution! :+1:


#13

Update to 13.05… Still the same Problem :laughing:


I did as you mentioned inside of the nextcloud folder (www-data is my nextcloud user):

sudo -u www-data mkdir core
sudo -u www-data touch core/shipped.json

and hit retry… have the same error after while :rofl: core folder with json file were successfully deleted… It does not help for me :expressionless: Only post from above works…


#14

Ich had the same problems with 13.0.4 to 13.0.5. Update with the built-in updater was not possible. After a few tries I did the update manually. That worked for me.