Failure to Sync to External Storage from Windows Client

Nextcloud version (eg, 12.0.2): 13
Operating system and version (eg, Ubuntu 17.04): CentOS 7.4
Apache or nginx version (eg, Apache 2.4.25): 2.4.6
PHP version (eg, 7.1): 7.1.13

The issue you are facing:

I have an otherwise functioning NextCloud instance, which will not sync to and from external storage when using the Windows desktop client. It has no problem syncing files stored on the server itself. However I have attached a Digital Ocean Space using the external storage plugin. Every time the desktop client tries to sync files stored in this location, it errors out with a “503 Service unavailable” message. The Android client works fine, however. I can upload a file to the external storage from my phone and view it in the web interface. However I can’t do the same from Windows.

The problem began after I enabled TOTP. Before that, I was able to upload and sync from external storage just fine. However removing TOTP did no good. I tried removing the external storage and re-adding it as well as deleting and re-installing the Windows desktop client to no avail. Setting SELinux to permissive did not help either.

Is this the first time you’ve seen this error? (Y/N): N

The output of your Nextcloud log in Admin > Logging:

Fatal	webdav	Sabre\DAV\Exception\ServiceUnavailable: Could not open file	2018-02-10T20:43:54-0500
Error	PHP	fopen(https://mpweb01-storage.nyc3.digitaloceanspaces.com/Guides%20and%20Presentations/Circulation%20and%20User%20Reports.pptx): failed to open stream: HTTP request failed! HTTP/1.1 503 Slow Down at /var/www/nextcloud/lib/private/Files/ObjectStore/S3ObjectTrait.php#68	2018-02-10T20:43:54-0500
Error	PHP	fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#74	2018-02-10T20:43:53-0500
Error	files_external	Aws\S3\Exception\S3Exception: Error executing "HeadObject" on "https://mpweb01-storage.nyc3.digitaloceanspaces.com/Guides%20and%20Presentations/MSUG%20Circ%20Presentation/overdue_charge_notice_file.png"; AWS HTTP error: Server error response [url] https://mpweb01-storage.nyc3.digitaloceanspaces.com/Guides%20and%20Presentations/MSUG%20Circ%20Presentation/overdue_charge_notice_file.png [status code] 503 [reason phrase] Slow Down (server): 503 Service Unavailable - 	2018-02-10T20:43:10-0500
Fatal	webdav	Sabre\DAV\Exception\ServiceUnavailable: Could not open file	2018-02-10T20:42:24-0500
Error	PHP	fopen(https://mpweb01-storage.nyc3.digitaloceanspaces.com/Guides%20and%20Presentations/6_DPOE_Module_Provide-20160921.pptx): failed to open stream: HTTP request failed! HTTP/1.1 503 Slow Down at /var/www/nextcloud/lib/private/Files/ObjectStore/S3ObjectTrait.php#68	2018-02-10T20:42:24-0500
Error	PHP	fseek(): stream does not support seeking at /var/www/nextcloud/apps/files_external/3rdparty/icewind/streams/src/Wrapper.php#74

The output of your Apache/nginx/system log in /var/log/access_log:

64.120.44.115 - peon [10/Feb/2018:20:46:15 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/LITA%20WCC HTTP/1.1" 207 12981 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (build 1) ($
64.120.44.115 - peon [10/Feb/2018:20:46:16 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/LITA%20WCC/Maker%20tech%20IG HTTP/1.1" 207 1471 "-" "Mozilla/5.0 (Windows) mirall/$
64.120.44.115 - peon [10/Feb/2018:20:46:18 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/LITA%20WCC/New%20logo HTTP/1.1" 207 4478 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 ($
64.120.44.115 - peon [10/Feb/2018:20:46:20 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/LITA%20WCC/SF%20Notables%20List HTTP/1.1" 207 3296 "-" "Mozilla/5.0 (Windows) mira$
64.120.44.115 - peon [10/Feb/2018:20:46:22 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/Personal%20Website HTTP/1.1" 207 9482 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 (bui$
64.120.44.115 - peon [10/Feb/2018:20:46:23 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/Personal%20Website/Planning HTTP/1.1" 207 10815 "-" "Mozilla/5.0 (Windows) mirall/$
64.120.44.115 - peon [10/Feb/2018:20:46:25 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/Personal%20Website/css HTTP/1.1" 207 2004 "-" "Mozilla/5.0 (Windows) mirall/2.3.3 $
64.120.44.115 - peon [10/Feb/2018:20:46:26 -0500] "PROPFIND /remote.php/dav/files/peon/Main%20Storage/Personal%20Website/images HTTP/1.1" 207 6693 "-" "Mozilla/5.0 (Windows) mirall/2.3$


The output of your Apache/nginx/system log in /var/log/error_log:


[Sat Feb 10 20:22:12.573990 2018] [authz_core:error] [pid 28081] [client 64.120.44.115:30926] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:22:41.156224 2018] [authz_core:error] [pid 28356] [client 64.120.44.115:36115] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:22:54.116389 2018] [authz_core:error] [pid 28117] [client 64.120.44.115:54983] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:23:04.258798 2018] [authz_core:error] [pid 28483] [client 64.120.44.115:24879] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:28:58.381860 2018] [authz_core:error] [pid 28483] [client 64.120.44.115:52475] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:43:26.046797 2018] [authz_core:error] [pid 28081] [client 64.120.44.115:5520] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
[Sat Feb 10 20:43:41.113266 2018] [authz_core:error] [pid 28117] [client 64.120.44.115:40929] AH01630: client denied by server configuration: /var/www/nextcloud/data/.ocdata
2 Likes