Process I followed was due to my passwords on all accounts simultaneously expiring + not having automatic renewal of letsencrypt for some reason. Seems cron is not running. Strange, so I decided to fix credentials and update to a more current stable:
nc-updateis current for ncp interface.
nc-adminpassword from the panel.
- “invalid parameters” error as space characters are not supported, so adjusted password.
- Prune older backups to recover disk space.
- Update to 20.0.11 automatically began upon login to webui as admin.
nc-update-nc-appsto manually update all apps.
- No output displayed, but I see the apps have not actually updated when manually directed via 4443 or ncpconfig.
- auto updates are enabled, but not working.
- Update to 21.0.3 manually from
<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML 2.0//EN"> <html><head> <title>504 Gateway Timeout</title> </head><body> <h1>Gateway Timeout</h1> <p>The gateway did not receive a timely response from the upstream server or application.</p> </body></html>
Now an error crops up under
Error occurred while checking server setup
Take a break to drink some water… and repeating the update magically now works a few minutes later.
Update app "polls" from appstore Repair step: Polls - Remove indices and foreign key constraints Repair step: Polls - Delete duplicates and orphaned records Repair step: Polls - Create indices and foreign key constraints An error occurred.
- Disable Maintenance Mode, then update process continues…
Polls (polls) Please make sure that the database, the config folder and the data folder have been backed up before proceeding.
Preparing update Set log level to debug Turned on maintenance mode Repair step: Repair MySQL collation Repair info: All tables already have the correct collation -> nothing to do Repair step: Repair SQLite autoincrement Repair step: Copy data from accounts table when migrating from ownCloud Repair step: Drop account terms table when migrating from ownCloud Updating database schema Updated database Repair step: Polls - Remove indices and foreign key constraints Repair step: Polls - Delete duplicates and orphaned records Repair step: Polls - Create indices and foreign key constraints An error occurred. Please reload the page.
- Disable Maintenance Mode again and reload. Attempt update to 21.0.3 again… lol, it says it has already succeeded.
The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running "occ db:add-missing-indices" those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster. Missing index "fs_size" in table "oc_filecache".
$ sudo -u www-data php /var/www/nextcloud/occ db:add-missing-indices
Your version is up to date.
17 apps have an update available
5 apps have an update available
An error occured during the request. Unable to proceed.
- Now I see a ton of these under
Reloaded the browser and now all of those are gone… everything is enabled again.