Hope resuming an old post is fair.
I have a similar problem: can’t success in having WebDAV mounts on the Linux command line.
Tried the instructions in the manual, hints from this post and similar, but no result.
I always get something like (direct mount no fstab, but no difference):
Please enter the username to authenticate with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Password:
/sbin/mount.davfs: Mounting failed.
302 Found
#mount -t davfs https://dav.domain.it/nextcloud/remote.php/webdav/ /share/Roma/
Please enter the username to authenticate with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/webdav/ or hit enter for none.
Password:
/sbin/mount.davfs: the server certificate does not match the server name
/sbin/mount.davfs: the server certificate is not trusted
issuer: dav.domain.it
subject: dav.domain.it
identity: dav.domain.it
fingerprint: 4a:60:d8:f2:82:e5:32:2e:ff:de:29:2e:4b:41:fd:26:28:fa:16:d5
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] y
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
Please enter the username to authenticate with server
h…t/nextcloud/remote.php/dav/files/USERNAME/ or hit enter for none.
Username: USERNAME
Please enter the password to authenticate user USERNAME with server
h…t/nextcloud/remote.php/dav/files/USERNAME/ or hit enter for none.
Password:
/sbin/mount.davfs: the server certificate is not trusted
issuer: dav.domain.it
subject: dav.domain.it
identity: dav.domain.it
fingerprint: 4a:60:d8:f2:82:e5:32:2e:ff:de:29:2e:4b:41:fd:26:28:fa:16:d5
You only should accept this certificate, if you can
verify the fingerprint! The server might be faked
or there might be a man-in-the-middle-attack.
Accept certificate for this session? [y,N] y
/sbin/mount.davfs: mounting failed; the server does not support WebDAV
I have edited domain and USERNAME.
I am using a 14.0.3 version of NC in a turnkeylinux lxc container installation (it is a test). Web and client connections works fine.
Similar sintax on the same linux client boxes on a owncloud test VM works fine.
I tried the method above - it worked but it’s so slow - can’t use it for work properly.
To have a compare -> Calendar, Contacts, Tasks are working still with same combination and tools! Only “files” is making trouble.
So that the entry above in Screenshot is called “ownCloud” instead of “Nextcloud” was no problem until NC 16 - it just worked.
And more: Déjà Dup is no longer working too. When entering my Server URL + Username + App Token (instead of Password) -> Déjà Dup reports http Authorization error -> no access to webdav folders!
Need help with that.