Bug 255235 - sysutils/fusefs-webdavfs: unable to mount anything
Summary: sysutils/fusefs-webdavfs: unable to mount anything
Status: Closed FIXED
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Eugene Grosbein
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-04-19 18:43 UTC by freebsd
Modified: 2021-07-19 12:47 UTC (History)
0 users

See Also:
bugzilla: maintainer-feedback? (eugen)


Attachments
trace in the non sudo case (4.65 KB, text/plain)
2021-06-16 18:27 UTC, freebsd
no flags Details
trace in the sudo case (26.00 KB, text/plain)
2021-06-16 18:27 UTC, freebsd
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description freebsd 2021-04-19 18:43:23 UTC
When trying to use it (with a nexcloud server which is said to be suported on the github page, I get following result :

- As non root : mount -t webdavfs -ousername=erwan,password=xxxx https://vapeur.rail.eu.org/remote.php/dav/files/erwan/' ~/mnt 
mount: https:/vapeur.rail.eu.org/remote.php/dav/files/erwan: Operation not permitted

- as root : sudo mount -t webdavfs -ousername=erwan,password=bg94x-Acf78-BS9Gy-HCKY6-ftdRe 'https://vapeur.rail.eu.org/remote.php/dav/files/erwan/' /mnt/vapeur-test
mount: https:/vapeur.rail.eu.org/remote.php/dav/files/erwan: Operation not supported by device

(/mnt/vapeur-test is an empty directory owned by root)

Notice the single / after https in the answer, in case it is important
Comment 1 Eugene Grosbein freebsd_committer freebsd_triage 2021-06-15 01:54:03 UTC
Sorry for late reply.

Please specify exact FreeBSD version you use.
And exact version of your NextCloud instance.
Do you run NextCloud under FreeBSD, too?

Also, please obtain debugging info using additional mount flags:
 -F /tmp/trace.txt -Tfuse,webdav,httpreq,httphdr
Comment 2 freebsd 2021-06-16 18:27:10 UTC
Created attachment 225864 [details]
trace in the non sudo case
Comment 3 freebsd 2021-06-16 18:27:55 UTC
Created attachment 225865 [details]
trace in the sudo case

attempt was successful
Comment 4 freebsd 2021-06-16 18:30:51 UTC
Hello.
Versions are (today, but I get same behaviour)

FreeBSD 12.2-RELEASE-p7 for client and server, Nextcloud 21.0.2

To obtain the trace I had to use mount.webdavfs directly instead of mount -t webdavfs

And it worked, when called by root (through sudo). That could be a good start for a workaround, I'll have to check the access options.

But I attached both trace files as you asked.
Comment 5 freebsd 2021-06-16 18:33:50 UTC
Sorry, I forgot to add that in the "working" case, I get error message

https://vapeur.rail.eu.org/remote.php/dav/files/erwan/: no PUT Range support, mounting read-only
Comment 6 Eugene Grosbein freebsd_committer freebsd_triage 2021-06-17 03:31:51 UTC
(In reply to freebsd from comment #2)

To mount it as non-root, please refer to the FreeBSD FAQ section "8.18. How do I let ordinary users mount CD-ROMs, DVDs, USB drives, and other removable media?"

https://docs.freebsd.org/en/books/faq/
Comment 7 commit-hook freebsd_committer freebsd_triage 2021-06-17 04:41:08 UTC
A commit in branch main references this bug:

URL: https://cgit.FreeBSD.org/ports/commit/?id=ba9b50a94af9c3dae55cb78b8a12a6923c941308

commit ba9b50a94af9c3dae55cb78b8a12a6923c941308
Author:     Eugene Grosbein <eugen@FreeBSD.org>
AuthorDate: 2021-06-17 04:38:30 +0000
Commit:     Eugene Grosbein <eugen@FreeBSD.org>
CommitDate: 2021-06-17 04:38:30 +0000

    sysutils/fusefs-webdavfs: update to g20200520

    - catch up with upstream changes for the code and dependencies;
    - switch port to USES=go:modules and GH_TUPLE.

    PR:             255235

 sysutils/fusefs-webdavfs/Makefile | 46 ++++++++++++++-------------------------
 sysutils/fusefs-webdavfs/distinfo | 16 ++++++++------
 2 files changed, 25 insertions(+), 37 deletions(-)
Comment 8 Eugene Grosbein freebsd_committer freebsd_triage 2021-06-17 06:02:25 UTC
I've just updated the port. Update your ports tree and rebuild latest version to check if it behaves better. Please report back.
Comment 9 Eugene Grosbein freebsd_committer freebsd_triage 2021-07-19 12:47:40 UTC
Feedback timeout over a month.