Support intro
Nextcloud version (eg, 20.0.5): Nextcloud 19.0.8 upgrade to 23.0.2
Operating system and version (eg, Ubuntu 20.04): CentOS 7.5
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.6
PHP version (eg, 7.4): PHP 7.3.33
The issue you are facing:
Is this the first time you’ve seen this error? (Y/N): Y
Steps to replicate it:
1. Copy the new version `Nextcloud 19.0.9 or 19.0.10 or 19.0.13
2. Execute directory permission and occ execute permission settings
chown -Rf apache:apache /var/www/html
find /var/www/html/ -type d -exec chmod 750 {} ;
find /var/www/html/ -type f -exec chmod 640 {} ;
chmod u+x /var/www/html/occ
3. upgrade
sudo -u apache php occ upgrade
The output of your Nextcloud log in Admin > Logging:
\"workflowengine\" in appstore","userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":1,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::checkAppStoreApp: Checked for update of app \"workflowengine\" in appstore","userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":3,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"core","method":"","url":"--","message":{"Exception":"OCP\\AppFramework\\QueryException","Message":"Could not resolve logger! Class logger does not exist","Code":0,"Trace":[{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["logger"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":149,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["logger",true]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":78,"function":"query","class":"OC\\ServerContainer","type":"->","args":["logger"]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":101,"function":"buildClass","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":[{"name":"OC\\Repair\\RepairDavShares","__class__":"ReflectionClass"}]},{"file":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","line":116,"function":"resolve","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Repair\\RepairDavShares"]},{"file":"/var/www/html/lib/private/ServerContainer.php","line":149,"function":"query","class":"OC\\AppFramework\\Utility\\SimpleContainer","type":"->","args":["OC\\Repair\\RepairDavShares",true]},{"file":"/var/www/html/lib/private/Repair.php","line":160,"function":"query","class":"OC\\ServerContainer","type":"->","args":["OC\\Repair\\RepairDavShares"]},{"file":"/var/www/html/lib/private/Updater.php","line":273,"function":"getRepairSteps","class":"OC\\Repair","type":"::","args":[]},{"file":"/var/www/html/lib/private/Updater.php","line":130,"function":"doUpgrade","class":"OC\\Updater","type":"->","args":["19.0.9.1","19.0.8.1"]},{"file":"/var/www/html/core/Command/Upgrade.php","line":255,"function":"upgrade","class":"OC\\Updater","type":"->","args":[]},{"file":"/var/www/html/3rdparty/symfony/console/Command/Command.php","line":255,"function":"execute","class":"OC\\Core\\Command\\Upgrade","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":1012,"function":"run","class":"Symfony\\Component\\Console\\Command\\Command","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":272,"function":"doRunCommand","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"installer":{"__class__":"OC\\Installer"},"__class__":"OC\\Core\\Command\\Upgrade"},{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/3rdparty/symfony/console/Application.php","line":148,"function":"doRun","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/lib/private/Console/Application.php","line":215,"function":"run","class":"Symfony\\Component\\Console\\Application","type":"->","args":[{"__class__":"Symfony\\Component\\Console\\Input\\ArgvInput"},{"__class__":"Symfony\\Component\\Console\\Output\\ConsoleOutput"}]},{"file":"/var/www/html/console.php","line":100,"function":"run","class":"OC\\Console\\Application","type":"->","args":[]},{"file":"/var/www/html/occ","line":11,"args":["/var/www/html/console.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/AppFramework/Utility/SimpleContainer.php","Line":107,"CustomMessage":"--"},"userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":3,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::failure: OCP\\AppFramework\\QueryException: Could not resolve logger! Class logger does not exist","userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":3,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::updateEnd: Update failed","userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":1,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::maintenanceActive: Maintenance mode is kept active","userAgent":"--","version":"19.0.8.1"}
{"reqId":"umqqRaR1xC4REQaevQfr","level":1,"time":"2022-03-12T16:17:00+08:00","remoteAddr":"","user":"--","app":"updater","method":"","url":"--","message":"\\OC\\Updater::resetLogLevel: Reset log level to Warning(2)","userAgent":"--","version":"19.0.8.1"}
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
{
"system": {
"instanceid": "***REMOVED SENSITIVE VALUE***",
"passwordsalt": "***REMOVED SENSITIVE VALUE***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"localhost",
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "http:\/\/localhost",
"overwriteprotocol": "https",
"htaccess.RewriteBase": "\/",
"dbtype": "mysql",
"version": "19.0.8.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"installed": true,
"mail_smtpmode": "smtp",
"mail_smtpauthtype": "LOGIN",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpsecure": "tls",
"mail_smtpauth": 1,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_smtpport": "587",
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.distributed": "\\OC\\Memcache\\Memcached",
"memcached_servers": [
[
"localhost",
11211
]
],
"ldapIgnoreNamingRules": false,
"ldapProviderFactory": "\\OCA\\User_LDAP\\LDAPProviderFactory",
"maintenance": false,
"theme": "",
"loglevel": 2,
"activity_expire_days": 365,
"wnd.logging.enable": true,
}
}
List of activated Apps
Enabled:
- accessibility: 1.5.0
- activity: 2.12.1
- admin_audit: 1.9.0
- cloud_federation_api: 1.2.0
- comments: 1.9.0
- dav: 1.15.0
- federatedfilesharing: 1.9.0
- federation: 1.9.0
- files: 1.14.0
- files_pdfviewer: 1.8.0
- files_sharing: 1.11.0
- files_trashbin: 1.9.0
- files_versions: 1.12.0
- files_videoplayer: 1.8.0
- firstrunwizard: 2.8.0
- groupfolders: 7.1.3
- logreader: 2.4.0
- lookup_server_connector: 1.7.0
- nextcloud_announcements: 1.8.0
- notifications: 2.7.0
- oauth2: 1.7.0
- onlyoffice: 6.4.2
- password_policy: 1.9.1
- photos: 1.1.0
- privacy: 1.3.0
- provisioning_api: 1.9.0
- recommendations: 0.7.0
- serverinfo: 1.9.0
- settings: 1.1.0
- sharebymail: 1.9.0
- support: 1.2.1
- systemtags: 1.9.0
- text: 3.0.1
- theming: 1.10.0
- twofactor_backupcodes: 1.8.0
- updatenotification: 1.9.0
- user_ldap: 1.9.1
- viewer: 1.3.0
- workflowengine: 2.1.0
Disabled:
- contactsinteraction
- encryption
- files_downloadactivity
- files_external
- files_rightclick
- survey_client
Expected behavior
Checking for update of app viewer in appstore
Checked for update of app "viewer" in appstore
Checking for update of app workflowengine in appstore
Checked for update of app "workflowengine" in appstore
OCP\AppFramework\QueryException: Could not resolve logger! Class logger does not exist
Update failed
Maintenance mode is kept active
Reset log level
I need to update the current version Nextcloud 19.0.8 to the latest version Nextcloud 23.0.2. After I updated Nextcloud 13.0.6.1 to Nextcloud 19.0.8, there was a problem, so I couldn’t update the version, and I also found a solution online. , there is no better solution for now, so I hope someone knows the solution, or can let me update to the latest version, the official version update line is as follows, 18.0.5 → 18.0.11 → 19.0.5 → 20.0. 2, and I can’t skip the update of the current version and the previous version, I can only update one version and then select the next version to update again.