Nextcloud version (eg, 20.0.5): 26.0.1
Operating system and version (eg, Ubuntu 20.04): Nixos 23.05
Apache or nginx version (eg, Apache 2.4.25): 1.24.0
PHP version (eg, 7.4): 8.2.13
The issue you are facing:
Since a few weeks, I regularly get the following
{"reqId":"[redacted]","level":2,"time":"2024-01-11T10:33:36+00:00","remoteAddr":"77.25.18.169","user":"turion","app":"core","method":"GET","url":"/remote.php/dav/files/turion/[redacted]","message":"Login failed: 'turion' (Remote IP: '77.25.18.169')","userAgent":"Mozilla/5.0 (Linux) mirall/3.10.1git (Nextcloud, nixos-6.1.61 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.10.1","data":{"app":"core"}}
{"reqId":"[redacted]","level":2,"time":"2024-01-11T10:42:20+00:00","remoteAddr":"77.25.18.169","user":"turion","app":"core","method":"GET","url":"/remote.php/dav/files/turion/[redacted]","message":"Session token credentials are invalid","userAgent":"Mozilla/5.0 (Linux) mirall/3.10.1git (Nextcloud, nixos-6.1.61 ClientArchitecture: x86_64 OsArchitecture: x86_64)","version":"26.0.10.1","data":{"app":"core","user":"null"}}
My desktop client (on linux), my Android Nextcloud App, my DavX5 app, all get regularly disconnected. This seems to be happening for other users as well. The only thing that stays logged in is over the browser.
Is this the first time you’ve seen this error? (Y/N): N
Steps to replicate it:
- Log in e.g. with desktop client
- Wait for some time, less than an hour
- Client is disconnected, log message appears
The output of your Nextcloud log in Admin > Logging: This feature is unusable because it throws a RuntimeException when I try to download the log that way. (And reading it in the browser is infeasible, I can’t sort it to start with the newest entries.)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'auth.bruteforce.protection.enabled' => false,
'version' => '26.0.10.1',
'installed' => true,
'instanceid' => ...
'maintenance' => false,
'log_level' => '2',
'loglevel' => '2',
'theme' => '',
'app_install_overwrite' =>
array (
0 => 'contacts',
),
'trusted_proxies' =>
array (
0 => ...
),
'apps_paths' =>
array (
0 =>
array (
'path' => '/var/lib/nextcloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/var/lib/nextcloud/store-apps',
'url' => '/store-apps',
'writable' => true,
),
),
'datadirectory' => '/var/lib/nextcloud/data',
'skeletondirectory' => '',
'memcache.local' => '\\OC\\Memcache\\APCu',
'log_type' => 'syslog',
'dbname' => 'nextcloud',
'dbhost' => '/run/postgresql',
'dbuser' => 'nextcloud',
'dbtype' => 'pgsql',
'overwrite.cli.url' => ...
'overwritehost' => ...
'overwriteprotocol' => 'https',
'secret' => ...
'profile.enabled' => false,
'trashbin_retention_obligation' => 'auto, 7',
'passwordsalt' => ...
'bulkupload.enabled' => false,
'default_phone_region' => 'DE',
'dbpassword' => ...
);
Furthermore, I have the following override.config.php
:
<?php
function nix_decode_json_file($file, $error) {
if (!file_exists($file)) {
throw new \RuntimeException(sprintf($error, $file));
}
$decoded = json_decode(file_get_contents($file), true);
if (json_last_error() !== JSON_ERROR_NONE) {
throw new \RuntimeException(sprintf("Cannot decode %s, because: %s", $file, json_last_error_msg()));
}
return $decoded;
}
$CONFIG = [
'apps_paths' => [
[ 'path' => '/var/lib/nextcloud/apps', 'url' => '/apps', 'writable' => false ],
[ 'path' => '/var/lib/nextcloud/store-apps', 'url' => '/store-apps', 'writable' => true ],
],
'datadirectory' => '/var/lib/nextcloud/data',
'skeletondirectory' => '',
'memcache.local' => '\OC\Memcache\APCu',
'log_type' => 'syslog',
'loglevel' => '2',
'dbname' => 'nextcloud',
'dbhost' => '/run/postgresql',
'dbuser' => 'nextcloud',
'dbtype' => 'pgsql',
'trusted_domains' => ...
'trusted_proxies' => ...
'profile.enabled' => false,
];
$CONFIG = array_replace_recursive($CONFIG, nix_decode_json_file(
"/nix/store/ip41nr4wgh24yzqhj4rz55dkk204a9xr-nextcloud-extraOptions.json",
"impossible: this should never happen (decoding generated extraOptions file %s failed)"
));
And /nix/store/ip41nr4wgh24yzqhj4rz55dkk204a9xr-nextcloud-extraOptions.json
contains:
{
"bulkupload.enabled": false,
"default_phone_region": "DE",
"trashbin_retention_obligation": "auto, 7"
}
I updated to 27.1.5.1
, same problem.