Fehler: Could not resolve encryptionManager!

mein nextcloud.log füllt sich mit:
OCP\AppFramework\QueryException: Could not resolve encryptionManager! Class encryptionManager does not exist

System centos7
PHP 7.3.12 (fpm-fcgi) (built: Nov 19 2019 10:24:51)
Copyright © 1997-2018 The PHP Group
Zend Engine v3.3.12, Copyright © 1998-2018 Zend Technologies
with Zend OPcache v7.3.12, Copyright © 1999-2018, by Zend Technologies
apache Server version: Apache/2.4.43
Nextcloud Version 20.2

Seit dem Update auf 20.2 wird meine log-Datei mit der Fehlermeldung geflutet:
Error no app in context OCP\AppFramework\QueryException: Could not resolve encryptionManager! Class encryptionManager does not exist

/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 126:

OC\AppFramework\Utility\SimpleContainer->resolve("encryptionManager")

/var/www/html/nextcloud/lib/private/ServerContainer.php - line 156:

OC\AppFramework\Utility\SimpleContainer->query("encryptionManager", true)

/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 96:

OC\ServerContainer->query("encryptionManager")

<<closure>>

OC\AppFramework\Utility\SimpleContainer->OC\AppFramework\Utility\{closure}("*** sensiti ... *")

/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 101:

array_map(Closure {}, [ "*** sensi ... "])

/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 109:

OC\AppFramework\Utility\SimpleContainer->buildClass(ReflectionCl ... "})

/var/www/html/nextcloud/lib/private/AppFramework/Utility/SimpleContainer.php - line 126:

OC\AppFramework\Utility\SimpleContainer->resolve("OCA\\CMSPic ... r")

/var/www/html/nextcloud/lib/private/ServerContainer.php - line 156:

OC\AppFramework\Utility\SimpleContainer->query("OCA\\CMSPic ... r", true)

/var/www/html/nextcloud/lib/private/EventDispatcher/ServiceEventListener.php - line 66:

OC\ServerContainer->query("OCA\\CMSPic ... r")

/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 251:

OC\EventDispatcher\ServiceEventListener->__invoke(OCP\EventDis ... {}, "OCA\\Files_ ... s", Symfony\Comp ... {})

/var/www/html/nextcloud/3rdparty/symfony/event-dispatcher/EventDispatcher.php - line 73:

Symfony\Component\EventDispatcher\EventDispatcher->callListeners([ Closure {},Closure {}], "OCA\\Files_ ... s", OCP\EventDis ... {})

/var/www/html/nextcloud/lib/private/EventDispatcher/EventDispatcher.php - line 86:

Symfony\Component\EventDispatcher\EventDispatcher->dispatch(OCP\EventDis ... {}, "OCA\\Files_ ... s")

/var/www/html/nextcloud/lib/private/EventDispatcher/SymfonyAdapter.php - line 72:

OC\EventDispatcher\EventDispatcher->dispatch("OCA\\Files_ ... s", OCP\EventDis ... {})

/var/www/html/nextcloud/apps/files_external/lib/Service/BackendService.php - line 118:

OC\EventDispatcher\SymfonyAdapter->dispatch("OCA\\Files_ ... s", OCP\EventDis ... {})

/var/www/html/nextcloud/apps/files_external/lib/Service/BackendService.php - line 125:

OCA\Files_External\Service\BackendService->callForRegistrations()

/var/www/html/nextcloud/apps/files_external/lib/Service/BackendService.php - line 230:

OCA\Files_External\Service\BackendService->loadBackendProviders()

/var/www/html/nextcloud/apps/files_external/lib/Service/StoragesService.php - line 304:

OCA\Files_External\Service\BackendService->getBackend("smb")

/var/www/html/nextcloud/apps/files_external/lib/Service/StoragesService.php - line 104:

OCA\Files_External\Service\StoragesService->createStorage("/Kliniknetz", "smb", "password::logincredentials", { host: "s4m ... "}, { encrypt: t ... e}, [], [ "Domain Admins"], 100)

<<closure>>

OCA\Files_External\Service\StoragesService->getStorageConfigFromDBMount({ mount_id: ... }})

