i had working nextcloud environment with 21.0.5 version. I’ve decided to upgrade my system to 22 branch.
Using WebUI upgrade I can’t finish it - upgrade process even if it is finished, starts again after accessing main page. Any idea how to finish the upgrade process?
Nextcloud version: 22.2.0.2
Operating system and version: Debian 11
Apache or nginx version: Apache 2.4.51
PHP version: 7.4
you might have some luck using occ commands to trouble shoot. You’ll need to install sudo and you must run this from within the nextcloud folder. The commands to get in are: sudo -u www php occ <= This will display the commands available to you… quite powerful. there is a “repair” feature in the list…
update filecache
maintenance:mimetype:update-js Update mimetypelist.js
maintenance:mode set maintenance mode
maintenance:repair repair this installation
maintenance:theme:update Apply custom theme changes
maintenance:update:htaccess Updates the .htaccess file
I feel your pain with upgrade failure. Try using occ and see what it tells you.
Thx for your response but your recipes didn’t helped. Still, I can see the upgrade form on the main page of nextcloud. Below I’ve pasted the output from commands that you suggested.
Best Regards
Daniel
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:mimetype:update-js
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
mimetypelist.js is updated
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:mode --on
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
Maintenance mode enabled
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:repair
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
Repair MySQL collation
All tables already have the correct collation → nothing to do
Repair mime types
Clean tags and favorites
0 tags of deleted users have been removed.
0 tags for delete files have been removed.
0 tag entries for deleted tags have been removed.
0 tags with no entries have been removed.
Repair invalid shares
Move .step file of updater to backup location
Add move avatar background job
Repair step already executed
Add preview cleanup background jobs
Fix potential broken mount points
No mounts updated
Repair language codes
Install new core bundle components
Add log rotate job
Clear frontend caches
Image cache cleared
SCSS cache cleared
JS cache cleared
Clear every generated avatar on major updates
Add preview background cleanup job
Queue a one-time job to cleanup old backups of the updater
Cleanup invalid photocache files for carddav
Add background job to cleanup login flow v2 tokens
Remove potentially over exposing share links
No need to remove link shares.
Clear access cache of projects
Reset generated avatar flag
Keep legacy encryption enabled
Check encryption key format
Remove old dashboard app config data
Add job to cleanup the bruteforce entries
Queue a one-time job to check for user uploaded certificates
Repair DAV shares
Add background job to set the lookup server share state for users
Update name of the stored view
Upgrading Circles App
Fix component of birthday calendars
6 birthday calendars updated.
Regenerating birthday calendars to use new icons and fix old birthday events without year
Repair step already executed
Fix broken values of calendar objects
0 [->--------------------------]
Registering building of calendar search index as background job
Repair step already executed
Register building of social profile search index as background job
Registering background jobs to update cache for webcal calendars
Added 0 background jobs to update webcal calendars
Registering building of calendar reminder index as background job
Repair step already executed
Clean up orphan event and contact data
0 events without a calendar have been cleaned up
0 properties without an events have been cleaned up
0 changes without a calendar have been cleaned up
0 cached events without a calendar subscription have been cleaned up
0 changes without a calendar subscription have been cleaned up
0 contacts without an addressbook have been cleaned up
0 properties without a contact have been cleaned up
0 changes without an addressbook have been cleaned up
Remove activity entries of private events
Removed 0 activity entries
Fix the share type of guest shares when migrating from ownCloud
Copy the share password into the dedicated column
Set existing shares as accepted
Update OAuth token expiration times
Switches from default updater server to the customer one if a valid subscription is available
Repair step already executed
Send an admin notification if monthly report is disabled
Add background job to check for backup codes
Insert UUIDFix background job for user and group in batches
Remove deprecated refresh time markers for LDAP user records
Populating added database structures for workflows
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:theme:update
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
mimetypelist.js is updated
Image cache cleared
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:update:htaccess
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
.htaccess has been updated
root@nextcloud:/var/www/nextcloud# sudo -u www-data php occ maintenance:mode --off
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
Maintenance mode disabled