[Bug]: 35.0.2 RC2 update triggers TableManager error
I maintainer di solito rispondono entro 6 giorni
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 3/5
- Tempo stimato
- 1-2 giorni
- Idoneità per principianti
- 45/100
Direzione di ricerca
The failing class is OCA\Polls\Db\V11\TableManager, so start in the polls app's Db/V11 migration code and check whether the class file exists and matches its namespace for autoloading. The trace runs through Nextcloud's SchemaChecker and Upgrade command, which only show where the lookup fails. Reproduce by upgrading a test instance from 32.0.x to 35.0.2 RC2 with occ upgrade. Done means the upgrade completes without a QueryNotFoundException and the schema check reports no disabled-migration warning for polls.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
⚠️ This issue respects the following points: ⚠️
- This is not a troubleshooting question, general support matter, or webserver/proxy problem, but likely a bug (if unsure, ask the Community Help Forum).
- This issue is not already reported on Github OR solved at the Community Help Forum (I've searched!).
- I'm using a maintained major version of Nextcloud Server and tested against the latest patch level. (Supported major versions and current patch levels).
- I agree to follow Nextcloud's Code of Conduct.
- I've tried my best to provide clear reproduction steps that someone unfamiliar with this bug could use to reproduce it.
Bug description
On a test setup, I tried to update from NC 32.0.1 to 35.0.2 RC2 via CLI updater.
Updater script runs through until
Update successful
Maintenance mode is kept active
Resetting log level
But then I get an error with the Table Manager, that makes my update fail:
In SimpleContainer.php line 114:
[OCP\AppFramework\QueryException]
Could not resolve OCA\Polls\Db\V11\TableManager! Class "OCA\Polls\Db\V11\TableManager" does not exist
Exception trace:
at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:114
OC\AppFramework\Utility\SimpleContainer->{closure:OC\AppFramework\Utility\SimpleContainer::buildClassConstructorParameters():83}() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:83
OC\AppFramework\Utility\SimpleContainer->buildClassConstructorParameters() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:72
OC\AppFramework\Utility\SimpleContainer->{closure:OC\AppFramework\Utility\SimpleContainer::buildClass():70}() at n/a:n/a
get_object_vars() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:254
OC\Log\ExceptionSerializer->encodeArg() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:237
OC\Log\ExceptionSerializer->{closure:OC\Log\ExceptionSerializer::encodeTrace():235}() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:235
OC\Log\ExceptionSerializer->encodeTrace() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:286
OC\Log\ExceptionSerializer->serializeException() at /usr/local/www/nextcloud-test/lib/private/Log.php:350
OC\Log->logException() at /usr/local/www/nextcloud-test/lib/private/Log/PsrLoggerAdapter.php:163
OC\Log\PsrLoggerAdapter->log() at /usr/local/www/nextcloud-test/lib/private/Log/PsrLoggerAdapter.php:108
OC\Log\PsrLoggerAdapter->warning() at /usr/local/www/nextcloud-test/lib/private/DB/SchemaChecker.php:185
OC\DB\SchemaChecker->applyDisabledMigrations() at /usr/local/www/nextcloud-test/lib/private/DB/SchemaChecker.php:66
OC\DB\SchemaChecker->getFindings() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:255
OC\Core\Command\Upgrade->checkSchema() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:246
OC\Core\Command\Upgrade->postUpgradeCheck() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:200
OC\Core\Command\Upgrade->execute() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Command/Command.php:341
Symfony\Component\Console\Command\Command->run() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:1094
Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:356
Symfony\Component\Console\Application->doRun() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:195
Symfony\Component\Console\Application->run() at /usr/local/www/nextcloud-test/lib/private/Console/Application.php:210
OC\Console\Application->run() at /usr/local/www/nextcloud-test/console.php:92
require_once() at /usr/local/www/nextcloud-test/occ:15
In SimpleContainer.php line 140:
[OC\AppFramework\Utility\QueryNotFoundException]
Could not resolve OCA\Polls\Db\V11\TableManager! Class "OCA\Polls\Db\V11\TableManager" does not exist
Exception trace:
at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:140
OC\AppFramework\Utility\SimpleContainer->resolve() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:160
OC\AppFramework\Utility\SimpleContainer->query() at /usr/local/www/nextcloud-test/lib/private/ServerContainer.php:150
OC\ServerContainer->query() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:96
OC\AppFramework\Utility\SimpleContainer->{closure:OC\AppFramework\Utility\SimpleContainer::buildClassConstructorParameters():83}() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:83
OC\AppFramework\Utility\SimpleContainer->buildClassConstructorParameters() at /usr/local/www/nextcloud-test/lib/private/AppFramework/Utility/SimpleContainer.php:72
OC\AppFramework\Utility\SimpleContainer->{closure:OC\AppFramework\Utility\SimpleContainer::buildClass():70}() at n/a:n/a
get_object_vars() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:254
OC\Log\ExceptionSerializer->encodeArg() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:237
OC\Log\ExceptionSerializer->{closure:OC\Log\ExceptionSerializer::encodeTrace():235}() at n/a:n/a
array_map() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:235
OC\Log\ExceptionSerializer->encodeTrace() at /usr/local/www/nextcloud-test/lib/private/Log/ExceptionSerializer.php:286
OC\Log\ExceptionSerializer->serializeException() at /usr/local/www/nextcloud-test/lib/private/Log.php:350
OC\Log->logException() at /usr/local/www/nextcloud-test/lib/private/Log/PsrLoggerAdapter.php:163
OC\Log\PsrLoggerAdapter->log() at /usr/local/www/nextcloud-test/lib/private/Log/PsrLoggerAdapter.php:108
OC\Log\PsrLoggerAdapter->warning() at /usr/local/www/nextcloud-test/lib/private/DB/SchemaChecker.php:185
OC\DB\SchemaChecker->applyDisabledMigrations() at /usr/local/www/nextcloud-test/lib/private/DB/SchemaChecker.php:66
OC\DB\SchemaChecker->getFindings() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:255
OC\Core\Command\Upgrade->checkSchema() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:246
OC\Core\Command\Upgrade->postUpgradeCheck() at /usr/local/www/nextcloud-test/core/Command/Upgrade.php:200
OC\Core\Command\Upgrade->execute() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Command/Command.php:341
Symfony\Component\Console\Command\Command->run() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:1094
Symfony\Component\Console\Application->doRunCommand() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:356
Symfony\Component\Console\Application->doRun() at /usr/local/www/nextcloud-test/3rdparty/symfony/console/Application.php:195
Symfony\Component\Console\Application->run() at /usr/local/www/nextcloud-test/lib/private/Console/Application.php:210
OC\Console\Application->run() at /usr/local/www/nextcloud-test/console.php:92
require_once() at /usr/local/www/nextcloud-test/occ:15
upgrade
"occ upgrade" failed - return code: 1
After that I can just manually disable the maintenance mode and login. I need to check a bit more, however the logs are not expected and probably a bad user experience. No idea how it looks with a web-based update.
Steps to reproduce
- Run current NC 35.0.1
- use updater/updater.phar from command line to install NC 35.0.2 RC
- Update runs through except for an error
Expected behavior
Update runs through without errors. If there are problems with one app and the table, best case would be a warning and the related app being disabled.
Nextcloud Server version
35
Operating system
Other
PHP engine version
PHP 8.4
Web server
Nginx
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a MINOR version (ex. 32.0.1 to 32.0.2)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
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***",
"secret": "***REMOVED SENSITIVE VALUE***",
"trusted_domains": [
"nextcloud.aspekte.net",
"[2a01:4f8:160:329a::237]"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"overwrite.cli.url": "https:\/\/nextcloud.aspekte.net",
"overwriteprotocol": "https",
"htaccess.RewriteBase": "\/",
"dbtype": "mysql",
"version": "35.0.2.1",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbtableprefix": "oc_",
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"logtimezone": "UTC",
"installed": true,
"updater.release.channel": "beta",
"loglevel": 3,
"log_rotate_size": 10485760,
"maintenance": false,
"allow_user_to_change_display_name": true,
"theme": "",
"memcache.local": "\\OC\\Memcache\\APCu",
"memcache.locking": "\\OC\\Memcache\\Redis",
"redis": {
"host": "***REMOVED SENSITIVE VALUE***",
"port": 0,
"dbindex": 1
},
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_smtpmode": "sendmail",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpdebug": false,
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mysql.utf8mb4": true,
"default_phone_region": "DE",
"maintenance_window_start": 1,
"allow_local_remote_servers": true,
"debug": false,
"mail_sendmailmode": "pipe"
}
}
List of activated Apps
- activity: 8.0.0
- app_api: 35.0.0
- appstore: 2.0.0
- calendar: 6.6.2
- checksum: 2.1.2
- circles: 35.0.0
- cloud_federation_api: 2.0.0
- comments: 2.0.0
- contacts: 8.9.1
- contactsinteraction: 2.0.0
- dashboard: 8.0.0
- dav: 2.0.0
- deck: 1.19.0
- end_to_end_encryption: 2.5.0
- federatedfilesharing: 2.0.0
- federation: 2.0.0
- files: 3.0.0
- files_accesscontrol: 6.0.0
- files_automatedtagging: 6.0.0
- files_downloadlimit: 5.3.0
- files_lock: 35.0.0
- files_pdfviewer: 8.0.0
- files_reminders: 2.0.0
- files_sharing: 2.0.0
- files_trashbin: 2.0.0
- firstrunwizard: 8.0.0
- forms: 5.4.0
- integration_discourse: 3.3.0
- logreader: 8.0.0
- lookup_server_connector: 2.0.0
- mail: 5.12.4
- maps: 1.8.0
- nextcloud_announcements: 7.0.0
- notifications: 8.0.1
- notify_push: 1.4.1
- oauth2: 2.0.0
- office: 1.1.0
- password_policy: 7.0.0
- photos: 8.0.0
- privacy: 7.0.0
- profile: 2.0.0
- provisioning_api: 2.0.0
- recommendations: 8.0.0
- related_resources: 6.0.0
- serverinfo: 7.0.0
- settings: 2.0.0
- sharebymail: 2.0.0
- sharing: 1.0.4
- systemtags: 2.0.0
- text: 9.0.1
- theming: 3.0.0
- twofactor_backupcodes: 2.0.0
- twofactor_nextcloud_notification: 9.0.0
- twofactor_totp: 17.1.0
- twofactor_webauthn: 2.7.1
- updatenotification: 2.0.0
- user_status: 2.0.0
- viewer: 8.0.0
- weather_status: 2.0.0
- webhook_listeners: 2.0.0
- workflowengine: 3.0.0
Nextcloud Signing status
No errors have been found.
Nextcloud Logs
CLI output provided in the description
Additional info
No response
- Lingua principale
- JavaScript
- Stelle
- 285
- Fork
- 91
- Merge medio
- 5g 20h
- PR unite (30g)
- 59
Preparare l'ambiente
- Nessun Dockerfile né file Docker Compose
- Nessun modello di pull request
- Leggi la guida per i contributori
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di nextcloud/polls
-
new
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
I maintainer di solito rispondono entro 6 giorni
-
new
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
nextcloud/polls#4874 · 1 commento ·
I maintainer di solito rispondono entro 6 giorni
-
missing german translationsApertaneeds approval
Difficoltà 3/5 1-2 giorni Idoneità per principianti 53/100
I maintainer di solito rispondono entro 6 giorni
-
needs approval
Difficoltà 4/5 3-5 giorni Idoneità per principianti 22/100
nextcloud/polls#5091 · 3 commenti ·
I maintainer di solito rispondono entro 6 giorni
-
enhancement
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
nextcloud/polls#4978 · 4 commenti · 1 reazione ·
I maintainer di solito rispondono entro 6 giorni
Tutte le issue di nextcloud/polls
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 84/100
parse-community/parse-server#10871 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Jump in core size from v2.11.2Forse già presa @caolan-tether l’ha presa oggi. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
holepunchto/hyperbee2#126 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 85/100
521xueweihan/HelloGitHub#4270 ·
-
Adopt browserslistrcAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
-
accessibility bug embed
Difficoltà 2/5 1-3 ore Idoneità per principianti 85/100
quarto-dev/quarto-cli#15306 ·
I maintainer di solito rispondono entro 1 giorno