Support intro
Sorry to hear you’re facing problems. 
The community help forum (help.nextcloud.com) is for home and non-enterprise users. Support is provided by other community members on a best effort / “as available” basis. All of those responding are volunteering their time to help you.
If you’re using Nextcloud in a business/critical setting, paid and SLA-based support services can be accessed via portal.nextcloud.com where Nextcloud engineers can help ensure your business keeps running smoothly.
Getting help
In order to help you as efficiently (and quickly!) as possible, please fill in as much of the below requested information as you can.
Before clicking submit: Please check if your query is already addressed via the following resources:
- Official documentation (searchable and regularly updated)
- How to topics and FAQs
- Forum search
(Utilizing these existing resources is typically faster. It also helps reduce the load on our generous volunteers while elevating the signal to noise ratio of the forums otherwise arising from the same queries being posted repeatedly).
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can. ![]()
The Basics
- Nextcloud Server version (e.g., 29.x.x):
31.0.3/32.0.4
- Operating system and version (e.g., Ubuntu 24.04):
Debian GNU/Linux 12 \n \l
- Web server and version (e.g, Apache 2.4.25):
apache2/oldstable,now 2.4.66-1~deb12u1 amd64
- Reverse proxy and version _(e.g. nginx 1.27.2)
None
- PHP version (e.g, 8.3):
8.2
- Is this the first time you’ve seen this error? (Yes / No):
Yes
- When did this problem seem to first start?
When updater.phar ran "occ upgrade"
- Installation method (e.g. AlO, NCP, Bare Metal/Archive, etc.)
Proxmox LXC with Debian, Apache. Nextcloud installed from Tarball.
- Are you using CloudfIare, mod_security, or similar? (Yes / No)
No
Summary of the issue you are facing:
I updated my self-hosted installation of Nextcloud from 32.0.3 to 32.0.4 using updater.phar. The update proceeded normally, until it came to running “occ upgrade”.
When running it, I see the following log output:
Should the "occ upgrade" command be executed? [Y/n]
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: All tables already have the correct collation -> nothing to do
Repair step: Copy data from accounts table when migrating from ownCloud
Repair step: Drop account terms table when migrating from ownCloud
Updating database schema
Exception: Database error when running migration 33000Date20251209123503 for app core
Index "mounts_user_root_path_index" does not exist on table "oc_mounts".
Update failed
Maintenance mode is kept active
Resetting log level
"occ upgrade" failed - return code: 5
This can be reproduced by either rerunning the updater or by running “occ upgrade” manually. While searching for a solution, I found the suggestion to run “occ db:add-missing-indices”. I ran the command, getting the following log output (no mention of the missing index):
Adding additional fs_parent index to the oc_filecache table, this can take some time...
oc_filecache table updated successfully.
Adding additional fs_name_hash index to the oc_filecache table, this can take some time...
oc_filecache table updated successfully.
Adding additional schedulobj_lastmodified_idx index to the oc_schedulingobjects table, this can take some time...
oc_schedulingobjects table updated successfully.
Adding additional properties_name_path_user index to the oc_properties table, this can take some time...
oc_properties table updated successfully.
Adding additional 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 systag_by_objectid index to the oc_systemtag_object_mapping table, this can take some time...
oc_systemtag_object_mapping table updated successfully.
Adding additional systag_objecttype index to the oc_systemtag_object_mapping table, this can take some time...
oc_systemtag_object_mapping table updated successfully.
Adding additional unique_category_per_user index to the oc_vcategory table, this can take some time...
oc_vcategory table updated successfully.
Adding additional dav_shares_resourceid_type index to the oc_dav_shares table, this can take some time...
oc_dav_shares table updated successfully.
Adding additional dav_shares_resourceid_access index to the oc_dav_shares table, this can take some time...
oc_dav_shares table updated successfully.
Adding additional calobjects_by_uid_index index to the oc_calendarobjects table, this can take some time...
oc_calendarobjects table updated successfully.
Adding additional oc_npushhash_di index to the oc_notifications_pushhash table, this can take some time...
oc_notifications_pushhash 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.
Adding additional cards_prop_abid_name_value index to the oc_cards_properties table, this can take some time...
Removing cards_prop_abid index from the oc_cards_properties table
oc_cards_properties table updated successfully.
However, I still could not run the upgrade successfully - same error as before.
How can I get my Nextcloud installation to complete the update?
Steps to replicate it (hint: details matter!):
- Have a running Nextcloud 32.0.3
- Run upgrader.phar
- Observe issue
Log entries
Nextcloud
Please provide the log entries from your Nextcloud log that are generated during the time of problem (via the Copy raw option from Administration settings->Logging screen or from your nextcloud.log located in your data directory). Feel free to use a pastebin/gist service if necessary.
{"reqId":"Ilzjzdx6h07seTPesUCc","level":0,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","scriptName":"./occ","message":"starting upgrade from 32.0.3.2 to 32.0.4.1","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"core"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Repair MySQL collation","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"OC\\Repair\\Events\\RepairInfoEvent: Repair info: All tables already have the correct collation -> nothing to do","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Copy data from accounts table when migrating from ownCloud","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"OC\\Repair\\Events\\RepairStepEvent: Repair step: Drop account terms table when migrating from ownCloud","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"\\OC\\Updater::dbUpgradeBefore: Updating database schema","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":3,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"no app in context","method":"","url":"--","scriptName":"./occ","message":"Database error when running migration 33000Date20251209123503 for app core\nIndex \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\".","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"exception":{"Exception":"Exception","Message":"Database error when running migration 33000Date20251209123503 for app core\nIndex \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\".","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/Updater.php","line":285,"function":"migrate","class":"OC\\DB\\MigrationService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":225,"function":"doCoreUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":100,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/core/Command/Upgrade.php","line":193,"function":"upgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1083,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":90,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":33,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/lib/private/DB/MigrationService.php","Line":403,"Previous":{"Exception":"Doctrine\\DBAL\\Schema\\Exception\\IndexDoesNotExist","Message":"Index \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\".","Code":50,"Trace":[{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/SchemaException.php","line":88,"function":"new","class":"Doctrine\\DBAL\\Schema\\Exception\\IndexDoesNotExist","type":"::"},{"file":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Table.php","line":210,"function":"indexDoesNotExist","class":"Doctrine\\DBAL\\Schema\\SchemaException","type":"::"},{"file":"/var/www/nextcloud/core/Migrations/Version33000Date20251209123503.php","line":42,"function":"dropIndex","class":"Doctrine\\DBAL\\Schema\\Table","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/MigrationService.php","line":508,"function":"changeSchema","class":"OC\\Core\\Migrations\\Version33000Date20251209123503","type":"->"},{"file":"/var/www/nextcloud/lib/private/DB/MigrationService.php","line":399,"function":"executeStep","class":"OC\\DB\\MigrationService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":285,"function":"migrate","class":"OC\\DB\\MigrationService","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":225,"function":"doCoreUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":100,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/core/Command/Upgrade.php","line":193,"function":"upgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Command/Command.php","line":326,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":1083,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":324,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/3rdparty/symfony/console/Application.php","line":175,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/lib/private/Console/Application.php","line":187,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/console.php","line":90,"function":"run","class":"OC\\Console\\Application","type":"->"},{"file":"/var/www/nextcloud/occ","line":33,"args":["/var/www/nextcloud/console.php"],"function":"require_once"}],"File":"/var/www/nextcloud/3rdparty/doctrine/dbal/src/Schema/Exception/IndexDoesNotExist.php","Line":15},"message":"Database error when running migration 33000Date20251209123503 for app core\nIndex \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\".","exception":{},"CustomMessage":"Database error when running migration 33000Date20251209123503 for app core\nIndex \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\"."}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":3,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"\\OC\\Updater::failure: Exception: Database error when running migration 33000Date20251209123503 for app core\nIndex \"mounts_user_root_path_index\" does not exist on table \"oc_mounts\".","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":3,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
{"reqId":"Ilzjzdx6h07seTPesUCc","level":1,"time":"2026-01-15T16:44:20+00:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","scriptName":"./occ","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"32.0.3.2","occ_command":["./occ","upgrade"],"data":{"app":"updater"}}
Web Browser
If the problem is related to the Web interface, open your browser inspector Console and Network tabs while refreshing (reloading) and reproducing the problem. Provide any relevant output/errors here that appear.
PASTE
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
No log entries from the time of update.
Nextcloud
The output of occ config:list system or similar is best, but, if not possible, the contents of your config.php file from /path/to/nextcloud is fine (make sure to remove any identifiable information!):
sudo -u www-data ./occ config:list system
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
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"web01.fritz.box",
"web01",
"my.actual.domain.com"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "32.0.3.2",
"overwrite.cli.url": "http:\/\/localhost",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": true,
"loglevel": 2,
"data-fingerprint": "d99909a6a64c860690d65f033f8f56f0"
}
}
Apps
The output of occ app:list (if possible).
sudo -u www-data ./occ app:list
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
Enabled:
- activity: 5.0.0-dev.0
- app_api: 32.0.0
- bruteforcesettings: 5.0.0-dev.0
- circles: 32.0.0
- cloud_federation_api: 1.16.0
- comments: 1.22.0
- contactsinteraction: 1.13.1
- dashboard: 7.12.0
- dav: 1.34.2
- federatedfilesharing: 1.22.0
- federation: 1.22.0
- files: 2.4.0
- files_downloadlimit: 5.0.0-dev.0
- files_pdfviewer: 5.0.0-dev.0
- files_reminders: 1.5.0
- files_sharing: 1.24.1
- files_trashbin: 1.22.0
- files_versions: 1.25.0
- firstrunwizard: 5.0.0-dev.0
- logreader: 5.0.0-dev.0
- lookup_server_connector: 1.20.0
- nextcloud_announcements: 4.0.0-dev.0
- notifications: 5.0.0-dev.0
- oauth2: 1.20.0
- password_policy: 4.0.0-dev.0
- photos: 5.0.0-dev.1
- privacy: 4.0.0-dev.0
- profile: 1.1.0
- provisioning_api: 1.22.0
- recommendations: 5.0.0-dev.0
- related_resources: 3.0.0-dev.0
- serverinfo: 4.0.0-dev.0
- settings: 1.15.1
- sharebymail: 1.22.0
- support: 4.0.0-dev.0
- survey_client: 4.0.0-dev.0
- systemtags: 1.22.0
- text: 6.0.1
- theming: 2.7.0
- twofactor_backupcodes: 1.21.0
- updatenotification: 1.22.0
- user_status: 1.12.0
- viewer: 5.0.0-dev.0
- weather_status: 1.12.0
- webhook_listeners: 1.3.0
- workflowengine: 2.14.0
Disabled:
- admin_audit: 1.22.0
- encryption: 2.20.0
- files_external: 1.24.0
- files_rightclick: 0.15.1 (installed 1.6.0)
- suspicious_login: 10.0.0-dev.0
- twofactor_nextcloud_notification: 6.0.0-dev.0
- twofactor_totp: 14.0.0
- user_ldap: 1.23.0
Tips for increasing the likelihood of a response
- Use the
preformatted textformatting option in the editor for all log entries and configuration output. - If screenshots are useful, feel free to include them.
- If possible, also include key error output in text form so it can be searched for.
- Try to edit log output only minimally (if at all) so that it can be ran through analyzers / formatters by those trying to help you.