Dear Nextcloud Community,
Nextcloud version: 18.0.4
Operating system and version: Debian 4.9.65
Apache or nginx version: Apache 2.4.10
PHP version: 7.3
The issue I am facing: My android, windows and macOS clients loose connection to my nextcloud around 5 to 10 minutes after I granted them access to the cloud. The client then changes status to “signed out from nextcloud.domain.com”. I can reconnect the clients and they resume normal operation for about 5 to 10 minutes until the next disconnect.
- The nextcloud installation is totally fresh, only running a single day so far. I tried to get rid of the problem by reinstalling but it did not help.
- I run on a shared hoster and don’t have knowledge about the whole system.
- Installation of the Nextcloud is done by a service of the shared hoster.
- I have acess to the httpd.conf.
- By now I updated to 18.0.4 because I was hoping this might solve the problem, which it did not.
Is this the first time you’ve seen this error? No
Steps to replicate it:
- Install new nextcloud 18.0.3
- connect a client to the cloud
- wait for 10 minutes
The output of your Nextcloud log in Admin > Logging:
[core] Warning: Login failed: 'user' (Remote IP: '0.1.2.3')
GET /ocs/v2.php/apps/notifications/api/v2/notifications
from 0.1.2.3 by user at 2020-05-18T11:45:09+00:00
Additionally, the output of my client app on MacOS 10.15.4:
[OCC::Folder::slotSyncFinished Client version 2.6.4stable (build 20200303) Qt 5.12.5 SSL OpenSSL 1.1.1d 10 Sep 2019
[OCC::Folder::slotSyncFinished SyncEngine finished without problem.
[OCC::Folder::showSyncResultPopup Folder sync result: 4
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "UPDATE_VIEW:/Users/user/nextcloud" to SocketApiSocket(0x600002027ec0)
[OCC::ownCloudGui::slotSyncStateChange Sync state changed for folder "https://subdomain.domain.de/remote.php/dav/files/user/" : "Success, some files were ignored."
[OCC::AccessManager::createRequest 6 "GET" "https://subdomain.domain.de/ocs/v2.php/core/navigation/apps?absolute=true&format=json" has X-Request-ID "884eda0a-a36e-47ab-8558-328d913629f1"
[OCC::AbstractNetworkJob::start OCC::OcsNavigationAppsJob created for "https://subdomain.domain.de" + "ocs/v2.php/core/navigation/apps" ""
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::AbstractNetworkJob::slotFinished QNetworkReply::AuthenticationRequiredError "Der Host verlangt eine Authentifizierung" QVariant(int, 401)
[OCC::WebFlowCredentials::stillValid QNetworkReply::AuthenticationRequiredError
[OCC::WebFlowCredentials::stillValid "Der Host verlangt eine Authentifizierung"
[OCC::AccountManager::saveAccount Saving account "https://subdomain.domain.de"
[OCC::AccountManager::saveAccountHelper Saving 0 unknown certs.
[OCC::AccountManager::saveAccountHelper Saving cookies. "/Users/user/Library/Preferences/Nextcloud/cookies0.db"
[OCC::AccountManager::saveAccount Saved account settings, status: QSettings::NoError
[OCC::FolderMan::slotAccountStateChanged Account "user@subdomain.domain.de" disconnected or paused, terminating or descheduling sync folders
[OCC::Folder::slotTerminateSync folder "1" Terminating!
[OCC::AccountState::slotHandleRemoteWipeCheck Invalid credentials for "https://subdomain.domain.de" checking for remote wipe request
[OCC::FolderMan::slotAccountStateChanged Account "user@subdomain.domain.de" disconnected or paused, terminating or descheduling sync folders
[OCC::Folder::slotTerminateSync folder "1" Terminating!
[OCC::Account::deleteAppPassword()::(anonymous class)::operator() appPassword deleted from keychain
[OCC::RemoteWipe::checkJobSlot "There was an error accessing the 'token' endpoint: <br><em>Error transferring https://subdomain.domain.de/index.php/core/wipe/check - server replied: Not Found</em>"
[OCC::FolderMan::slotFolderSyncFinished <========== Sync finished for folder [nextcloud] of account [user@subdomain.domain.de] with remote [https://subdomain.domain.de/remote.php/dav/files/user/]
[OCC::AccessManager::createRequest 6 "GET" "https://subdomain.domain.de/ocs/v2.php/core/navigation/apps?absolute=true&format=json" has X-Request-ID "a96d19d7-e6cd-4c80-967f-7156f1bd1985"
[OCC::AbstractNetworkJob::start OCC::OcsNavigationAppsJob created for "https://subdomain.domain.de" + "ocs/v2.php/core/navigation/apps" ""
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::WebFlowCredentials::stillValid QNetworkReply::AuthenticationRequiredError
[OCC::WebFlowCredentials::stillValid "Der Host verlangt eine Authentifizierung"
[OCC::OcsJob::finished Reply to "GET" QUrl("https://subdomain.domain.de/ocs/v2.php/core/navigation/apps") (QPair("absolute","true")) has unexpected status code: 997 "{\"ocs\":{\"meta\":{\"status\":\"failure\",\"statuscode\":997,\"message\":\"Current user is not logged in\"},\"data\":[]}}"
[OCC::AbstractNetworkJob::slotTimeout Network job timeout QUrl("https://subdomain.domain.de/ocs/v2.php/core/navigation/apps?absolute=true&format=json")
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::AbstractNetworkJob::slotFinished QNetworkReply::OperationCanceledError "Zeitüberschreitung bei der Verbindung" QVariant(Invalid)
[OCC::WebFlowCredentials::stillValid QNetworkReply::OperationCanceledError
[OCC::WebFlowCredentials::stillValid "Operation abgebrochen"
[unknown QIODevice::read (QNetworkReplyHttpImpl): device not open
[OCC::OcsJob::finished Could not parse reply to "GET" QUrl("https://subdomain.domain.de/ocs/v2.php/core/navigation/apps") (QPair("absolute","true")) "Ungültiger Wert" : ""
[OCC::OcsJob::finished Reply to "GET" QUrl("https://subdomain.domain.de/ocs/v2.php/core/navigation/apps") (QPair("absolute","true")) has unexpected status code: 0 ""
[OCC::SocketApi::slotNewConnection New connection SocketApiSocket(0x600002173520)
[OCC::SocketApi::slotReadSocket Received SocketAPI message <-- "GET_STRINGS:" from SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:BEGIN" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:SHARE_MENU_TITLE:Freigabeoptionen" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:CONTEXT_MENU_TITLE:Teilen mittels Nextcloud" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:COPY_PRIVATE_LINK_MENU_TITLE:Privater Link in die Zwischenablage kopiert" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:EMAIL_PRIVATE_LINK_MENU_TITLE:Privaten Link als E-Mail verschicken …" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING::" to SocketApiSocket(0x600002173520)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:END" to SocketApiSocket(0x600002173520)
[OCC::SocketApi::slotNewConnection New connection SocketApiSocket(0x6000021c0d80)
[OCC::SocketApi::slotReadSocket Received SocketAPI message <-- "GET_STRINGS:" from SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:BEGIN" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:SHARE_MENU_TITLE:Freigabeoptionen" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:CONTEXT_MENU_TITLE:Teilen mittels Nextcloud" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:COPY_PRIVATE_LINK_MENU_TITLE:Privater Link in die Zwischenablage kopiert" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:EMAIL_PRIVATE_LINK_MENU_TITLE:Privaten Link als E-Mail verschicken …" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING::" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:END" to SocketApiSocket(0x6000021c0d80)
[OCC::SocketApi::onLostConnection Lost connection SocketApiSocket(0x600002173520)
[OCC::SocketApi::onLostConnection Lost connection SocketApiSocket(0x6000021c0d80)
[OCC::SocketApi::slotNewConnection New connection SocketApiSocket(0x6000021c3be0)
[OCC::SocketApi::slotReadSocket Received SocketAPI message <-- "GET_STRINGS:" from SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:BEGIN" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:SHARE_MENU_TITLE:Freigabeoptionen" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:CONTEXT_MENU_TITLE:Teilen mittels Nextcloud" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:COPY_PRIVATE_LINK_MENU_TITLE:Privater Link in die Zwischenablage kopiert" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING:EMAIL_PRIVATE_LINK_MENU_TITLE:Privaten Link als E-Mail verschicken …" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "STRING::" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketListener::sendMessage Sending SocketAPI message --> "GET_STRINGS:END" to SocketApiSocket(0x6000021c3be0)
[OCC::SocketApi::onLostConnection Lost connection SocketApiSocket(0x6000021c3be0)
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => '***',
'passwordsalt' => '***',
'secret' => '***',
'trusted_domains' =>
array (
0 => 'subdomain.domain.de',
),
'datadirectory' => '/home/www/nextcloud/data',
'trusted_proxies' =>
array (
0 => '127.0.0.1',
),
'dbtype' => 'mysql',
'version' => '18.0.4.2',
'dbname' => '***',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'mysql.utf8mb4' => true,
'dbuser' => '***',
'dbpassword' => '***',
'installed' => true,
'data-fingerprint' => '***',
'updater.secret' => '***',
'maintenance' => false,
'theme' => '',
'loglevel' => 2,
'overwrite.cli.url' => 'https://subdomain.domain.de',
'overwritehost' => 'subdomain.domain.de',
'overwriteprotocol' => 'https',
);
The output of your Apache/nginx/system log in /var/log/____
:
[Mon May 18 12:23:49 2020] [error] [client 0.1.2.3:37282] AH01797: client denied by server configuration: /home/www/nextcloud/data/.ocdata
[Mon May 18 12:23:53 2020] [error] [client 0.1.2.3:37490] AH01797: client denied by server configuration: /home/www/nextcloud/data/.ocdata
[Mon May 18 12:31:56 2020] [error] [client 0.1.2.3:53246] AH01797: client denied by server configuration: /home/www/nextcloud/data/.ocdata
[Mon May 18 12:34:54 2020] [error] [client 0.1.2.3:57390] AH01797: client denied by server configuration: /home/www/nextcloud/config
[Mon May 18 12:36:52 2020] [error] [client 0.1.2.3:59690] AH01797: client denied by server configuration: /home/www/nextcloud/config
[Mon May 18 12:51:23 2020] [error] [client 0.1.2.3:58642] AH01797: client denied by server configuration: /home/www/nextcloud/config
[Mon May 18 13:33:00 2020] [notice] [client AH00052: child pid 5188 exit signal Segmentation fault (11)
[Mon May 18 13:33:02 2020] [notice] [client AH00052: child pid 3874 exit signal Segmentation fault (11)
[Mon May 18 13:36:08 2020] [notice] [client AH00052: child pid 3873 exit signal Segmentation fault (11)
[Mon May 18 13:36:09 2020] [error] [client 0.1.2.3:57778] AH01797: client denied by server configuration: /home/www/nextcloud/data/.ocdata
[Mon May 18 13:40:12 2020] [error] [client 0.1.2.3:38694] AH01797: client denied by server configuration: /home/www/nextcloud/config
Any help is greatly appreciated.
Best,
rschiewer