So I am facing issue with the latest update, while upgrading with web ui upgrader the site suddenly dropped and changed to 404 Not Found. Like the update removed the main nextcloud page. I did not changed a thing in nc config nor apache config, just pressed start update and waited, then I come back and see 404 error. Below I provide you with everything I could find.
summary
After starting a web UI upgrade, the instance began returning 404 errors despite the updater reporting success. No config changes were made pre-upgrade.
Nextcloud Server version:
30.0.6
Operating system and version:
Ubuntu 22.04.5 LTS
Web server and version:
Apache/2.4.52 (Ubuntu)
Reverse proxy and version:
No
PHP version:
8.1.2
Is this the first time you've seen this error?
Yes
When did this problem seem to first start?
Mid-upgrade process via web updater
Installation method
Bare Metal/Archive
Are you using Cloudflare, mod_security, or similar?
No
nc config(redacted my domain name)
sudo -u www-data php occ config:list system
{
"system": {
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"my.domain",
"my.domain\/nextcloud"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "30.0.6.2",
"overwrite.cli.url": "https:\/\/my.domain\/nextcloud",
"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": false,
"htaccess.RewriteBase": "\/",
"maintenance_window_start": 1,
"theme": "",
"loglevel": 2
}
}
nc logs
{"reqId":"...","exception":{"Exception":"OC\\DB\\Exceptions\\DbalException","Message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","Code":0,"Trace":[{"file":"/var/www/html/nextcloud/lib/private/DB/Connection.php","line":402,"function":"wrap","class":"OC\\DB\\Exceptions\\DbalException","type":"::"},{"file":"/var/www/html/nextcloud/lib/private/DB/ConnectionAdapter.php","line":95,"function":"executeQuery","class":"OC\\DB\\Connection","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/DB/QueryBuilder/QueryBuilder.php","line":292,"function":"executeQuery","class":"OC\\DB\\ConnectionAdapter","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php","line":127,"function":"executeQuery","class":"OC\\DB\\QueryBuilder\\QueryBuilder","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/BackgroundJob/JobList.php","line":47,"function":"has","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Repair/AddCleanupDeletedUsersBackgroundJob.php","line":28,"function":"add","class":"OC\\BackgroundJob\\JobList","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Repair.php","line":101,"function":"run","class":"OC\\Repair\\AddCleanupDeletedUsersBackgroundJob","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":263,"function":"run","class":"OC\\Repair","type":"->"},{"file":"/var/www/html/nextcloud/lib/private/Updater.php","line":98,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/html/nextcloud/core/ajax/update.php","line":168,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/html/nextcloud/lib/private/DB/Connection.php","Line":402,"message":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1","tables":["oc_jobs","oc_appconfig","oc_migrations","oc_filecache","oc_mail_local_messages","oc_mail_messages","oc_oauth2_access_tokens","oc_oauth2_clients","oc_filecache_extended","oc_files_metadata","oc_files_metadata_index"],"reads":["oc_jobs"],"exception":{},"CustomMessage":"dirty table reads: SELECT `id` FROM `*PREFIX*jobs` WHERE (`class` = :dcValue1) AND (`argument_hash` = :dcValue2) LIMIT 1"}}
{"reqId":"...","level":0,"time":"2025-02-19T22:31:05+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"serverDI","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"The requested alias \"IntegrityCodeChecker\" is deprecated. Please request \"OC\\IntegrityCheck\\Checker\" directly. This alias will be removed in a future Nextcloud version.","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.5.1","data":{"app":"serverDI"}}
{"reqId":"...","level":1,"time":"2025-02-19T22:31:05+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"\\OC\\Updater::startCheckCodeIntegrity: Starting code integrity check...","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.5.1","data":{"app":"updater"}}
{"reqId":"...","level":1,"time":"2025-02-19T22:31:11+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"\\OC\\Updater::finishedCheckCodeIntegrity: Finished code integrity check","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.5.1","data":{"app":"updater"}}
{"reqId":"...","level":1,"time":"2025-02-19T22:31:11+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"\\OC\\Updater::updateEnd: Update successful","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.6.2","data":{"app":"updater"}}
{"reqId":"...","level":1,"time":"2025-02-19T22:31:11+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"\\OC\\Updater::maintenanceDisabled: Turned off maintenance mode","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.6.2","data":{"app":"updater"}}
{"reqId":"...","level":1,"time":"2025-02-19T22:31:11+00:00","remoteAddr":"[REDACTED_IP]","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=[REDACTED_TOKEN]","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:128.0) Gecko/20100101 Firefox/128.0","version":"30.0.6.2","data":{"app":"updater"}}
and app list
Enabled:
- activity: 3.0.0
- app_api: 4.0.6
- bruteforcesettings: 3.0.0
- calendar: 5.1.0
- circles: 30.0.0
- cloud_federation_api: 1.13.0
- comments: 1.20.1
- contactsinteraction: 1.11.0
- dashboard: 7.10.0
- dav: 1.31.1
- deck: 1.14.3
- federatedfilesharing: 1.20.0
- federation: 1.20.0
- files: 2.2.0
- files_downloadlimit: 3.0.0
- files_pdfviewer: 3.0.0
- files_reminders: 1.3.0
- files_sharing: 1.22.0
- files_trashbin: 1.20.1
- files_versions: 1.23.0
- firstrunwizard: 3.0.0
- logreader: 3.0.0
- lookup_server_connector: 1.18.0
- mail: 4.2.0
- nextcloud_announcements: 2.0.0
- notifications: 3.0.0
- oauth2: 1.18.1
- password_policy: 2.0.0
- photos: 3.0.2
- privacy: 2.0.0
- provisioning_api: 1.20.0
- recommendations: 3.0.0
- related_resources: 1.5.0
- richdocuments: 8.5.3
- serverinfo: 2.0.0
- settings: 1.13.0
- sharebymail: 1.20.0
- support: 2.0.0
- survey_client: 2.0.0
- systemtags: 1.20.0
- tasks: 0.16.1
- text: 4.1.0
- theming: 2.6.0
- twofactor_backupcodes: 1.19.0
- unroundedcorners: 1.1.4
- updatenotification: 1.20.0
- user_status: 1.10.0
- viewer: 3.0.0
- weather_status: 1.10.0
- webhook_listeners: 1.1.0-dev
- workflowengine: 2.12.0
Disabled:
- admin_audit: 1.20.0
- encryption: 2.18.0
- files_external: 1.22.0
- occweb: 0.2.2 (installed 0.2.2)
- suspicious_login: 8.0.0
- twofactor_nextcloud_notification: 4.0.0
- twofactor_totp: 12.0.0-dev
- user_ldap: 1.21.0