/var/www/html/nextcloud/apps/files_external/lib/Service/UserGlobalStoragesService.php - line 193:

array_map([ OCA\Files_ ... "], [ { mount_id ... }])

/var/www/html/nextcloud/apps/files_external/lib/Config/ConfigAdapter.php - line 128:

OCA\Files_External\Service\UserGlobalStoragesService->getAllStoragesForUser()

/var/www/html/nextcloud/lib/private/Files/Config/MountProviderCollection.php - line 109:

OCA\Files_External\Config\ConfigAdapter->getMountsForUser(OC\User\User {}, OC\Files\Sto ... {})

/var/www/html/nextcloud/lib/private/Files/Filesystem.php - line 452:

OC\Files\Config\MountProviderCollection->addMountForUser(OC\User\User {}, OC\Files\Mount\Manager {})

/var/www/html/nextcloud/lib/private/Files/Filesystem.php - line 377:

OC\Files\Filesystem::initMountPoints("125132FC-FA ... E")

/var/www/html/nextcloud/lib/private/legacy/OC_Util.php - line 322:

OC\Files\Filesystem::init("125132FC-FA ... E", "/125132FC-F ... s")

/var/www/html/nextcloud/lib/private/Files/Filesystem.php - line 355:

OC_Util::setupFS()

/var/www/html/nextcloud/lib/private/Files/View.php - line 1152:

OC\Files\Filesystem::resolvePath("/files_encr ... y")

/var/www/html/nextcloud/lib/private/Files/View.php - line 543:

OC\Files\View->basicOperation("file_exists", "/files_encr ... y")

/var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php - line 270:

OC\Files\View->file_exists("/files_encr ... y")

/var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php - line 230:

OC\Encryption\Keys\Storage->getKey("/files_encr ... y")

/var/www/html/nextcloud/lib/private/Encryption/Keys/Storage.php - line 122:

OC\Encryption\Keys\Storage->getKeyWithUid("/files_encr ... y", null)

/var/www/html/nextcloud/apps/encryption/lib/KeyManager.php - line 615:

OC\Encryption\Keys\Storage->getSystemUserKey("pubShare_91f5030e.publicKey", "OC_DEFAULT_MODULE")

/var/www/html/nextcloud/apps/encryption/lib/KeyManager.php - line 171:

OCA\Encryption\KeyManager->getPublicShareKey()

/var/www/html/nextcloud/apps/encryption/lib/Users/Setup.php - line 87:

OCA\Encryption\KeyManager->validateShareKey()

/var/www/html/nextcloud/apps/encryption/lib/AppInfo/Application.php - line 73:

OCA\Encryption\Users\Setup->setupSystem()

/var/www/html/nextcloud/apps/encryption/appinfo/app.php - line 37:

OCA\Encryption\AppInfo\Application->setUp()

/var/www/html/nextcloud/lib/private/legacy/OC_App.php - line 289:

require_once("/var/www/ht ... p")

/var/www/html/nextcloud/lib/private/legacy/OC_App.php - line 171:

OC_App::requireAppFile(OCA\Encrypti ... {})

/var/www/html/nextcloud/lib/private/legacy/OC_App.php - line 131:

OC_App::loadApp("encryption")

/var/www/html/nextcloud/lib/base.php - line 993:

OC_App::loadApps()

/var/www/html/nextcloud/index.php - line 37:

OC::handleRequest()

Ich habe nach der Empfehlung in “Übersicht” das alte Encryption in der config.php
abgeschaltet:
‘encryption.legacy_format_support’ => false,
‘encryption.key_storage_migrated’ => false,

I have the same issue. Got 20G Logs in 24h.
Also an Update to 20.0.3RC did not resolve this issue :-/.

Same here. Don’t have encryption enabled or anything.

Disabling the PicoCMS module has fixed it for me.

1 Like

Ah cool. Same here.

I just created an issue in their issue tracker:

Let’s see if it helps :-).

Fixed in Pico CMS for Nextcloud v1.0.12. Thank you for reporting this! :+1:

About that 20G logs in 24h: Consider enabling log_rotate_size in your Nextcloud’s config/config.php, see https://docs.nextcloud.com/server/20/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=log_rotate_size