[Shared Hosting] Connection to Server Lost & WebDAV interface broken

Hello,

we are a small group of people and decided to use nextcloud for our files. Since I’m responsible for the IT related stuff and we are very low on budget, i tried to set up an nextcloud installation on our shared hosting on which our website is running on. I had nextcloud 13 up and running for about 2 months, works quite well. I used a subdomain with ssl activated (eg.: cloud.mydomain.at) which points to the nextcloud folder on the host. A few days ago i decided to update to Version 14.0.0 . Since the integrated updated doesn’t work [1], i reinstalled the new version from scratch. Everything worked quite well. But after some hours there seems to be some problems. First if i wanted to open the newly installed nextcloud 14 within the browser and while loading the files the following error on the top of the screen popped up (and the loading circle keeps spinning):

Connection to Server lost.

I still could navigate through out the nextcloud installation, so i went to the settings page (Security & Setup Warnings) and the following message appeared; which i didn’t saw before:

Your web server is not yet set up properly to allow file synchronization because the WebDAV interface seems to be broken.

Also the desktop clients can’t connect to the server.

First i thought, i somehow messed up some parts with the shared hosting. After some testing i could narrow it down a little bit. It probably has something todo with the ssl certificate. I disabled ssl for the subdomain and after some waiting (changing takes some time) everything works as expected.

The log files doesn’t show anything, even if i enable debug and log level 2.

Since I have limited access to the server, if needed i can try to provide more information of the server.

So, does anyone have some clue, what could be the problem here, or where i can do further investigations?

Thanks;
Luc

[1] The integrated updater doesn’t probably work, cause the folder owner:group isn’t set to www-data. I know it is highly recommended to set the owner:group to www-data; but since i have no permission to run chgrp/chown on the server and it still was running without any problems i ignored this recommendation.

Hi @1Luc1. Sorry to hear you are struggling. Could you perhaps just tell us which OS and PHP version you are running, and whether this is done on apache or nginx? Also, do you have access to the log files so that you can paste a few log entries? If needed, you could adjust the loglevel in config.php to DEBUG so that it gives a bit more. Remember to revert it back to it’s default state afterwards, or the logs will grow quite rapidly.

There are various reasons this could happen, but without anymore detailed info, we won’t be able to help you resolve this quickly.

Hi @Starfish. Thanks for your prompt reply. I could investigate some infos from the hoster.

OS: Debian
WebServer: Apache 2.4
php Version: 7.1 (phpInfo)

nextcloud.log

