nextcloud / nextcloudpi

📦 Build code for NextcloudPi: Raspberry Pi, Odroid, Rock64, curl installer...
https://nextcloudpi.com
2.52k stars 295 forks source link

Rolling back to backup after successful upgrade 26.0.3 to 27.0.1 ! #1891

Closed ssdrun closed 4 months ago

ssdrun commented 6 months ago

Hi, Each time i perform an upgrade of nextcloud i must stop the process at the end ( with a CTRL+C key) because the script want to rollback to backup even if the upgrade is successful . Reason is $ rm: cannot remove '/var/www/nextcloud-old/swap': Operation not permitted Thanks for watching. Sam

Here the entire update process with the rolling back line at the end: Running nc-update-nextcloud Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Current Nextcloud version 26.0.3.2 Available Nextcloud version 27.0.1 Download Nextcloud 27.0.1... Back up current instance... Cannot load Zend OPcache - it was already loaded check free space... Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Maintenance mode enabled backup database... backup files... backup /var/www/nextcloud-bkp_20240402_1712033837.tar.gz generated Cannot load Zend OPcache - it was already loaded Maintenance mode disabled Storing backup at '/var/www/nextcloud-bkp_20240402_1712033837-26.0.3.2.tar.gz'... Install Nextcloud 27.0.1... Fix permissions... Upgrade... Cannot load Zend OPcache - it was already loaded Nextcloud or one of the apps require upgrade - only a limited number of commands are available You may use your browser or the occ upgrade command to do the upgrade Setting log level to debug Turned on maintenance mode Updating database schema Updated database Disabled incompatible app: bookmarks Disabled incompatible app: calendar Disabled incompatible app: carnet Disabled incompatible app: contacts Disabled incompatible app: cookbook Disabled incompatible app: files_bpm Disabled incompatible app: files_mindmap Disabled incompatible app: maps Disabled incompatible app: memories Disabled incompatible app: notify_push Disabled incompatible app: passwords Disabled incompatible app: ransomware_protection Disabled incompatible app: recognize Disabled incompatible app: tasks Updating ... Updated to 1.15.0 Updating ... Updated to 1.15.1 Updating ... Updated to 1.17.0 Updating ... Updated to 2.3.0 Updating ... Updated to 5.0.0 Updating ... Updated to 1.22.0 Updating ... Updated to 2.19.0 Updating ... Updated to 1.10.0 Updating ... Fix broken values of calendar objects

Starting ... 0/0 [>---------------------------] 0% Clean up old calendar subscriptions from deleted users that were not cleaned-up

Starting ... 0/0 [->--------------------------] 0% Updated to 1.27.0 Updating ... Updated to 1.19.0 Updating ... Updated to 1.19.0 Updating ... Updated to 1.17.0 Updating ... Updated to 1.20.0 Updating ... Updated to 1.17.0 Updating ... Updated to 2.9.0 Updating ... Updated to 1.17.0 Updating ... Updated to 2.16.0 Updating ... Updated to 2.15.0 Updating ... Updated to 1.17.0 Updating ... Migrate old user accessibility config

Starting ... 0/0 [--->------------------------] 0% Updated to 2.2.0 Updating ... Updated to 2.7.0 Updating ... Updated to 1.8.0 Updating ... Updated to 7.7.0 Updating ... Updated to 1.17.0 Updating ... Updated to 2.8.0 Updating ... Updated to 1.6.0 Updating ... Updated to 2.12.0 Updating ... Updated to 1.11.0 Updating ... Updated to 1.17.0 Updating ... Updated to 1.6.0 Updating ... Updated to 1.2.0 Updating ... Updated to 1.17.0 Updating ... Updated to 1.9.0 Updating ... Updated to 3.8.0 Updating ... Updated to 1.16.0 Updating ... Updated to 1.17.0 Updating ... Updated to 2.1.0 Updating ... Updated to 1.7.0 Starting code integrity check... Finished code integrity check Update successful Turned off maintenance mode Resetting log level Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Check indices of the share table. Check indices of the filecache table. Check indices of the twofactor_providers table. Check indices of the login_flow_v2 table. Check indices of the whats_new table. Check indices of the cards table. Check indices of the cards_properties table. Check indices of the calendarobjects_props table. Check indices of the schedulingobjects table. Check indices of the oc_properties table. Check indices of the oc_jobs table. Check indices of the oc_direct_edit table. Check indices of the oc_preferences table. Check indices of the oc_mounts table. Check indices of the oc_systemtag_object_mapping table. Adding systag_by_tagid index to the oc_systemtag_object_mapping table, this can take some time... oc_systemtag_object_mapping table updated successfully. Adding additional textstep_session index to the oc_text_steps table, this can take some time... oc_text_steps table updated successfully. Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Check columns of the comments table. Done. Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Check primary keys. Done. Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded All tables already up to date! Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Cannot load Zend OPcache - it was already loaded Update completed successfully. Backup stored at /media/NCDATADRIVE/ncdata/data/ncp-update-backups/nextcloud-bkp_20240402_1712033837-26.0.3.2.tar.gz Clean up... rm: cannot remove '/var/www/nextcloud-old/swap': Operation not permitted Abort Clean up... rm: cannot remove '/var/www/nextcloud-old/swap': Operation not permitted Rolling back to backup /media/NCDATADRIVE/ncdata/data/ncp-update-backups/nextcloud-bkp_20240402_1712033837-26.0.3.2.tar.gz... check free space... ^CDone. Press any key...

theCalcaholic commented 5 months ago

Do you have a (manually created) swap file inside your nextcloud directory?

theCalcaholic commented 4 months ago

closed due to inactivity