The server does not support WebDAV

I can’t mount using davf . I’m alway getting this error :

    [crupuk@localhost ~]$ sudo mount -t davfs -o noexec https://cloud.myDomain.be/remote.php/dav/files/b81df83e-1554-1034-883c-4350ea96a9cf/ /tmp/nextcloud/
[sudo] password for crupuk: 
Please enter the username to authenticate with server
https://cloud.myDomain.be/remote.php/dav/files/b81df83e-1554-1034-883c-4350ea96a9cf/ or hit enter for none.
Username: Crupuk
Please enter the password to authenticate user Crupuk with server
https://cloud.MyDomain.be/remote.php/dav/files/b81df83e-1554-1034-883c-4350ea96a9cf/ or hit enter for none.
Password:  
/sbin/mount.davfs: mounting failed; the server does not support WebDAV

When i try to add NextCloud account to Gnome Shell i have a error message too :

image

Despite this error, Keepass2Android still work great with this webdav URL :

https://cloud.MyDomain.be/remote.php/webdav/Documents/MyFile.kdbx

I don’t have any error in my php error log, neither in apache log or nextcloud.log.

Could you please help me to move on on this error ?

NextCloud 16.0.3 behing LAMP ( Apache 2.4.6 , PHP 7.2 with FPM ) .

Thanks

I think you should try to use ../remote.php/webdav/.. instead of ../remote.php/dav/files/..to access the share, because you self have confirmed that it works.

I forgot to mention that, i already try with a few URL like this one :

sudo mount -t davfs -o noexec https://cloud.myDomain.be/remote.php/webdav/b81df83e-1554-1034-883c-4350ea96a9cf/ /tmp/nextcloud/

With or without the UID .

Same error.

Thanks for your help

Does it work if you do:

sudo mount -t davfs -o noexec https://cloud.myDomain.be/remote.php/webdav/ /tmp/nextcloud/

sudo mount -t davfs -o noexec https://cloud.myDomain.be/remote.php/webdav/ /tmp/nextcloud/
    Please enter the username to authenticate with server
https://cloud.myDomain.be/remote.php/webdav/ or hit enter for none.  
     Username: Crupuk
    Please enter the password to authenticate user Crupuk with server
https://cloud.myDomain.be/remote.php/webdav/ or hit enter for none.
    Password:  
    /sbin/mount.davfs: mounting failed; the server does not support WebDAV

Same error, if i go with the browser to this url i get this :slight_smile:

This is the WebDAV interface. It can only be accessed by WebDAV clients such as the Nextcloud desktop sync client.

Do you have 2FA enabled? If so, you’ll need to generate an app password for the login.

Nop 2FA disabled :frowning:

Same problem here.

I was able to solve it editing

/etc/davfs2/davfs2.conf

and setting

ignore_dav_header 1

1 Like