Nextcloud Client won't sync some files with Bad Gateway

Hi there,

I am syncing four computers/laptops with my nextcloud server behind an apache2 proxy which worked well for a couple of weeks without any problems.

Since three days now I got error on three of the clients the two directories (the exact same directories on each client) cannot be synced caused by a “Bad Gateway” error. On the other two client this works perfectly. Furthermore, two clients run with the same user - one client without problems, the other facing the above issue.

Now I am asking the community if you can help me with that?

My setup:

  • all clients run an Windows 10 64Bit PCs

  • connecting to my private hosted nextcloud using docker:

    image: nextcloud:18.0
    - 80
    - db
    - data/nextcloud/:/var/www/html
    restart: always

Nextcloud runs behind an apache2 proxy with a simple proxy pass:

# redirect everything to nextcloud
ProxyPass /
ProxyPassReverse /
ProxyPassReverseCookiePath / /

Log show me following error (first does work, second not)

proxy_1        | mynextcloud.tld:443 {CLIENTIP} - - [24/Mar/2020:15:27:25 +0100] "PROPFIND /remote.php/dav/files/path/to/working/file HTTP/1.1" 207 1780 "-" "Mozilla/5.0 (Windows) mirall/2.6.2stable-Win64 (build 20191224) (Nextcloud)"
nextcloud_1  | - username [24/Mar/2020:14:27:25 +0000] "PROPFIND /remote.php/dav/files/path/to/working/file HTTP/1.1" 207 1678 "-" "Mozilla/5.0 (Windows) mirall/2.6.2stable-Win64 (build 20191224) (Nextcloud)"

proxy_1        | mynextcloud.tld:443 {CLIENTIP} - - [24/Mar/2020:15:27:15 +0100] "PROPFIND /remote.php/dav/files/path/tp/broken/file HTTP/1.1" 502 562 "-" "Mozilla/5.0 (Windows) mirall/2.6.4stable-Win64 (build 20200303) (Nextcloud)"

As you can see, the proxy seems to no redirect to nextcloud. But why? Other two clients sync these files without any problems.
How can I debug that? Any ideas to fix this? :slight_smile: