[Bug]: Upgrade to nextcloud 28.0.10 fails with Database error when running migration for app oauth2 [OpenProject integration] #48267
Closed
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
When we try to upgrade our nextcloud version from 28.0.9 to 28.0.10 the upgrade fails with the following error:
Setting log level to debug
Updating database schema
Updated database
Updating <oauth2> ...
Exception: Database error when running migration 011901Date20240829164356 for app oauth2
Authenticated ciphertext could not be decoded.
Update failed
Maintenance mode is kept active
Resetting log level
Steps to reproduce
- Update to 28.0.10
- run ./occ upgrade
Expected behavior
The nextcloud installation updates to 28.0.10
Nextcloud Server version
28
Operating system
Other
PHP engine version
Other
Web server
Nginx
Database engine version
PostgreSQL
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 28.0.1 to 28.0.2)
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "pgsql",
"version": "28.0.9.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"ldapIgnoreNamingRules": false,
"loglevel": 0,
"theme": "",
"defaultapp": "files",
"maintenance": true,
"lost_password_link": "https:\/\/account.gremien-uzl.de\/",
"trusted_domains": [
"files.asta.uni-luebeck.de",
"141.83.153.154",
"app-server",
"nginx-serer",
"onlyoffice-document-server"
],
"allow_local_remote_servers": true,
"share_folder": "\/Shared",
"mail_smtpmode": "smtp",
"secret": "***REMOVED SENSITIVE VALUE***",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"forcessl": true,
"trashbin_retention_obligation": "30,60",
"versions_retention_obligation": "auto, 730",
"logtimezone": "Europe\/Berlin",
"enable_previews": true,
"updatechecker": false,
"singleuser": false,
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"overwritehost": "files.asta.uni-luebeck.de",
"overwriteprotocol": "https",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "tls",
"mail_smtpport": "587",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"debug": false,
"onlyoffice": {
"verify_peer_off": true
},
"csrf.optout": [
"\/^WebDAVFS\/",
"\/^Microsoft-WebDAV-MiniRedir\/",
"\/KeeWeb\\\/\\d+[.]\\d+[.]\\d+\/"
],
"htaccess.RewriteBase": "\/",
"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
}
],
"memcache.distributed": "\\OC\\Memcache\\Redis",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 6379
},
"overwrite.cli.url": "https:\/\/files.asta.uni-luebeck.de",
"mail_sendmailmode": "smtp",
"updater.server.url": "***REMOVED SENSITIVE VALUE***",
"updater.release.channel": "enterprise",
"default_phone_region": "DE",
"maintenance_window_start": 2
}
}
List of activated Apps
Enabled:
- activity: 2.20.0
- admin_audit: 1.18.0
- announcementcenter: 7.0.0
- bruteforcesettings: 2.8.0
- calendar: 4.7.16
- calendar_resource_management: 0.8.0
- cloud_federation_api: 1.11.0
- comments: 1.18.0
- contacts: 5.5.3
- contactsinteraction: 1.9.0
- dashboard: 7.8.0
- dav: 1.29.2
- deck: 1.12.4
- external: 5.3.1
- federatedfilesharing: 1.18.0
- federation: 1.18.0
- files: 2.0.0
- files_external: 1.20.0
- files_pdfviewer: 2.9.0
- files_reminders: 1.1.0
- files_sharing: 1.20.0
- files_trashbin: 1.18.0
- files_versions: 1.21.0
- firstrunwizard: 2.17.0
- forms: 4.2.4
- groupfolders: 16.0.9
- impersonate: 1.15.0
- integration_openproject: 2.7.0
- logreader: 2.13.0
- lookup_server_connector: 1.16.0
- notifications: 2.16.0
- oauth2: 1.16.3
- password_policy: 1.18.0
- photos: 2.4.0
- privacy: 1.12.0
- provisioning_api: 1.18.0
- recommendations: 2.0.0
- related_resources: 1.3.0
- richdocuments: 8.3.10
- serverinfo: 1.18.0
- settings: 1.10.1
- sharebymail: 1.18.0
- support: 1.11.1
- systemtags: 1.18.0
- text: 3.9.2
- theming: 2.3.0
- theming_customcss: 1.17.0
- twofactor_backupcodes: 1.17.0
- twofactor_totp: 10.0.0-beta.2
- twofactor_webauthn: 1.4.0
- updatenotification: 1.18.0
- user_ldap: 1.19.0
- user_status: 1.8.1
- viewer: 2.2.0
- weather_status: 1.8.0
- workflowengine: 2.10.0
Disabled:
- circles: 28.0.0 (installed 24.0.1)
- encryption: 2.16.0
- nextcloud_announcements: 1.17.0 (installed 1.5.0)
- survey_client: 1.16.0 (installed 1.4.0)
- suspicious_login: 6.0.0
- user_saml: 6.2.0 (installed 6.2.0)
Nextcloud Signing status
not possible right now
Nextcloud Logs
too long for GitHub
Additional info
we use the community docker image for nextcloud
Activity