Debugging WebDV

Steps to reproduce

That’s the problem.

Expected behaviour

FolderSync Pro should sync with Owncloud 10.0.10

Actual behaviour

Android reports "file not found

Server configuration

Operating system:
Ubuntu 18.04

Web server:
Apache 2

Database:
MariaDB

PHP version:
PHP 7.2.17-1+ubuntu18.04.1+deb.sury.org+3 (cli) (built: Apr 10 2019 10:50:57) ( NTS )

ownCloud version: (see ownCloud admin page)
10.0.10

Updated from an older ownCloud or fresh install:
Upgrade

Where did you install ownCloud from:
Source

Signing status (ownCloud 9.0 and above):

https://gist.github.com/m1dnight/1446c9eeb21b60148a9d75ecc43c4af1

The content of config/config.php:

https://gist.github.com/m1dnight/64d91691f7ad1ac9a3d0e8e6b71f6a83

List of activated apps:

Enabled:
  - activity: 2.4.1
  - comments: 0.3.0
  - configreport: 0.1.1
  - dav: 0.4.0
  - federatedfilesharing: 0.3.1
  - federation: 0.1.0
  - files: 1.5.1
  - files_external: 0.7.1
  - files_pdfviewer: 0.10.0
  - files_sharing: 0.11.0
  - files_texteditor: 2.3.0
  - files_trashbin: 0.9.1
  - files_versions: 1.3.0
  - files_videoplayer: 0.9.8
  - firstrunwizard: 1.1
  - gallery: 16.1.1
  - market: 0.2.5
  - notifications: 0.3.5
  - provisioning_api: 0.5.0
  - systemtags: 0.3.0
  - templateeditor: 0.4.0
  - updatenotification: 0.2.1
Disabled:
  - encryption
  - external
  - user_external

Are you using external storage, if yes which one:

Yes, NFS mount at /nfs/owncloud.

Are you using encryption: no, encryption is done by reverse proxy on other server.

Are you using an external user-backend, if yes which one: no

Client configuration

Browser:
/

Operating system:
/

Logs

Web server error log

192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:34 +0000] "PROPFIND /owncloud/remote.php/webdav/PhoneSync/ HTTP/1.1" 207 2076 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - - [02/May/2019:08:34:39 +0000] "GET /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 401 1309 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:39 +0000] "GET /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 404 1269 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - - [02/May/2019:08:34:39 +0000] "GET /owncloud/ocs/v2.php/apps/notifications/api/v1/notifications?format=json HTTP/1.1" 200 853 "-" "Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:66.0) Gecko/20100101 Firefox/66.0"
192.168.1.206:80 192.168.1.202 - - [02/May/2019:08:34:40 +0000] "PROPFIND /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 401 1309 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:40 +0000] "PROPFIND /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 404 1318 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:47 +0000] "PROPFIND /owncloud/remote.php/dav/files/m1dnight/docs HTTP/1.1" 207 956 "-" "Mozilla/5.0 (Linux) mirall/2.5.4 (build 515)"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:47 +0000] "PROPFIND /owncloud/remote.php/dav/files/m1dnight/Samsung HTTP/1.1" 207 958 "-" "Mozilla/5.0 (Linux) mirall/2.5.4 (build 515)"
192.168.1.206:80 192.168.1.202 - - [02/May/2019:08:34:51 +0000] "GET /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 401 1305 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:51 +0000] "GET /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 404 1265 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - - [02/May/2019:08:34:52 +0000] "PROPFIND /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 401 1311 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:52 +0000] "PROPFIND /owncloud/remote.php/webdav/PhoneSync/download_20190412_142515.jpg.tacitpart HTTP/1.1" 404 1314 "-" "OkHttp"
192.168.1.206:80 192.168.1.202 - m1dnight [02/May/2019:08:34:55 +0000] "PROPFIND /owncloud/remote.php/dav/files/m1dnight/ HTTP/1.1" 207 970 "-" "Mozilla/5.0 (Linux) mirall/2.5.4 (build 515)"

ownCloud log (data/owncloud.log)

https://gist.github.com/m1dnight/a654d969bbeac9d6dcd7b5825a456d57

I have an android phone (samsung galaxy s8, with android 9), running FolderSync Pro to sync my phone dir to my owncloud instance.

My owncloud instance works flawlessly (desktop clients work, webdav via nautilus in ubuntu works, and the webdirectory works, too).

When I try to sync a simple picture to an empty dir on my owncloud instance I keep getting the error in the application that the file is not found (the local android path) For example path not found: /sdcard/testdir/pic.jpg.

I figured this was related to the android app, but apparently it’s not.

I tried to sync to google drive to rule out any issues on my android side, and that works indeed. Next, I tried to sync to the demo.owncloud.com host, to see if that works, and that works too.

So this means that the issue must be on my server.

I have no clue on how to continue debugging this.

Maybe check required Apache modules in the ownCloud docs