The Basics
- Nextcloud Server version (e.g., 29.x.x): 34.0.4
- Operating system and version (e.g., Ubuntu 24.04): Unraid 7.3.2
- Web server and version (e.g, Apache 2.4.25): unsure how to check
- Reverse proxy and version _(e.g. nginx 1.27.2): Caddy (?) (AIO default), External Access via Pangolin 1.24.0
- PHP version (e.g, 8.3): 8.4.25
- Is this the first time you’ve seen this error? (Yes / No): Yes
- When did this problem seem to first start? As soon as I tried updating
- Installation method (e.g. AIO, NCP, Bare Metal/Archive, etc.) AIO
- Are you using Cloudflare, mod_security, or similar? No, Pangolin 1.24.0
Summary of the issue you are facing:
When I try to update my NC AIO installation from Hub 26 Spring to NC Hub 26 Summer, everything runs smoothly until the very end, when I get the PHP error below and my instance goes into maintenance mode indefinitely.
I tried restarting everything multiple times, removing all the containers except AIO and pulling them again but nothing would work except restoring a backup of the last version (34.0.4).
Steps to replicate it (hint: details matter!):
- Try to update from 34.0.4 to 35.0.1 through the AIO Interface
- Everything runs smoothly until PHP error
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.
(this is the Log from the AIO update window, after this happens, the NC container just says initial installation failed and points me to the github page to reset my instance)
System config value updatedirectory set to string /nc-updater
Config value were not updated
System config value update_channel set to string stable
Nextcloud Updater - version: v34.0.0rc2-5-g713ccce
Current version is 34.0.4.
Update to Nextcloud 35.0.1 available. (channel: "stable")
Following file will be downloaded automatically: https://github.com/nextcloud-releases/server/releases/download/v35.0.1/nextcloud-35.0.1.zip
Open changelog ↗
Updater run in non-interactive mode.
Start update
Info: Pressing Ctrl-C will finish the currently running step and then stops the updater.
[ ] Check for expected files ... K[✔] Check for expected files
[ ] Check for write permissions ... K[✔] Check for write permissions
[ ] Create backup ... K[✔] Create backup
[ ] Downloading ... 0%D 2%D 4%D 6%D 8%D 10%D 20%D 30%D 40%D 50%D 60%D 70%D 80%D 90%D 100% K[✔] Downloading
[ ] Verify integrity ... K[✔] Verify integrity
[ ] Extracting ... K[✔] Extracting
[ ] Enable maintenance mode ... K[✔] Enable maintenance mode
[ ] Replace entry points ... K[✔] Replace entry points
[ ] Delete old files ... K[✔] Delete old files
[ ] Move new files in place ... K[✔] Move new files in place
[ ] Done ... K[✔] Done
Update of code successful.
Updater run in non-interactive mode - will start "occ upgrade" now.
Setting log level to debug
Repair step: Repair MySQL collation
Repair info: Not a mysql database -> 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
Updated database
Disabled incompatible app: spreed
Updating <federation> ...
Updated <federation> to 2.0.0-dev.0
Updating <lookup_server_connector> ...
Updated <lookup_server_connector> to 2.0.0-dev.0
Updating <oauth2> ...
Repair step: Update OAuth token expiration times
Updated <oauth2> to 2.0.0-dev.0
Updating <password_policy> ...
Updated <password_policy> to 7.0.0
Updating <circles> ...
Repair step: Upgrading Circles App
Repair step: Sync groups with their circles
Updated <circles> to 35.0.0
Updating <cloud_federation_api> ...
Repair step: Conditionally drop the federated_invites table
federated_invites does not existUpdated <cloud_federation_api> to 2.0.0-dev.0
Updating <dav> ...
Repair step: Fix component of birthday calendars
Repair info: 2 birthday calendars updated.
Repair step: Regenerating birthday calendars to use new icons and fix old birthday events without year
Repair info: Repair step already executed
Repair step: Fix broken values of calendar objects
Fix broken values of calendar objects
Starting ...
0/0 [>---------------------------] 0%
Repair step: Registering building of calendar search index as background job
Repair info: Repair step already executed
Repair step: Register building of social profile search index as background job
Repair info: Repair step already executed
Repair step: Disable system address book
Repair info: Skipping repair step system address book has less than the threshold 5000 of contacts no need to disable
Repair step: Registering background jobs to update cache for webcal calendars
Repair info: Added 0 background jobs to update webcal calendars
Repair step: Registering building of calendar reminder index as background job
Repair info: Repair step already executed
Repair step: Register a background job to update rooms and resources
Repair step: Queue jobs to clean up orphan event and contact data
Repair step: Remove activity entries of private events
Repair step: Clean up old calendar subscriptions from deleted users that were not cleaned-up
Clean up old calendar subscriptions from deleted users that were not cleaned-up
Starting ...
0/0 [->--------------------------] 0%
Repair info: 0 calendar subscriptions without an user have been cleaned up
Updated <dav> to 2.0.0-dev.1
Updating <files> ...
Updated <files> to 3.0.0-dev.0
Updating <files_lock> ...
Updated <files_lock> to 35.0.0
Updating <files_sharing> ...
Repair step: Fix the share type of guest shares when migrating from ownCloud
Repair step: Copy the share password into the dedicated column
Repair step: Set existing shares as accepted
Updated <files_sharing> to 2.0.0-dev.1
Updating <files_trashbin> ...
Updated <files_trashbin> to 2.0.0-dev.0
Updating <files_versions> ...
Updated <files_versions> to 2.0.0-dev.0
Updating <sharebymail> ...
Updated <sharebymail> to 2.0.0-dev.0
Updating <webhook_listeners> ...
Updated <webhook_listeners> to 2.0.0-dev.0
Updating <workflowengine> ...
Repair step: Populating added database structures for workflows
Updated <workflowengine> to 3.0.0-dev.0
Updating <admin_audit> ...
Updated <admin_audit> to 2.0.0-dev.0
Updating <comments> ...
Updated <comments> to 2.0.0-dev.0
Updating <logreader> ...
Updated <logreader> to 8.0.0
Updating <nextcloud_announcements> ...
Updated <nextcloud_announcements> to 7.0.0
Updating <notifications> ...
Updated <notifications> to 8.0.0
Updating <systemtags> ...
Updated <systemtags> to 2.0.0-dev.0
Updating <theming> ...
Repair step: Initialize migration of background images from dashboard to theming app
Updated <theming> to 3.0.0-dev.0
Updating <appstore> ...
Updated <appstore> to 2.0.0-dev.0
Updating <bruteforcesettings> ...
Updated <bruteforcesettings> to 8.0.0
Updating <contactsinteraction> ...
Updated <contactsinteraction> to 2.0.0-dev.0
Updating <federatedfilesharing> ...
Updated <federatedfilesharing> to 2.0.0-dev.1
Updating <files_downloadlimit> ...
Updated <files_downloadlimit> to 5.3.0
Updating <files_pdfviewer> ...
Updated <files_pdfviewer> to 8.0.0
Updating <files_reminders> ...
Updated <files_reminders> to 2.0.0-dev.0
Updating <firstrunwizard> ...
Updated <firstrunwizard> to 8.0.0
Updating <office> ...
Updated <office> to 1.1.0
Updating <privacy> ...
Updated <privacy> to 7.0.0
Updating <profile> ...
Updated <profile> to 2.0.0-dev.0
Updating <provisioning_api> ...
Updated <provisioning_api> to 2.0.0-dev.0
Updating <recommendations> ...
Updated <recommendations> to 8.0.0
Updating <related_resources> ...
Updated <related_resources> to 6.0.0
Updating <serverinfo> ...
Updated <serverinfo> to 7.0.0
Updating <settings> ...
Updated <settings> to 2.0.0-dev.0
Updating <support> ...
Repair step: Switches from default updater server to the customer one if a valid subscription is available
Repair info: Repair step already executed
Repair step: Migrate some config values to lazy loading
Updated <support> to 7.0.0
Updating <survey_client> ...
Repair step: Send an admin notification if monthly report is disabled
Updated <survey_client> to 7.0.0
Updating <text> ...
Repair step: Force-reset all Text document sessions
Updated <text> to 9.0.0
Updating <twofactor_backupcodes> ...
Repair step: Add background job to check for backup codes
Updated <twofactor_backupcodes> to 2.0.0-dev.0
Updating <twofactor_totp> ...
Updated <twofactor_totp> to 17.1.0
Updating <updatenotification> ...
Updated <updatenotification> to 2.0.0-dev.0
Updating <user_status> ...
Updated <user_status> to 2.0.0-dev.0
Updating <viewer> ...
Updated <viewer> to 8.0.0
Updating <weather_status> ...
Updated <weather_status> to 2.0.0-dev.0
Update app contacts from App Store
Update app spreed from App Store
Repair step: Fix the namespace in database tables
Repair step: Remove old user-room-shares
Remove old user-room-shares
Starting ...
0/0 [--->------------------------] 0%
Repair info: Deleted 0 stray shares
Repair step: Invalidate access cache for projects conversation provider
Repair info: Invalidation not required
Repair step: Cache the user display names
Repair step: Fix the namespace in database tables
Repair step: Regenerate signaling keys
Repair step: Repair MySQL collation
Repair info: Not a mysql database -> nothing to do
Repair step: Clean tags and favorites
Repair info: 0 tags of deleted users have been removed.
Repair info: 0 tags for delete files have been removed.
Repair info: 0 tag entries for deleted tags have been removed.
Repair info: 0 tags with no entries have been removed.
Repair step: Repair invalid shares
Repair step: Move .step file of updater to backup location
Repair info: .step file exists
Repair info: .step file moved to .step-previous-update
Repair step: Add move avatar background job
Repair info: Repair step already executed
Repair step: Add preview cleanup background jobs
Repair step: Migrate oc_properties table to nextcloud schema
Repair info: oc_properties table does not exist.
Repair step: Migrate oauth2_clients table to nextcloud schema
Repair info: Update the oauth2_access_tokens table schema.
Repair info: Update the oauth2_clients table schema.
Repair info: Delete clients (and their related access tokens) with the redirect_uri starting with oc:// or ending with *
Repair step: Repair language codes
Repair step: Add log rotate job
Repair step: Clear frontend caches
Repair info: Image cache cleared
Repair info: JS cache cleared
Repair step: Clear every generated avatar
Repair step: Add preview background cleanup job
Repair step: Queue a one-time job to cleanup old backups of the updater
Repair step: Cleanup invalid photocache files for carddav
Repair step: Add background job to cleanup login flow v2 tokens
Repair step: Remove potentially over exposing share links
Repair info: No need to remove link shares.
Repair step: Clear access cache of projects
Repair step: Reset generated avatar flag
Repair step: Keep legacy encryption enabled
Repair step: Check encryption key format
Repair step: Remove old dashboard app config data
Repair step: Add job to cleanup the bruteforce entries
Repair step: Queue a one-time job to check for user uploaded certificates
Repair step: Repair DAV shares
Repair step: Add background job to set the lookup server share state for users
Repair step: Add token cleanup job
Repair step: Clean up abandoned apps
Repair step: Add possibly missing system config
Repair step: Add AI tasks cleanup jobs
Repair step: Queue a job to generate metadata
Repair step: Cache logo dimension to fix size in emails on Outlook
Repair info: Logo dimensions are already known
Repair step: Remove legacy ".ocdata" file
Repair step: Add cleanup-deleted-users background job
Repair step: Add cleanup login tokens background job
Repair step: Validate account properties and store phone numbers in a known format for search
Repair info: Queued background to validate account properties.
Repair step: Queue a job to move the preview
Repair step: Migrate config keys
Repair step: Cleanup completed background jobs
Starting code integrity check...
Finished code integrity check
Update successful
Maintenance mode is kept active
Resetting log level
PHP Fatal error: Trait "OCA\FilesArchive\Toolkit\Traits\AppNameTrait" not found in /var/www/html/custom_apps/files_archive/lib/Migration/Version000000Date20221031100000.php on line 32
"occ upgrade" failed - return code: 255
Nextcloud is in maintenance mode, no apps are loaded.
Commands provided by apps are unavailable.
Nextcloud 35.0.1
Installation of Nextcloud failed!
Automatically reloading the page after 10s.
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.
unrelated
Web server / Reverse Proxy
The output of your Apache/nginx/system log in /var/log/____:
unrelated
Configuration
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!):
{
"system": {
"one-click-instance": true,
"one-click-instance.user-limit": 100,
"memcache.local": "\\OC\\Memcache\\APCu",
"apps_paths": [
{
"path": "\/var\/www\/html\/apps",
"url": "\/apps",
"writable": false
},
{
"path": "\/var\/www\/html\/custom_apps",
"url": "\/custom_apps",
"writable": true
}
],
"check_data_directory_permissions": false,
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"password": "***REMOVED SENSITIVE VALUE***",
"port": 6379,
"timeout": 3,
"read_timeout": 10
},
"overwritehost": "cloud.lukasstipar.com",
"overwriteprotocol": "https",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
"cloud.lukasstipar.com",
"10.10.10.20"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "34.0.4.1",
"overwrite.cli.url": "https:\/\/cloud.lukasstipar.com\/",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"instanceid": "***REMOVED SENSITIVE VALUE***",
"maintenance": false,
"updatedirectory": "\/nc-updater",
"loglevel": 2,
"log_type": "file",
"logfile": "\/var\/www\/html\/data\/nextcloud.log",
"log_rotate_size": 10485760,
"log.condition": {
"apps": [
"admin_audit"
]
},
"preview_max_x": 2048,
"preview_max_y": 2048,
"jpeg_quality": 60,
"enabledPreviewProviders": {
"1": "OC\\Preview\\Image",
"2": "OC\\Preview\\MarkDown",
"3": "OC\\Preview\\MP3",
"4": "OC\\Preview\\TXT",
"5": "OC\\Preview\\OpenDocument",
"6": "OC\\Preview\\Movie",
"7": "OC\\Preview\\Krita",
"0": "OC\\Preview\\Imaginary",
"23": "OC\\Preview\\ImaginaryPDF",
"24": "OCA\\Eurooffice\\Preview"
},
"enable_previews": true,
"upgrade.disable-web": true,
"mail_smtpmode": "smtp",
"trashbin_retention_obligation": "auto, 30",
"versions_retention_obligation": "auto, 30",
"activity_expire_days": 30,
"simpleSignUpLink.shown": false,
"share_folder": "\/Shared",
"one-click-instance.link": "https:\/\/nextcloud.com\/all-in-one\/",
"upgrade.cli-upgrade-link": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/2726",
"maintenance_window_start": 100,
"allow_local_remote_servers": true,
"davstorage.request_timeout": 3600,
"documentation_url.server_logs": "https:\/\/github.com\/nextcloud\/all-in-one\/discussions\/5425",
"htaccess.RewriteBase": "\/",
"dbpersistent": false,
"auth.bruteforce.protection.enabled": true,
"ratelimit.protection.enabled": true,
"files_external_allow_create_new_local": false,
"trusted_proxies": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_url": "***REMOVED SENSITIVE VALUE***",
"preview_imaginary_key": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpauth": true,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"updatechecker": false,
"onlyoffice": {
"jwt_secret": "***REMOVED SENSITIVE VALUE***",
"jwt_header": "AuthorizationJwt",
"editors_check_interval": 0
},
"app_install_overwrite": [
"extract",
"nextcloud-aio"
],
"forbidden_filename_characters": [
"\\",
"\/"
],
"forbidden_filename_extensions": [
".filepart",
".part"
],
"defaultapp": "files",
"updater.release.channel": "stable",
"serverid": 445,
"log_type_audit": "file",
"logfile_audit": "\/var\/www\/html\/data\/audit.log",
"update_channel": "stable",
"eurooffice": {
"editors_check_interval": 0,
"jwt_secret": "***REMOVED SENSITIVE VALUE***",
"jwt_header": "AuthorizationJwt"
},
"data-fingerprint": "85a17b9ad84a2653dec39021dee9b3d2",
"DOMAIN": "cloud.lukasstipar.com",
"AIO_VERSION": "v14.2.0"
}
}
Apps
Enabled:
- admin_audit: 1.24.0
- appstore: 1.0.0
- bruteforcesettings: 7.0.0
- circles: 34.0.0
- cloud_federation_api: 1.18.0
- comments: 1.24.0
- contacts: 8.9.0
- contactsinteraction: 1.15.0
- cospend: 4.1.3
- dav: 1.40.0
- eurooffice: 11.0.5
- federatedfilesharing: 1.24.0
- federation: 1.24.0
- files: 2.6.0
- files_downloadlimit: 5.2.0
- files_lock: 34.0.1
- files_pdfviewer: 7.0.0
- files_reminders: 1.7.0
- files_sharing: 1.26.0
- files_trashbin: 1.24.0
- files_versions: 1.27.0
- files_zip: 3.0.1
- firstrunwizard: 7.0.0-dev.0
- logcleaner: 1.6.4
- logreader: 7.0.0
- lookup_server_connector: 1.22.0
- nextcloud-aio: 0.9.0
- nextcloud_announcements: 6.0.0
- notifications: 7.0.0-dev.1
- notify_push: 1.4.1
- oauth2: 1.22.0
- office: 1.0.0
- password_policy: 6.0.0-dev.0
- privacy: 6.0.0-dev.1
- profile: 1.3.0
- provisioning_api: 1.24.0
- recommendations: 7.0.0
- related_resources: 5.0.0-dev.0
- serverinfo: 6.0.0
- settings: 1.17.0
- sharebymail: 1.24.0
- spreed: 24.0.5
- support: 6.0.0
- survey_client: 6.0.0-dev.0
- systemtags: 1.24.0
- tasks: 0.18.1
- text: 8.0.0
- theming: 2.9.0
- twofactor_backupcodes: 1.23.0
- twofactor_totp: 16.0.0
- updatenotification: 1.24.0
- user_status: 1.14.0
- viewer: 7.0.0-dev.0
- weather_status: 1.14.0
- webhook_listeners: 1.6.0
- whiteboard: 2.0.0
- workflowengine: 2.16.0
Disabled:
- activity: 7.0.0 (installed 7.0.0)
- admincockpit: 1.4.5 (installed 1.4.5)
- app_api: 34.0.0 (installed 5.0.2)
- calendar: 6.6.1 (installed 6.6.1)
- dashboard: 7.14.0 (installed 7.14.0)
- deck: 1.18.5 (installed 1.18.5)
- encryption: 2.22.0
- files_archive: 1.2.8 (installed 1.2.8)
- files_external: 1.26.0
- notes: 6.1.0 (installed 6.1.0)
- photos: 7.0.0 (installed 7.0.0)
- suspicious_login: 12.0.0-dev.0
- twofactor_nextcloud_notification: 8.0.0
- user_ldap: 1.25.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.