Nextcloud version: 25.0.0.18
Operating system and version: Qnap docker
PHP version: 8.1.11
I upgraded from the lastest 24 point release to 25 via docker-compose pull and now I get a message that ‘passwordsalt’ is not correctly configured in config.php. It seems passwordsalt is now a required setting.
It was working in 24
The error message
Die erforderliche passwordsalt Konfigurationsvariable ist in der config.php nicht konfiguriert.
Bitte deinen Server-Administrator, die Nextcloud-Konfiguration zu überprüfen.
This should corrspond to
The required passwordsalt config variable is not configured in the config.php file.
I don’t have a passwordsalt setting, so I do not know what I should put there.
Can someone please help me?
Is this the first time you’ve seen this error?_:Y
Steps to replicate it:
- install latest 24 via the official dockerhub nextcloud image
- use a config.php without passwordsalt or empty passwordsalt
- upgrade to 25
config.php
<?php
$CONFIG = array (
'overwrite.cli.url' => 'https://my new domain',
'overwriteprotocol' => 'https',
'datadirectory' => '/var/www/html/data',
'dbtype' => 'mysql',
'version' => '25.0.0.18',
'dbname' => 'nextcloud',
'dbhost' => 'db:3306',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => 'mypassword',
'installed' => true,
'instanceid' => 'some number',
'maintenance' => false,
'theme' => '',
'forcessl' => true,
'trusted_domains' =>
array (
0 => 'my old domain',
1 => 'my new domain,
),
'trusted_proxies' =>
array (
0 => 'ip of the nas',
1 => 'localhost',
),
'overwritehost' => 'my new domain',
'share_folder' => '/Shared',
'secret' => 'long string',
'loglevel' => 0,
'updater.release.channel' => 'stable',
'htaccess.RewriteBase' => '/',
'memcache.local' => '\\OC\\Memcache\\APCu',
'memcache.locking' => '\\OC\\Memcache\\Redis',
'filelocking.enabled' => true,
'redis' =>
array (
'host' => 'cache',
'port' => 6379,
'password' => 'my redis pw',
),
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/www/html/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/www/html/custom_apps',
'url' => '/custom_apps',
'writable' => true,
),
),
'mail_smtpmode' => 'smtp',
'mail_smtphost' => 'mail',
'mail_smtpport' => '25',
'mail_sendmailmode' => 'smtp',
'mail_domain' => 'my mail domain',
'mail_from_address' => 'robot',
'default_phone_region' => 'AT',
'mysql.utf8mb4' => true,
);
In the log files I don’t see an error.