Support intro
Sorry to hear you’re facing problems
help.nextcloud.com is for home/non-enterprise users. If you’re running a business, paid support can be accessed via portal.nextcloud.com where we can ensure your business keeps running smoothly.
In order to help you as quickly as possible, before clicking Create Topic please provide as much of the below as you can. Feel free to use a pastebin service for logs, otherwise either indent short log examples with four spaces:
example
Or for longer, use three backticks above and below the code snippet:
longer
example
here
Some or all of the below information will be requested if it isn’t supplied; for fastest response please provide as much as you can
Nextcloud version (eg, 20.0.5): Nextcloud Hub 5 (27.0.2)
Operating system and version (eg, Ubuntu 20.04): Arch Linux rolling
Apache or nginx version (eg, Apache 2.4.25): nginx/1.25.1
PHP version (eg, 7.4): php 8.2.8
All these run in docker containers “nextcloud:fpm-alpine, nginx:alpine, redis:alpine, mariadb:latest”
The issue you are facing:
When using keycloak saml login to nextcloud, with long back disabled encryption
# occ encryption:status
- enabled: false
- defaultModule: OC_DEFAULT_MODULE
Is this the first time you’ve seen this error? (Y/N): Yes
Steps to replicate it:
- setup an encryption at NC version 20, then disable it
- implement saml SSO setup with keycloak 20+
- get an
The output of your Nextcloud log in Admin > Logging:
[PHP] Error: TypeError: OCA\Encryption\Crypto\Crypt::generatePasswordHash(): Argument #1 ($password) must be of type string, null given, called in /var/www/html/apps/encryption/lib/Crypto/Crypt.php on line 435 at /var/www/html/apps/encryption/lib/Crypto/Crypt.php#374
GET /ocs/v2.php/apps/notifications/api/v2/notifications
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'passwordsalt' => '************',
'secret' => '*********',
'trusted_domains' =>
array (
******
),
'trusted_proxies' =>
array (
0 => '192.168.******',
),
'overwrite.cli.url' => 'https://********/',
'overwritecondaddr' => '',
'overwriteprotocol' => 'https',
'version' => '27.0.2.1',
'debug' => false,
'datadirectory' => '/var/www/nextcloud/data',
'dbtype' => 'mysql',
'dbtableprefix' => 'oc_',
'dbname' => 'nextcloud',
'dbhost' => 'mariadb',
'dbport' => '3306',
'dbuser' => 'nextcloud',
'dbpassword' => '**************',
'logtimezone' => 'UTC',
'installed' => true,
'instanceid' => '*******',
'maintenance' => false,
'singleuser' => false,
'updater.release.channel' => 'stable',
'theme' => '',
'loglevel' => 1,
'mail_from_address' => 'nextcloud',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'PLAIN',
'mail_domain' => '*****',
'log_type' => 'file',
'mysql.utf8mb4' => true,
'mail_sendmailmode' => 'pipe',
'mail_smtpsecure' => 'tls',
'mail_smtphost' => '*****',
'mail_smtpport' => '25',
'default_phone_region' => '**',
#'encryption.legacy_format_support' => false,
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.distributed' => '\\OC\\Memcache\\Redis',
'redis' =>
array (
'host' => 'redis',
'port' => 6379,
),
'memcache.locking' => '\\OC\\Memcache\\Redis',
The output of your Apache/nginx/system log in /var/log/____
:
PASTE HERE
PASTE HERE
Output errors in nextcloud.log in /var/www/ or as admin user in top right menu, filtering for errors. Use a pastebin service if necessary.
/Files/View.php","line":1352,"function":"find","class":"OC\\Files\\Mount\\Manager","type":"->","args":["/appdata_octhjg4inrv
z/js/core"]},{"file":"/var/www/html/lib/private/Files/Node/Root.php","line":205,"function":"getFileInfo","class":"OC\\Files\
\View","type":"->","args":["/appdata_octhjg4inrvz/js/core",false]},{"function":"get","class":"OC\\Files\\Node\\Root","type":
"->","args":["/appdata_octhjg4inrvz/js/core"]},{"file":"/var/www/html/lib/private/Files/Node/LazyFolder.php","line":73,"func
tion":"call_user_func_array","args":[[["OC\\Files\\Node\\Root"],"get"],["appdata_octhjg4inrvz/js/core"]]},{"file":"/var/www/
html/lib/private/Files/Node/LazyFolder.php","line":150,"function":"__call","class":"OC\\Files\\Node\\LazyFolder","type":"->"
,"args":["get",["appdata_octhjg4inrvz/js/core"]]},{"file":"/var/www/html/lib/private/Files/AppData/AppData.php","line":132,"
function":"get","class":"OC\\Files\\Node\\LazyFolder","type":"->","args":["appdata_octhjg4inrvz/js/core"]},{"file":"/var/www
/html/lib/private/Template/JSCombiner.php","line":87,"function":"getFolder","class":"OC\\Files\\AppData\\AppData","type":"->
","args":["core"]},{"file":"/var/www/html/lib/private/Template/JSResourceLocator.php","line":145,"function":"process","class
":"OC\\Template\\JSCombiner","type":"->","args":["/var/www/html","core/js/merged-template-prepend.json","core"]},{"file":"/v
ar/www/html/lib/private/Template/JSResourceLocator.php","line":75,"function":"cacheAndAppendCombineJsonIfExist","class":"OC\
\Template\\JSResourceLocator","type":"->","args":["/var/www/html","core/js/merged-template-prepend.json"]},{"file":"/var/www/html/lib/private/Template/ResourceLocator.php","line":73,"function":"doFind","class":"OC\\Template\\JSResourceLocator","type":"->","args":["core/js/merged-template-prepend"]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":377,"function":"find","class":"OC\\Template\\ResourceLocator","type":"->","args":[["core/js/common","core/js/main","core/l10n/en","core/js/files_fileinfo","core/js/files_client","And 1 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/TemplateLayout.php","line":222,"function":"findJavascriptFiles","class":"OC\\TemplateLayout","type":"::","args":[["core/js/common","core/js/main","core/l10n/en","core/js/files_fileinfo","core/js/files_client","And 1 more entries, set log level to debug to see all entries"]]},{"file":"/var/www/html/lib/private/legacy/OC_Template.php","line":182,"function":"__construct","class":"OC\\TemplateLayout","type":"->","args":["guest","core"]},{"file":"/var/www/html/lib/private/Template/Base.php","line":132,"function":"fetchPage","class":"OC_Template","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":841,"function":"printPage","class":"OC\\Template\\Base","type":"->","args":[]},{"file":"/var/www/html/lib/base.php","line":1173,"function":"init","class":"OC","type":"::","args":[]},{"file":"/var/www/html/index.php","line":34,"args":["/var/www/html/lib/base.php"],"function":"require_once"}],"File":"/var/www/html/lib/private/Files/Mount/Manager.php","Line":118,"message":"App encryption threw an error during app.php load: No mount for path /.oc_key_storage existing mounts: ","exception":{},"CustomMessage":"App encryption threw an error during app.php load: No mount for path /.oc_key_storage existing mounts: "}}
I in the past deleted the encryption files in the directories, as encryption is disabled.
As some topic recommended, that it removes the message:
“Invalid private key for encryption app. Please update your private key password in your personal settings to recover access to your encrypted files.”
When I try to change the encryption password under settings/user/security, it says that password updated successfully, but if I input my same password I use for saml login, I get an internal server error - contact your administrator page and then if I refresh, I get to the the nextcloud instance, but with the message of Invalid private key quoted above…