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
Server:
Nextcloud version (eg, 12.0.2): 18.0.3
Operating system and version (eg, Ubuntu 17.04): Arch Linux
Apache or nginx version (eg, Apache 2.4.25): Apache/2.4.41 (Unix)
PHP version (eg, 7.1): 7.4.4
Client:
Client version: 2.6.4git
Qt: 5.14.1
OpenSSL: 1.1.1e 17 Mar 2020
The issue you are facing:
On multiple computers, with multiple accounts on my instance, synchronization using the Nextcloud desktop client fails reproducible. When opening the client, discovery of remote changes starts as expected, but after a couple of seconds the synchronization fails with
An error occurred while opening a folder Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init
This happens each time the synchronisation starts, only very small syncs finish without an error. When running the nextcloud client from the command line, I get:
[OCC::AbstractNetworkJob::start OCC::LsColJob created for "https://<domain>/nextcloud" + "/path/to/folder" "OCC::DiscoverySingleDirectoryJob"
[OCC::WebFlowCredentials::slotFinished request finished
[OCC::AbstractNetworkJob::slotFinished QNetworkReply::UnknownNetworkError "Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init" QVariant(Invalid)
[OCC::WebFlowCredentials::stillValid QNetworkReply::UnknownNetworkError
[OCC::WebFlowCredentials::stillValid "Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"
[OCC::LsColJob::finished LSCOL of QUrl("https://<domain>/nextcloud/remote.php/dav/files/<user>/path/to/folder") FINISHED WITH STATUS "UnknownNetworkError Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"
[OCC::DiscoverySingleDirectoryJob::lsJobFinishedWithErrorSlot LSCOL job error "Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init" 0 QNetworkReply::UnknownNetworkError
[csync_ftw opendir failed for path/to/folder - errno 5
[OCC::SyncEngine::handleSyncError ERROR during csync_update : "An error occurred while opening a folder Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"
[OCC::ActivityWidget::addError Item "Nextcloud" retrieved resulted in "An error occurred while opening a folder Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"
[OCC::ActivityListModel::addErrorToActivityList Error successfully added to the notification list: "An error occurred while opening a folder Error while reading: error:140E0197:SSL routines:SSL_shutdown:shutdown while in init"
[OCC::SyncJournalDb::close Closing DB "/home/<user>/Nextcloud/._sync_e0241355035a.db"
[OCC::SyncEngine::finalize CSync run took 5427 ms
[OCC::Folder::slotSyncFinished Client version 2.6.4git Qt 5.14.1 SSL OpenSSL 1.1.1e 17 Mar 2020
[OCC::Folder::slotSyncFinished SyncEngine finished with ERROR
[OCC::Folder::showSyncResultPopup Folder sync result: 2
[OCC::Folder::slotSyncFinished the last 1 syncs failed
[OCC::ownCloudGui::slotSyncStateChange Sync state changed for folder "https://<domain>/nextcloud/remote.php/dav/files/<user>/" : "Error"
[OCC::FolderMan::slotFolderSyncFinished <========== Sync finished for folder [Nextcloud] of account [<user>@<domain>] with remote [https://<domain>/nextcloud/remote.php/dav/files/<user>/]
However, no error messages appear together with failing synchronisation. Only when starting the client, the messages below appear once. I have already updated and restarted both the client and the server machines, and also completely logged out and logged back in in the desktop client.
Any ideas how to further debug the issue? Is this a client issue, or a server issue?
The output of your Nextcloud log in Admin > Logging:
Debug core OC\AppFramework\Middleware\Security\Exceptions\NotLoggedInException: Current user is not logged in at .../Middleware/Security/SecurityMiddleware.php line 142 2020-03-29T13:41:04+00:00
0. lib/private/AppFramework/Middleware/MiddlewareDispatcher.php line 97
OC\AppFramework\Middleware\Security\SecurityMiddleware->beforeController(
)
1. lib/private/AppFramework/Http/Dispatcher.php line 97
OC\AppFramework\Middleware\MiddlewareDispatcher->beforeController(
)
2. lib/private/AppFramework/App.php line 125
OC\AppFramework\Http\Dispatcher->dispatch(
)
3. lib/private/AppFramework/Routing/RouteActionHandler.php line 47
OC\AppFramework\App::main(
)
4. <<closure>>
OC\AppFramework\Routing\RouteActionHandler->__invoke(
)
5. lib/private/Route/Router.php line 299
call_user_func(
)
6. ocs/v1.php line 82
OC\Route\Router->match(
)
7. ocs/v2.php line 24
require_once("\/usr\/share\/webapps\/nextcloud\/ocs\/v1.php")
Error PHP implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69 2020-03-29T13:41:04+00:00
Error PHP array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69 2020-03-29T13:41:04+00:00
Error PHP implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#60 2020-03-29T13:41:04+00:00
Error PHP array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58 2020-03-29T13:41:04+00:00
Error PHP Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58 2020-03-29T13:41:04+00:00
Error PHP implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69 2020-03-29T13:41:04+00:00
Error PHP array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#69 2020-03-29T13:41:04+00:00
Error PHP implode(): Invalid arguments passed at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#60 2020-03-29T13:41:04+00:00
Error PHP array_map(): Expected parameter 2 to be an array, null given at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58 2020-03-29T13:41:04+00:00
Error PHP Undefined index: args at /usr/share/webapps/nextcloud/apps/logreader/lib/Log/Formatter.php#58 2020-03-29T13:41:04+00:00
Debug no app in context Deprecated event type for {"[object] (OCP\SabrePluginEvent)":{"*statusCode":200,"*message":"","*server":{"[object] (OCA\DAV\Connector\Sabre\Server)":{"tree":"[object] 2020-03-29T13:41:04+00:00
(OCA\DAV\Connector\Sabre\ObjectTree)","*baseUri":"/nextcloud/remote.php/webdav/","httpResponse":"[object] (Sabre\HTTP\Response)","httpRequest":"[object] (Sabre\HTTP\Request)","sapi":"[object]
(Sabre\HTTP\Sapi)","*plugins":[],"transactionType":null,"protectedProperties":{"...":"Over 20 items, aborting
normalization"},"debugExceptions":false,"resourceTypeMapping":[],"enablePropfindDepthInfinity":true,"xml":"[object] (Sabre\DAV\Xml\Service)","*listeners":{"...":"Over 20 items, aborting
normalization"},"*logger":null}},"Symfony\Contracts\EventDispatcher\EventpropagationStopped":false}}: null
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 => '...',
1 => '...',
2 => '...',
),
'datadirectory' => '/usr/share/webapps/nextcloud/data',
'overwrite.cli.url' => '...',
'dbtype' => 'mysql',
'version' => '18.0.3.0',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextcloud',
'dbpassword' => '...',
'installed' => true,
'memcache.local' => '\\OC\\Memcache\\APCu',
'mail_smtpmode' => 'smtp',
'mail_smtpauthtype' => 'LOGIN',
'mail_from_address' => '...',
'mail_domain' => '...',
'mail_smtpsecure' => 'tls',
'mail_smtpauth' => 1,
'mail_smtphost' => '...',
'mail_smtpport' => '587',
'mail_smtpname' => '...',
'mail_smtppassword' => '...',
'apps_paths' =>
array (
0 =>
array (
'path' => '/usr/share/webapps/nextcloud/apps',
'url' => '/apps',
'writable' => false,
),
1 =>
array (
'path' => '/usr/share/webapps/nextcloud/apps2',
'url' => '/apps2',
'writable' => true,
),
),
'loglevel' => 0,
'maintenance' => false,
'updater.release.channel' => 'stable',
'theme' => '',
);
The output of your Apache/nginx/system log in /var/log/____
:
Lots of successfull PROPFIND messages until the error occurs in access_log:
<ip> - <user> [29/Mar/2020:15:48:39 +0200] "PROPFIND /nextcloud/remote.php/dav/files/<user>/path/to/folder/ HTTP/1.1" 207 3067
No error messages in error_log.