Possibly .htaccess corrupted after update on web install

Nextcloud version 11.0.1
shared hosting OVH:
PHP Version 5.6.21

I used the web install for shared hosting, a coupe of days ago, it worked with DavDroid smoothly, then I updated and it doesn’t. I suppose it comes from NextCloud since

    • I didn’t update DavDroid,

(my hosting provider doesn’t seem to enable getenv(‘PATH’) but that wasn’t a problem before updating to the latest version)

1 Like

This .well-known-stuff is service discovery and must be on the main domain (not in a subfolder):
From which version did you upgrade? There were some problems with davdroid (follow the discussions, I can’t remember if a permanent fix was implemented):

Nearly the same problem when I have again upgraded from 10.0.1 to 11.0.1.

Two things to redo and it works back (that would be great it is somehow if possible handle in future nextcloud releases):

-> Add value '/^DAVdroid/' and/or '/^DAVx5', to the file /lib/base.php
$incompatibleUserAgents = [
 // OS X Finder
 '/^DAVdroid/', // not necessary if only DAVx5 clients
 '/^DAVx5/', // not necessary if only DAVdroid clients


-> Add the 3 following lines to the .htaccess file which is at the root of the nextcloud directory:
<IfModule mod_deflate.c>
  SetEnv no-gzip 1

I did these two modifications and started with the .htaccess one. Only modifying .htaccess was not sufficient.
I did not try to only modify /lib/base.php.

1 Like

Hello @tflidd,
I was upgrading from 11.0.0 (that’s what the web installer installs) to 11.0.1. I deleted my installation to make a fresh install (11.0.0) on a subdomain so everything is at root and I don’t have those errors, services are recognized by DavDroid. Are we supposed to dedicate a domain or subdomain to nextcloud ? (that sounds logical in a sense but I didn’t know it was mandatory)

Now I have other issue (basically : absolutely nothing is synchronizing, and no calendar import are working) but I’l give a try to upgrade to 11.0.1 again first and see if anything gets broken again.

Thank you @philippeVerney I already stumbled on one of your post about the problem with gzipd output and header sent with a 0 size so I disabled compression when I installed
I’ll try to set this incompatibleUserAgents variable.

Edit : Thank you @philippeVerney the calendar is now synchronizing - and contact too but not before deleting all my contact list first.
After the upgrade the .htacces modification that prevented compressed output from the server has been erased though (but now all seem to work ?!)