I was running NC12B2 UB1604 and I was having the update button not working as a known problem.
I then did the CLI update: sudo -u www-data php updater/updater.phar
It got stuck at delete old files…
[â] Check for expected files
[â] Check for write permissions
[â] Enable maintenance mode
[â] Create backup
[â] Downloading
[â] Verify integrity
[â] Extracting
[â] Replace entry points
[ ] Delete old files …PHP Warning: unlink(/var/www/html/nextcloud/updater/…/core/skeleton.old/Nextcloud.mp4): Permission denied in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 759
[â] Delete old files failed
Could not unlink: /var/www/html/nextcloud/updater/…/core/skeleton.old/Nextcloud.mp4
Update failed. To resume or retry just execute the updater again.
root@nextcloud:/var/www/html/nextcloud# sudo -u www-data php updater/updater.phar
Nextcloud Updater - version: v11.0.3-19-g3e2d9de
When Running the updater again as suggested:
] Extracting …PHP Warning: require(/var/www/html/nextcloud/updater/…/version.php): failed to open stream: No such file or directory in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 582
PHP Fatal error: require(): Failed opening required ‘/var/www/html/nextcloud/updater/…/version.php’ (include_path=’.:/usr/share/php’) in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 582
At the moment my nextcloud is totally down hanging at frontpage with Update in Process.
I did try to set the maintenance option to false but no luck.
How should I get the updater to work again for now I’m stuck as from the tips on several forum sections I could not get it to work.
Thnx Jason! But how do I reset the updater to retry again after I changed permission; I don’t get the updater status changed at this moment.
My concern is as well to the fact that I did say at the 1st error to just rerun updater again but it just made it worse:
Extracting …PHP Warning: require(/var/www/html/nextcloud/updater/…/version.php): failed to open stream: No such file or directory in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 582
PHP Fatal error: require(): Failed opening required ‘/var/www/html/nextcloud/updater/…/version.php’ (include_path=’.:/usr/share/php’) in phar:///var/www/html/nextcloud/updater/updater.phar/lib/Updater.php on line 582
Thnx again Jason: well… the copy of backup to webroot & then rename all worked however still: "Update in process."
Even after a reboot; any suggestions to go forward?
oh dear oh dear oh dear I have no occ any longer in 12.x I only see it in old NC11.03 backup directory’s…
I have maybe an old mysqlback from yesterday … I hope … let me check
Cache is cleared already I did try to logon from several different PC’s and even different browsers; all stuck at this frontpage. I can try to roll back to an disaster recovery image with NC12B1 but preferred not as I loose then some data and users
Users perhaps, but you have your current data directory in place so extracting the new data since will be no difficult task.
Hang fire for the others a moment, I’ll see if I can find reference to this error elsewhere.
Edit, you could also manually update, like the old days. Get an install up and running from the latest zip, copy in your data, config, optionally any apps, themes and restore the database to the current state (you took a backup before restoring the previous version?) Or run occ update to bring the 11.x db up to 12.
Jason, OCC is not working neither existing in my entire NC12; it was in my old 11.0x backup folder but it seems with the upgrade from 11.0.3 to NC12B1/B2 my occ got removed without me noticing it. Is this a bug or known?
Without further updates I’m planning to destroy my NC12 and either build it up from scratch with NC12.0 and ask users to move over the data again manually that they still like.
cheers & thnx for helping out today.
I don’t see anything on searching that mentions OCC disappearing. You’ll do well to raise an issue on https:/;github.com/nextcloud/server/issues
So is OCC working when you’re in the webroot of the “restored” backup? I don’t think you’re at the point of binning it and migrating users just yet, you still have a database and a copy of the data directory, so you should be more than capable of restoring this either into a backup or a new instance.
Cool! If this turns out to be a real upgrade bug and you were first to find it, you earn a shirt
Be sure to give all info needed to fix it, I see you didn’t use the full template to give info like PHP version, logs etc which will probably be needed to verify and fix it.