Update Problem from 31.0.1 to 31.0.2 (Delete old files)

Hi,

first thing first: i´m bloody new to all the nextcloud/linux/raspberrypi stuff.
I would appreciate if you could please tell me in simple ways what i have to do, thanks <3

I tried to update my nextcloud installation via the web installer and got this msg:

After that i searched the web and did find/execute this command via putty:

sudo -u www-data php -f /var/www/html/updater/updater.phar

I really have no idea how to handle with that core/shipped.json…

This is my configuration on a Raspberrypi5:

  • Nextcloud Server version (e.g., 29.x.x):
    • 31.0.1
  • Operating system and version (e.g., Ubuntu 24.04):
    • Raspberrypi Bookworm 12
  • Web server and version (e.g, Apache 2.4.25):
    • Apache 2

If you need further information please tell me.
Thanks alot for support <3

it should work similar to the old solution … download the actual *.tar.gz or *.zip of the nextcloud anbd copy over the missing json file into the /core folder.
Before you re-start the upgrade process again, be sure that all files in place are in ownership of your www-user!

see: Delete old files core/shipped.json is not available - #17 by cptechnik

Thanks for the help!

I did this and restartet the update. But now i get the next message:

[ ] Delete old files ...PHP Warning:  unlink(/var/www/html/updater/../ocm-provider/index.php): Permission denied in phar:///var/www/html/updater/updater.phar/lib/Updater.php on line 908
[✘] Delete old files failed
Could not unlink: /var/www/html/updater/../ocm-provider/index.php

Edit A) i did find this:

so i used:

sudo chown -R www-data:www-data /var/www/html

and got back to:

needed to make the core directory with the json file again, again set the rights. than it worked finaly.

1 Like
1 Like

Glad you found a workaround.

To find out what originally happened you’ll need to check your updater.log from the original web-based run of the Updater.

1 Like

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