{“reqId”:“W6KMMCvX-JUBqGRI229-tQAAAMk”,“level”:2,“time”:“2018-09-19T17:49:37+00:00”,“remoteAddr”:“77.244.243.7”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/.*",“message”:“Trusted domain error. “77.244.243.7” tried to access using “nextcloud.mydomain.at” as host.”,“userAgent”:“Zend_Http_Client”,“version”:“13.0.6.1”}
{“reqId”:“W6NB0sPP-dZZi21YSVZIkwAAAPs”,“level”:0,“time”:“2018-09-20T06:44:35+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/login",“message”:“Scss is disabled for /data/web/e95401/html/nextcloud13/core/css/jquery-ui-fixes.scss, ignoring”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB0sPP-dZZi21YSVZIkwAAAPs”,“level”:0,“time”:“2018-09-20T06:44:35+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/login",“message”:“Scss is disabled for /data/web/e95401/html/nextcloud13/core/css/server.scss, ignoring”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB0sPP-dZZi21YSVZIkwAAAPs”,“level”:0,“time”:“2018-09-20T06:44:35+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/login",“message”:“Scss is disabled for /data/web/e95401/html/nextcloud13/core/css/share.scss, ignoring”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB0sPP-dZZi21YSVZIkwAAAPs”,“level”:0,“time”:“2018-09-20T06:44:35+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“core”,“method”:“GET”,“url”:"/index.php/login",“message”:“Scss is disabled for /data/web/e95401/html/nextcloud13/core/css/jquery.ocdialog.scss, ignoring”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB8N51rrH4DqEUAYBrsAAAAFg”,“level”:0,“time”:“2018-09-20T06:45:05+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Run OCA\Files\BackgroundJob\ScanFiles job with ID 11”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB8N51rrH4DqEUAYBrsAAAAFg”,“level”:0,“time”:“2018-09-20T06:45:06+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Finished OCA\Files\BackgroundJob\ScanFiles job with ID 11 in 1 seconds”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Run OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 12”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“DeleteOrphanedItems”,“method”:“GET”,“url”:"/cron.php",“message”:“0 orphaned system tag relations deleted”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“DeleteOrphanedItems”,“method”:“GET”,“url”:"/cron.php",“message”:“0 orphaned user tag relations deleted”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“DeleteOrphanedItems”,“method”:“GET”,“url”:"/cron.php",“message”:“0 orphaned comments deleted”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“DeleteOrphanedItems”,“method”:“GET”,“url”:"/cron.php",“message”:“0 orphaned comment read marks deleted”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB9951rrH4DqEUAYBr6QAAAFI”,“level”:0,“time”:“2018-09-20T06:45:12+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Finished OCA\Files\BackgroundJob\DeleteOrphanedItems job with ID 12 in 0 seconds”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB-MPP-dZZi21YSVZJPgAAAOo”,“level”:0,“time”:“2018-09-20T06:45:17+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Run OCA\Files\BackgroundJob\CleanupFileLocks job with ID 13”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NB-MPP-dZZi21YSVZJPgAAAOo”,“level”:0,“time”:“2018-09-20T06:45:17+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Finished OCA\Files\BackgroundJob\CleanupFileLocks job with ID 13 in 0 seconds”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NCKvzY5u6NvK4RcqiGLAAAADs”,“level”:0,“time”:“2018-09-20T06:46:03+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Run OC\Authentication\Token\DefaultTokenCleanupJob job with ID 14”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NCKvzY5u6NvK4RcqiGLAAAADs”,“level”:0,“time”:“2018-09-20T06:46:03+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Invalidating session tokens older than 2018-09-19T06:46:03+00:00”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NCKvzY5u6NvK4RcqiGLAAAADs”,“level”:0,“time”:“2018-09-20T06:46:03+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Invalidating remembered session tokens older than 2018-09-05T06:46:03+00:00”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}
{“reqId”:“W6NCKvzY5u6NvK4RcqiGLAAAADs”,“level”:0,“time”:“2018-09-20T06:46:03+00:00”,“remoteAddr”:“90.146.107.183”,“user”:"–",“app”:“cron”,“method”:“GET”,“url”:"/cron.php",“message”:“Finished OC\Authentication\Token\DefaultTokenCleanupJob job with ID 14 in 0 seconds”,“userAgent”:“Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:62.0) Gecko/20100101 Firefox/62.0”,“version”:“13.0.6.1”}

Luc

That line tells me there is a trusted domain issue. Normally the trusted domains are listed as an array in config.php and can be set there. Have you checked whether the URL you are trying to access from, is listed in there?

Yea have recognized that line too; I thought it was cause of activating ssl for the domain, if you look at the timestamp it was yesterday where i played around a bit with ssl.

Within the config.php the trusted domains [nextcloud.mydomain.at] is included. just for testing, i tried to add the ip mentioned in the log line above. but problem still there.

'trusted_domains' =>
      array (
           0 => 'nextcloud.mydomain.at',
      ),
'overwrite.cli.url' => 'https://nextcloud.mydomain.at',

Update

As i was constantly in contact with the shared hoster, they just send me an email that they had some problem with an update of WebDAV; ironically it was at the exact time, where I updated the nextcloud instance. So they fixed it and now everything works like expected, at least for the first glance. So it lists files in the files view; but somehow it is not possible to create a folder either over the web interface or the desktop client. In the web interface the message ( Connection to Server lost.) appears. Creating or syncing files isn’t a problem. I keep you up to date on this.

Luc