Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mount webdav with davfs2 #529

Open
tobiasfiechter opened this issue May 26, 2021 · 1 comment
Open

Mount webdav with davfs2 #529

tobiasfiechter opened this issue May 26, 2021 · 1 comment

Comments

@tobiasfiechter
Copy link

tobiasfiechter commented May 26, 2021

Hi,

I have provided a webdav server by using megacmd on Linux:

mega-login USER_EMAIL MY_PASSWORD;
mega-webdav "FOLDER";

This seems to work fine, I can wget the index file provided by the url from megacmd. But whenever I try to mount my mega drive with davfs2 I get the following error:

mount.davfs: Mounting failed.
XML parse error at line 32: Entity 'Atilde' not defined

I enabled debug output for the davfs2, here it is:

May 26 20:19:55 raspi4 mount.davfs: davfs2 1.5.5
May 26 20:19:55 raspi4 mount.davfs: mount.davfs -o uid=pi http://127.0.0.1:4443/FoJUiRzA/Fotos /home/pi/mount/Fotos
May 26 20:19:55 raspi4 mount.davfs: Configuration:
May 26 20:19:55 raspi4 mount.davfs: url: http://127.0.0.1:4443/FoJUiRzA/Fotos
May 26 20:19:55 raspi4 mount.davfs: mount point: /home/pi/mount/Fotos
May 26 20:19:55 raspi4 mount.davfs: dav_user: davfs2
May 26 20:19:55 raspi4 mount.davfs: dav_group: davfs2
May 26 20:19:55 raspi4 mount.davfs: conf: (null)
May 26 20:19:55 raspi4 mount.davfs: user: 0
May 26 20:19:55 raspi4 mount.davfs: netdev: 1
May 26 20:19:55 raspi4 mount.davfs: grpid: 0
May 26 20:19:55 raspi4 mount.davfs: mopts: 0xc0ed0006
May 26 20:19:55 raspi4 mount.davfs: kernel_fs: (null)
May 26 20:19:55 raspi4 mount.davfs: buf_size: 0 KiB
May 26 20:19:55 raspi4 mount.davfs: uid: 1000
May 26 20:19:55 raspi4 mount.davfs: gid: 0
May 26 20:19:55 raspi4 mount.davfs: dir_mode: 040755
May 26 20:19:55 raspi4 mount.davfs: file_mode: 0100644
May 26 20:19:55 raspi4 mount.davfs: scheme: http
May 26 20:19:55 raspi4 mount.davfs: host: 127.0.0.1
May 26 20:19:55 raspi4 mount.davfs: port: 4443
May 26 20:19:55 raspi4 mount.davfs: path: /FoJUiRzA/Fotos/
May 26 20:19:55 raspi4 mount.davfs: trust_ca_cert: (null)
May 26 20:19:55 raspi4 mount.davfs: trust_server_cert: (null)
May 26 20:19:55 raspi4 mount.davfs: secrets: (null)
May 26 20:19:55 raspi4 mount.davfs: clicert: (null)
May 26 20:19:55 raspi4 mount.davfs: p_host: (null)
May 26 20:19:55 raspi4 mount.davfs: p_port: 8080
May 26 20:19:55 raspi4 mount.davfs: useproxy: 0
May 26 20:19:55 raspi4 mount.davfs: askauth: 1
May 26 20:19:55 raspi4 mount.davfs: locks: 1
May 26 20:19:55 raspi4 mount.davfs: lock_owner: (null)
May 26 20:19:55 raspi4 mount.davfs: lock_timeout: 1800 s
May 26 20:19:55 raspi4 mount.davfs: lock_refresh: 60 s
May 26 20:19:55 raspi4 mount.davfs: expect100: 0
May 26 20:19:55 raspi4 mount.davfs: if_match_bug: 0
May 26 20:19:55 raspi4 mount.davfs: drop_weak_etags: 0
May 26 20:19:55 raspi4 mount.davfs: n_cookies: 0
May 26 20:19:55 raspi4 mount.davfs: precheck: 1
May 26 20:19:55 raspi4 mount.davfs: ignore_dav_header: 0
May 26 20:19:55 raspi4 mount.davfs: use_compression: 0
May 26 20:19:55 raspi4 mount.davfs: follow_redirect: 0
May 26 20:19:55 raspi4 mount.davfs: connect_timeout: 10 s
May 26 20:19:55 raspi4 mount.davfs: read_timeout: 30 s
May 26 20:19:55 raspi4 mount.davfs: retry: 30 s
May 26 20:19:55 raspi4 mount.davfs: max_retry: 300 s
May 26 20:19:55 raspi4 mount.davfs: s_charset: (null)
May 26 20:19:55 raspi4 mount.davfs: header: (null)
May 26 20:19:55 raspi4 mount.davfs: sys_cache: /var/cache/davfs2
May 26 20:19:55 raspi4 mount.davfs: cache_dir: /var/cache/davfs2
May 26 20:19:55 raspi4 mount.davfs: backup_dir: lost+found
May 26 20:19:55 raspi4 mount.davfs: cache_size: 500 MiB
May 26 20:19:55 raspi4 mount.davfs: table_size: 1024
May 26 20:19:55 raspi4 mount.davfs: dir_refresh: 60 s
May 26 20:19:55 raspi4 mount.davfs: file_refresh: 1 s
May 26 20:19:55 raspi4 mount.davfs: delay_upload: 10
May 26 20:19:55 raspi4 mount.davfs: gui_optimize: 0
May 26 20:19:55 raspi4 mount.davfs: minimize_mem: 0
May 26 20:19:55 raspi4 mount.davfs: debug: 0x7
May 26 20:19:55 raspi4 mount.davfs: neon_debug: 0x3
May 26 20:19:55 raspi4 mount.davfs: mounts in: /proc/mounts
May 26 20:19:55 raspi4 mount.davfs: PID file: /var/run/mount.davfs/home-pi-mount-Fotos.pid
May 26 20:19:55 raspi4 mount.davfs: changing persona: euid 109, gid 114
May 26 20:19:55 raspi4 mount.davfs: Initializing webdav
May 26 20:19:55 raspi4 mount.davfs: HTTP session to http://127.0.0.1:4443 begins.
May 26 20:19:55 raspi4 mount.davfs: Initializing cache
May 26 20:19:55 raspi4 mount.davfs: Alignment of dav_node: 8
May 26 20:19:55 raspi4 mount.davfs: Checking cache directory
May 26 20:19:55 raspi4 mount.davfs: /var/cache/davfs2/127.0.0.1-FoJUiRzA-Fotos+home-pi-mount-Fotos+pi
May 26 20:19:55 raspi4 mount.davfs: new node: (nil)->0x557c10
May 26 20:19:55 raspi4 mount.davfs: Reading stored cache data
May 26 20:19:55 raspi4 mount.davfs: new node: 0x557c10->0x557b90
May 26 20:19:55 raspi4 mount.davfs: Running pre_send hooks
May 26 20:19:55 raspi4 mount.davfs: Sending request headers:#012OPTIONS /FoJUiRzA/Fotos/ HTTP/1.1#015#012User-Agent: davfs2/1.5.5 neon/0.30.2#015#012Keep-Alive: #15#012Connection: TE, Keep-Alive#015#012TE: trailers#015#012Host: 127.0.0.1:4443#015#012#015
May 26 20:19:55 raspi4 mount.davfs: Sending request-line and headers:
May 26 20:19:55 raspi4 mount.davfs: Doing DNS lookup on 127.0.0.1...
May 26 20:19:55 raspi4 mount.davfs: req: Connecting to 127.0.0.1:4443
May 26 20:19:55 raspi4 mount.davfs: Request sent; retry is 0.
May 26 20:19:55 raspi4 mount.davfs: [status-line] < HTTP/1.1 200 OK#015
May 26 20:19:55 raspi4 mount.davfs: [hdr] Allow: GET, POST, HEAD, OPTIONS, PROPFIND, MOVE, PUT, DELETE, MKCOL, COPY, LOCK, UNLOCK, PROPPATCH#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [allow], Value: [GET, POST, HEAD, OPTIONS, PROPFIND, MOVE, PUT, DELETE, MKCOL, COPY, LOCK, UNLOCK, PROPPATCH]
May 26 20:19:55 raspi4 mount.davfs: [hdr] dav: 1, 2 #15
May 26 20:19:55 raspi4 mount.davfs: Header Name: [dav], Value: [1, 2]
May 26 20:19:55 raspi4 mount.davfs: [hdr] content-length: 0#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [content-length], Value: [0]
May 26 20:19:55 raspi4 mount.davfs: [hdr] Connection: close#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [connection], Value: [close]
May 26 20:19:55 raspi4 mount.davfs: [hdr] #15
May 26 20:19:55 raspi4 mount.davfs: End of headers.
May 26 20:19:55 raspi4 mount.davfs: Running post_headers hooks
May 26 20:19:55 raspi4 mount.davfs: Running post_send hooks
May 26 20:19:55 raspi4 mount.davfs: sess: Closing connection.
May 26 20:19:55 raspi4 mount.davfs: sess: Connection closed.
May 26 20:19:55 raspi4 mount.davfs: Request ends, status 200 class 2xx, error line:#012200 OK
May 26 20:19:55 raspi4 mount.davfs: Running destroy hooks.
May 26 20:19:55 raspi4 mount.davfs: Request ends.
May 26 20:19:55 raspi4 mount.davfs: Running pre_send hooks
May 26 20:19:55 raspi4 mount.davfs: Sending request headers:#012PROPFIND /FoJUiRzA/Fotos/ HTTP/1.1#015#012User-Agent: davfs2/1.5.5 neon/0.30.2#015#012Connection: TE#015#012TE: trailers#015#012Host: 127.0.0.1:4443#015#012Depth: 1#015#012Content-Length: 257#015#012Content-Type: application/xml#015#012#015
May 26 20:19:55 raspi4 mount.davfs: Sending request-line and headers:
May 26 20:19:55 raspi4 mount.davfs: req: Connecting to 127.0.0.1:4443
May 26 20:19:55 raspi4 mount.davfs: Sending request body:
May 26 20:19:55 raspi4 mount.davfs: Request sent; retry is 0.
May 26 20:19:55 raspi4 mount.davfs: [status-line] < HTTP/1.1 207 Multi-Status#015
May 26 20:19:55 raspi4 mount.davfs: [hdr] content-length: 7880#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [content-length], Value: [7880]
May 26 20:19:55 raspi4 mount.davfs: [hdr] content-type: application/xml; charset=utf-8#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [content-type], Value: [application/xml; charset=utf-8]
May 26 20:19:55 raspi4 mount.davfs: [hdr] server: MEGAsdk#015
May 26 20:19:55 raspi4 mount.davfs: Header Name: [server], Value: [MEGAsdk]
May 26 20:19:55 raspi4 mount.davfs: [hdr] #15
May 26 20:19:55 raspi4 mount.davfs: End of headers.
May 26 20:19:55 raspi4 mount.davfs: Running post_headers hooks
May 26 20:19:55 raspi4 mount.davfs: Reading 7880 bytes of response body.
May 26 20:19:55 raspi4 mount.davfs: Got 3982 bytes.
May 26 20:19:55 raspi4 mount.davfs: sess: Closing connection.
May 26 20:19:55 raspi4 mount.davfs: sess: Connection closed.
May 26 20:19:55 raspi4 mount.davfs: Request ends, status 207 class 2xx, error line:#012207 Multi-Status
May 26 20:19:55 raspi4 mount.davfs: Running destroy hooks.
May 26 20:19:55 raspi4 mount.davfs: Request ends.

Has anyone got an idea what could cause the error?
Thank you

@tobiasfiechter
Copy link
Author

May be a duplicate of meganz/sdk#2693

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant