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
Nextcloud server fails to update from 24.0.3 to 24.0.4, I did an ugly "fix" to get my server accessible again. Details below.
Update log and error report:
sudo -u www-data php occ -vvv upgrade
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
2022-08-12T22:11:13+00:00 Setting log level to debug
2022-08-12T22:11:13+00:00 Repair step: Repair MySQL collation
2022-08-12T22:11:13+00:00 Repair info: All tables already have the correct collation -> nothing to do
2022-08-12T22:11:13+00:00 Repair step: Repair SQLite autoincrement
2022-08-12T22:11:13+00:00 Repair step: Copy data from accounts table when migrating from ownCloud
2022-08-12T22:11:13+00:00 Repair step: Drop account terms table when migrating from ownCloud
2022-08-12T22:11:13+00:00 Updating database schema
2022-08-12T22:11:13+00:00 Updated database
2022-08-12T22:11:13+00:00 Repair step: Repair MySQL collation
2022-08-12T22:11:13+00:00 Repair info: All tables already have the correct collation -> nothing to do
2022-08-12T22:11:13+00:00 Repair step: Repair mime types
2022-08-12T22:11:13+00:00 Repair step: Clean tags and favorites
2022-08-12T22:11:13+00:00 Repair info: 0 tags of deleted users have been removed.
2022-08-12T22:11:13+00:00 Repair info: 0 tags for delete files have been removed.
2022-08-12T22:11:13+00:00 Repair info: 0 tag entries for deleted tags have been removed.
2022-08-12T22:11:13+00:00 Repair info: 0 tags with no entries have been removed.
2022-08-12T22:11:13+00:00 Repair step: Repair invalid shares
2022-08-12T22:11:13+00:00 Repair step: Move .step file of updater to backup location
2022-08-12T22:11:13+00:00 Repair step: Add move avatar background job
2022-08-12T22:11:13+00:00 Repair info: Repair step already executed
2022-08-12T22:11:13+00:00 Repair step: Add preview cleanup background jobs
2022-08-12T22:11:13+00:00 Repair step: Migrate oauth2_clients table to nextcloud schema
2022-08-12T22:11:13+00:00 Repair info: Update the oauth2_access_tokens table schema.
2022-08-12T22:11:14+00:00 Repair info: Update the oauth2_clients table schema.
2022-08-12T22:11:14+00:00 Repair step: Fix potential broken mount points
2022-08-12T22:11:14+00:00 Repair info: No mounts updated
2022-08-12T22:11:14+00:00 Repair step: Repair language codes
2022-08-12T22:11:14+00:00 Repair step: Install new core bundle components
2022-08-12T22:11:14+00:00 Repair step: Add log rotate job
2022-08-12T22:11:14+00:00 Repair step: Clear frontend caches
2022-08-12T22:11:14+00:00 Repair info: Image cache cleared
An unhandled exception has been thrown:
TypeError: OC\EventDispatcher\ServiceEventListener::__invoke(): Argument #1 ($event) must be of type OCP\EventDispatcher\Event, OC\EventDispatcher\GenericEventWrapper given, called in /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php on line 264 and defined in /var/www/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php:65
Stack trace:
#0 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(264): OC\EventDispatcher\ServiceEventListener->__invoke()
#1 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(239): Symfony\Component\EventDispatcher\EventDispatcher->doDispatch()
#2 /var/www/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php(73): Symfony\Component\EventDispatcher\EventDispatcher->callListeners()
#3 /var/www/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php(122): Symfony\Component\EventDispatcher\EventDispatcher->dispatch()
#4 /var/www/nextcloud/lib/private/Files/Node/Node.php(118): OC\EventDispatcher\SymfonyAdapter->dispatch()
#5 /var/www/nextcloud/lib/private/Files/Node/File.php(133): OC\Files\Node\Node->sendHooks()
#6 /var/www/nextcloud/lib/private/Files/SimpleFS/SimpleFile.php(149): OC\Files\Node\File->delete()
#7 /var/www/nextcloud/lib/private/Template/SCSSCacher.php(386): OC\Files\SimpleFS\SimpleFile->delete()
#8 /var/www/nextcloud/lib/private/Repair/ClearFrontendCaches.php(62): OC\Template\SCSSCacher->resetCache()
#9 /var/www/nextcloud/lib/private/Repair.php(124): OC\Repair\ClearFrontendCaches->run()
#10 /var/www/nextcloud/lib/private/Updater.php(293): OC\Repair->run()
#11 /var/www/nextcloud/lib/private/Updater.php(133): OC\Updater->doUpgrade()
#12 /var/www/nextcloud/core/Command/Upgrade.php(235): OC\Updater->upgrade()
#13 /var/www/nextcloud/3rdparty/symfony/console/Command/Command.php(255): OC\Core\Command\Upgrade->execute()
#14 /var/www/nextcloud/3rdparty/symfony/console/Application.php(1009): Symfony\Component\Console\Command\Command->run()
#15 /var/www/nextcloud/3rdparty/symfony/console/Application.php(273): Symfony\Component\Console\Application->doRunCommand()
#16 /var/www/nextcloud/3rdparty/symfony/console/Application.php(149): Symfony\Component\Console\Application->doRun()
#17 /var/www/nextcloud/lib/private/Console/Application.php(211): Symfony\Component\Console\Application->run()
#18 /var/www/nextcloud/console.php(100): OC\Console\Application->run()
#19 /var/www/nextcloud/occ(11): require_once('...')
The above made the server stuck in update, I "fixed" it (made the server accessible again) by commenting out line 118 in /var/www/nextcloud/lib/private/Files/Node/Node.php
and then rerunning the upgrade command. My server works again, seemingly without issues, though not sure of the implication of this "fix" at this point, I guess there may be crashes if the event dispatcher is called from other locations.
Steps to reproduce
Update from 24.0.3 to 24.0.4 (using an Ubuntu 22.04 server)
Expected behavior
Update should finish without throwing an un-handled exception, halting the update and rendering the server in-accessible.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
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": [
"manually removed, I'd rather not be public with my URL"
],
"datadirectory": "***REMOVED SENSITIVE VALUE***",
"dbtype": "mysql",
"version": "24.0.4.1",
"overwrite.cli.url": "manually removed, I'd rather not be public with my URL",
"dbname": "***REMOVED SENSITIVE VALUE***",
"dbhost": "***REMOVED SENSITIVE VALUE***",
"dbport": "",
"dbtableprefix": "oc_",
"mysql.utf8mb4": true,
"dbuser": "***REMOVED SENSITIVE VALUE***",
"dbpassword": "***REMOVED SENSITIVE VALUE***",
"default_phone_region": "SE",
"installed": true,
"maintenance": false,
"theme": "",
"loglevel": 0,
"mail_smtpmode": "smtp",
"mail_smtphost": "***REMOVED SENSITIVE VALUE***",
"mail_sendmailmode": "smtp",
"mail_smtpsecure": "ssl",
"mail_smtpport": "465",
"mail_from_address": "***REMOVED SENSITIVE VALUE***",
"mail_domain": "***REMOVED SENSITIVE VALUE***",
"mail_smtpauthtype": "LOGIN",
"mail_smtpauth": 1,
"mail_smtpname": "***REMOVED SENSITIVE VALUE***",
"mail_smtppassword": "***REMOVED SENSITIVE VALUE***",
"updater.secret": "***REMOVED SENSITIVE VALUE***"
}
}
Note: This is the file that I mentioned in the description, modification is the specified line only.
Technical information
=====================
The following list covers which files have failed the integrity check. Please read
the previous linked documentation to learn more about the errors and how to fix
them.
Results
=======
- core
- INVALID_HASH
- lib/private/Files/Node/Node.php
Raw output
==========
Array
(
[core] => Array
(
[INVALID_HASH] => Array
(
[lib/private/Files/Node/Node.php] => Array
(
[expected] => 260682fac0a09ed95fe6a4e36b661565b15275119f4b43eae90cb008abb796c95fb3e995c8ed1a0090e5cd2465cea2c163f6ab6e119297d2a0a5788df72cace2
[current] => a239ad60a63e7b56439a6bb7972743ae860281580beeb46a9568d8cbf3f9c00644b025e4c816416e5e7333f00666b3bf5de3ce908985610730faf83ad7306f29
)
)
)
)
Nextcloud Logs
Just realized;
I'm missing both the nextcloud.log and the logging file.I do not have a /settings or /data directory in /var/www/nextcloud, I noticed that I have a /data dir in an old nextcloud ver 22, but not in ver 24
Additional info
No response
The text was updated successfully, but these errors were encountered:
Bug description
Nextcloud server fails to update from 24.0.3 to 24.0.4, I did an ugly "fix" to get my server accessible again. Details below.
Update log and error report:
The above made the server stuck in update, I "fixed" it (made the server accessible again) by commenting out line 118 in
/var/www/nextcloud/lib/private/Files/Node/Node.php
and then rerunning the upgrade command. My server works again, seemingly without issues, though not sure of the implication of this "fix" at this point, I guess there may be crashes if the event dispatcher is called from other locations.
Steps to reproduce
Expected behavior
Update should finish without throwing an un-handled exception, halting the update and rendering the server in-accessible.
Installation method
Manual installation
Operating system
Debian/Ubuntu
PHP engine version
PHP 8.0
Web server
Apache (supported)
Database engine version
MariaDB
Is this bug present after an update or on a fresh install?
Updated from a minor version (ex. 22.2.3 to 22.2.4)
Are you using the Nextcloud Server Encryption module?
Encryption is Disabled
What user-backends are you using?
Configuration report
List of activated Apps
Nextcloud Signing status
Nextcloud Logs
Additional info
No response
The text was updated successfully, but these errors were encountered: