Hi all,
I’m having issues with my locally hosted self built install of Nextcloud. This has been going on for some time but it really is getting irritating now. I can’t add new users, I can’t add new devices and I can’t change the config.
Here’s the config specs:
Nextcloud version (eg, 12.0.2): 17.0.1
Operating system and version (eg, Ubuntu 17.04): Ubuntu 18.04.3
Apache or nginx version (eg, Apache 2.4.25): NGINX 1.14.0
PHP version (eg, 7.1): 7.2
MySQL Server: 5.8
The issue you are facing:
While logging in on the web console, user or admin get message “Connection to server is lost”. It is not possible to authenticate new devices, view folders or files via webserver or retrieve config info via the website.
However
File sync with already known clients works fine.
Is this the first time you’ve seen this error? (Y/N): N, had the same issue in v16. In fact, that is where it started.
Steps to replicate it:
The server is a virtual machine running on VMware vSphere (ESXi + vCenter) v6.7.
The situation occurred when there was a network disruption and the SAN connection was severed. The Nextcloud VM was corrupt. The VM was recovered using an Ubuntu recovery CD. Since then the issue exists. We recently upgraded from v16.x to v17.0.1. The error remained. It feels like a database connection problem or comparable.
The output of your Nextcloud log in Admin > Logging:
Can't retrieve logging, "Connection to server lost"
The output of your config.php file in /path/to/nextcloud
(make sure you remove any identifiable information!):
<?php
$CONFIG = array (
'instanceid' => 'ocd28a9v7r7m',
'passwordsalt' => 'k6kDR+X217NYmnaaTPqE8n+tnEgI5m',
'secret' => '88888888',
'trusted_domains' =>
array (
0 => 'lair.internetdomain.net',
1 => '172.16.100.80',
),
'datadirectory' => '/cloudstore/',
'dbtype' => 'mysql',
'version' => '17.0.1.1',
'overwrite.cli.url' => 'https://lair.internetdomain.net',
'dbname' => 'nextcloud',
'dbhost' => 'localhost',
'dbport' => '',
'dbtableprefix' => 'oc_',
'dbuser' => 'nextclouduser',
'dbpassword' => '************', <I removed the passwordP
'installed' => true,
'mail_smtpmode' => 'smtp',
'mail_sendmailmode' => 'smtp',
'mail_from_address' => 'filecloud',
'mail_domain' => 'internetdomain.net',
'mail_smtphost' => '10.10.10.40',
'mail_smtpport' => '25',
'twofactor_enforced' => 'false',
'twofactor_enforced_groups' =>
array (
0 => 'users',
1 => 'admin',
),
'twofactor_enforced_excluded_groups' =>
array (
),
'mysql.utf8mb4' => true,
'maintenance' => false,
'data-fingerprint' => '9e7450beb58d8e188f7a29f5b3cf7d93',
'logtimezone' => 'Europe/Amsterdam',
'log_type' => 'file',
'logfile' => '/var/log/filecloud-debug.log',
'syslog_tag' => 'filecloud',
'loglevel' => 0,
);
The output of your Apache/nginx/system log in /var/log/____
:
**Error.log:**
2019/11/17 22:59:34 [crit] 17747#17747: *48365 SSL_do_handshake() failed (SSL: error:14209102:SSL routines:tls_early_post_process_client_hello:unsupported protocol) while SSL handshaking, client: 93.113.125.89, server: 0.0.0.0:443
2019/11/18 00:47:05 [crit] 1554#1554: *1 connect() to unix:/run/php/php7.2-fpm.sock failed (2: No such file or directory) while connecting to upstream, client: 172.16.40.45, server: , request: "PROPFIND /remote.php/dav/files/alex/ HTTP/1.1", upstream: "fastcgi://unix:/run/php/php7.2-fpm.sock:", host: "lair.internetdomain.net"