You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Please use the 👍 reaction to show that you are affected by the same issue.
Please don't comment if you have no relevant information to add. It's just extra noise for everyone subscribed to this issue.
Subscribe to receive notifications on status change and new comments.
Steps to reproduce
Start with NC 22.2.1.2
Disable theming app
Attempt to update to NC 23.0.0 RC1 via beta channel
Expected behaviour
Update succeeds.
Actual behaviour
Update fails with:
2021-11-12T01:59:26+01:00 Checking for update of app ransomware_protection in appstore
2021-11-12T01:59:26+01:00 Checked for update of app "ransomware_protection" in App Store
2021-11-12T01:59:26+01:00 OCP\AppFramework\QueryException: Could not resolve defaults! Class defaults does not exist
2021-11-12T01:59:26+01:00 Update failed
Luckily trying the repair step finally gave the hint that the disabled theming app is the reason, so I was able to finish the upgrade by enabling the theming app:
# ncc maintenance:repair
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
In SimpleContainer.php line 100:
Could not resolve defaults! Class defaults does not exist
In SimpleContainer.php line 120:
Could not resolve OCA\Theming\ThemingDefaults! Class OCA\Theming\ThemingDefaults does not exist
Server configuration
Operating system: Debian Bookworm
Web server: Apache/2.4.51
Database: 10.5.12-MariaDB
PHP version: 7.4.21
Nextcloud version: 22.2.1.2 => 23.0.0 RC1
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
With access to your command line run e.g.:
sudo -u www-data php occ ldap:show-config
from within your Nextcloud installation folder
Without access to your command line download the data/owncloud.db to your local
computer or access your SQL server remotely and run the select query:
SELECT * FROM `oc_appconfig` WHERE `appid` = 'user_ldap';
Eventually replace sensitive data as the name/IP-address of your LDAP server or groups.
Logs
Web server error log
Web server error log
none
Nextcloud log (data/nextcloud.log)
Nextcloud log
{"reqId":"jwts8GRid68oBR2Z2G6O","level":3,"time":"2021-11-12T02:01:48+01:00","remoteAddr":"192.168.1.10","user":"--","app":"no app in context","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=PUtnxVQnU3WDEYIoppK2U%2Bi65A6Fp3J2S%2FlIoJ8LqWQ%3D%3ADgk%2B%2FBFrCwzqfeNBwPuCFJrqoX3J6hcPEpsmkOt8wiM%3D","message":"Could not resolve defaults! Class defaults does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4676.0 Safari/537.36 OPR/83.0.4232.0 (Edition developer)","version":"22.2.1.2","exception":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve defaults! Class defaults does not exist","Code":0,"Trace":[{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Repair.php","line":189,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":292,"function":"getRepairSteps","class":"OC\\Repair","type":"::"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":133,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/core/ajax/update.php","line":200,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":100,"Previous":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve OCA\\Theming\\ThemingDefaults! Class OCA\\Theming\\ThemingDefaults does not exist","Code":0,"Trace":[{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":87,"function":"query","class":"OC\\ServerContainer","type":"->"},{"function":"OC\\AppFramework\\Utility\\{closure}","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["*** sensitive parameters replaced ***"]},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":106,"function":"array_map"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":114,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","line":131,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/ServerContainer.php","line":161,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Repair.php","line":189,"function":"query","class":"OC\\ServerContainer","type":"->"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":292,"function":"getRepairSteps","class":"OC\\Repair","type":"::"},{"file":"/var/www/nextcloud/lib/private/Updater.php","line":133,"function":"doUpgrade","class":"OC\\Updater","type":"->"},{"file":"/var/www/nextcloud/core/ajax/update.php","line":200,"function":"upgrade","class":"OC\\Updater","type":"->"}],"File":"/var/www/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php","Line":120},"CustomMessage":"Could not resolve defaults! Class defaults does not exist"},"id":"618dc03dd4d10"}
{"reqId":"jwts8GRid68oBR2Z2G6O","level":3,"time":"2021-11-12T02:01:48+01:00","remoteAddr":"192.168.1.10","user":"--","app":"updater","method":"GET","url":"/nextcloud/core/ajax/update.php?requesttoken=PUtnxVQnU3WDEYIoppK2U%2Bi65A6Fp3J2S%2FlIoJ8LqWQ%3D%3ADgk%2B%2FBFrCwzqfeNBwPuCFJrqoX3J6hcPEpsmkOt8wiM%3D","message":"\\OC\\Updater::failure: OCP\\AppFramework\\QueryException: Could not resolve defaults! Class defaults does not exist","userAgent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/97.0.4676.0 Safari/537.36 OPR/83.0.4232.0 (Edition developer)","version":"22.2.1.2","id":"618dc03dd46d9"}
How to use GitHub
Steps to reproduce
Expected behaviour
Update succeeds.
Actual behaviour
Update fails with:
Luckily trying the repair step finally gave the hint that the disabled theming app is the reason, so I was able to finish the upgrade by enabling the theming app:
Server configuration
Operating system: Debian Bookworm
Web server: Apache/2.4.51
Database: 10.5.12-MariaDB
PHP version: 7.4.21
Nextcloud version: 22.2.1.2 => 23.0.0 RC1
Updated from an older Nextcloud/ownCloud or fresh install: Updated
Where did you install Nextcloud from:https://download.nextcloud.com/server/releases/
Signing status:
Signing status
List of activated apps:
App list
Nextcloud configuration:
Config report
Are you using external storage, if yes which one: local/smb/sftp/...
Are you using encryption: yes/no
Are you using an external user-backend, if yes which one: LDAP/ActiveDirectory/Webdav/...
LDAP configuration (delete this part if not used)
LDAP config
Logs
Web server error log
Web server error log
Nextcloud log (data/nextcloud.log)
Nextcloud log