Still experiencing desktop-client unreliable connection - help tracking down problem

I’ve been trying to track down this problem for months. I can’t seem to get our desktop clients to connect reliably with our server and I can’t seem to figure out why. Our trouble shooting has lead us to install a new internet provider (dumping our cable connection). We were reluctant to replace our internet connection seeing that we were having no problems reaching any other service co-located with our nextcloud server. The replacement of service certainly helped the problem (we now have a couple of machines that connect reliably to our server throughout the day) but other systems in the same office will not connect. The reason that we identified our cable internet connection as a problem was that when no systems could connect to our NC server from our office we could always connect through a neighboring business wifi connection. Despite the fact that the problem markedly diminished with our new connection we are still having problems. We have tried a number of fixes:

  1. Rebuilt our server and replaced the hardware (Odroid)
  2. Replaced our cable internet connection, router and cables in the office (the remote site)

Our NC server runs on an Odroid-c, Ubuntu 16.04, Ngnix and rarely show any load beyone .03. Our server is connected to the internet via a comcast cable connection. We run a mailserver and webserver on this connection and never have a problem reaching those servers. Seeing that replacing my cable connection at the remote site partially solved the problem I’m wondering if I should replace my connection at the server site…

The link below nginx_nextcloud error log… there are many timeout errors… perhaps someone can take a look and see if they see if something is out of order.

https://cloud.gregorigroup.com/s/uwcBY4cA9L8LhFF

I’m hoping that I can stick with Nextcloud but I’m running out of options. I’d be glad to pay someone to help us track this down.

Thanks,
Wayne

These timeout errors should be handled. Review your fastcgi-timeout settings and if you think they are already long enough, you have to look into more details which processes take so long.

If you haven’t set up any caching mechanism yet, do this first, this reduces the load on your database and the waiting time for it. This is important if you have many people using it. You are already using system cronjobs?

Thanks for the note . There are only 5 users on our system. The system load is always sub 1. I’ve looked to see where I might lengthen my fastcgi timeout but I don’t see a variable for timeout… I looked in fastcgi.conf and fastcgi_params.

I’m on a computer in my office (direct wire to nextcloud) but my desktop client will not connect. The system load is .11 and there are no other users connected to nextcloud. However, webdav will connect fine. This is maddening.

Here is my webserver access log that corresponds with my desktop client F12 capture below it.
10.10.1.73 - wayneg [27/Apr/2017:21:35:00 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:35:26 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:35:27 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:35:32 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:35:56 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:35:59 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:36:02 -0400] “OPTIONS /remote.php/webdav HTTP/1.1” 401 317 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:36:04 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:36:26 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:36:31 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:36:32 -0400] “OPTIONS /remote.php/webdav HTTP/1.1” 200 0 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:36:36 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:36:56 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:37:03 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 541 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:03 -0400] “OPTIONS /remote.php/ HTTP/1.1” 502 182 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:03 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:37:04 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 753 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:04 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 16778 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:05 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 463 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:05 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 753 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:05 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 753 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:05 -0400] “PROPFIND /remote.php/webdav HTTP/1.1” 207 753 “-” "gvfs/1.28.2"
10.10.1.73 - wayneg [27/Apr/2017:21:37:08 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:37:26 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:37:35 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:37:40 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:37:56 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:38:07 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:38:12 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:38:26 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:38:39 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:38:44 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:38:56 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - - [27/Apr/2017:21:38:56 -0400] “GET /index.php/apps/files/ajax/getstoragestats.php?dir=%2F HTTP/2.0” 200 796 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:39:11 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:39:16 -0400] “GET /status.php HTTP/1.1” 200 167 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - - [27/Apr/2017:21:39:26 -0400] “GET /ocs/v2.php/apps/notifications/api/v2/notifications HTTP/2.0” 200 473 “-” "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:53.0) Gecko/20100101 Firefox/53.0"
10.10.1.73 - wayneg [27/Apr/2017:21:39:43 -0400] “PROPFIND /remote.php/webdav/ HTTP/1.1” 499 0 “-” "Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)"
10.10.1.73 - wayneg [27/Apr/2017:21:39:48 -0400] “GET /status.php HTTP/1.1” 200 167 “-” “Mozilla/5.0 (Linux) mirall/2.3.1 (Nextcloud)”

Here’s the log from my desktop client…
Operation canceled"
04-27 18:10:23:854 0x23e4fd0 Account "wayneg@cloud.gregorigroup.com" disconnected or paused, terminating or descheduling sync folders
04-27 18:10:28:760 0x23e4fd0 Resetting QNAM
04-27 18:10:28:761 0x23e4fd0 Checking server and authentication
04-27 18:10:28:761 0x23e4fd0 Trying to look up system proxy
04-27 18:10:28:764 0x23e4fd0 No system proxy set by OS
04-27 18:10:28:764 0x23e4fd0 Object::connect: No such signal QNetworkReplyImpl::encrypted()
04-27 18:10:28:765 0x23e4fd0 !!! OCC::CheckServerJob created for “https://cloud.gregorigroup.com” + “status.php” "OCC::ConnectionValidator"
04-27 18:10:28:851 0x23e4fd0 status.php returns: QMap((“edition”, QVariant(QString, “”) ) ( “installed” , QVariant(bool, true) ) ( “maintenance” , QVariant(bool, false) ) ( “needsDbUpgrade” , QVariant(bool, false) ) ( “productname” , QVariant(QString, “Gregori Group Cloud”) ) ( “version” , QVariant(QString, “11.0.3.2”) ) ( “versionstring” , QVariant(QString, “11.0.3”) ) ) 0 Reply: QNetworkReplyImpl(0x2db2e90)
04-27 18:10:28:852 0x23e4fd0 ** Application: ownCloud found: QUrl( “https://cloud.gregorigroup.com/status.php” ) with version “11.0.3” ( “11.0.3.2” )
04-27 18:10:28:853 0x23e4fd0 # Check whether authenticated propfind works.
04-27 18:10:28:853 0x23e4fd0 !!! OCC::PropfindJob created for “https://cloud.gregorigroup.com” + “/” "OCC::ConnectionValidator"
04-27 18:10:55:857 0x23e4fd0 virtual void OCC::AbstractNetworkJob::slotTimeout() OCC::PropfindJob(0x2b57810) Timeout QUrl( “https://cloud.gregorigroup.com/remote.php/webdav/” )
04-27 18:10:55:858 0x23e4fd0 void OCC::AbstractNetworkJob::slotFinished() 5 “Operation canceled” QVariant(, )
04-27 18:10:55:859 0x23e4fd0 PROPFIND request not successful, http result code is 0 ""
04-27 18:10:55:859 0x23e4fd0 "No connection to Nextcloud at https://cloud.gregorigroup.com.

You probably have to set it yourself: http://mamchenkov.net/wordpress/2016/08/04/504-gateway-timeout-error-on-nginx-fastcgi-php-fpm/

What is a bit strange is the 499 error which means that the client gives up before the server can send data. So it could be client-side as well (network connection, firewall, …), you could try to connect one of these clients to one of the test servers: Demo instances of 9-14 now live

same problem here, have you a solution ?