My PC's OS is Windows 10, where I am hosting a Cryptomator volume on E: . I want to run bash commands on the contents of that mounted volume, thus, I am trying to access its contents with WSL.
It seems like this can't be achieved directly: I am trying to open the container on Windows and to mount the volume directly on WSL, which fails, as it seems to only work with Docany, currently not supported by the latest version of Cryptomator.
I am thus trying to use the Cryptomator CLI (https://github.com/cryptomator/cli) directly on WSL, where I aim to open the container directly. Unfortunately, when trying to mount the volume, I get:
Password: /sbin/mount.davfs: loading kernel module fuse
modprobe: FATAL: Module fuse not found in directory /lib/modules/4.4.0-19041-Microsoft
/sbin/mount.davfs: loading kernel module fuse failed
/sbin/mount.davfs: waiting for /dev/fuse to be created
fuse
is supposed to be compiled into WSL 2 ("modprobe fuse" on WSL?), however, even though I execute the mknod
command, I keep getting the same error.
EDIT: Updating WSL to the latest version on PowerShell solved the above issue:
wsl --set-version Ubuntu-20.04 2
.
Now, on the directory where I have stored cryptomator-cli-0.5.1.jar
, I run the java
command (obfuscating the password here for obvious reasons):
java -jar cryptomator-cli-0.5.1.jar --bind 127.0.0.1 --port 8080 --vault firstVault=/mnt/e/myFolder/ --password firstVault='[###]'
I get the following output:
14:54:23.878 [main] INFO o.c.frontend.webdav.WebDavServer - Binding server socket to 127.0.0.1:8080
14:54:23.940 [main] INFO o.e.jetty.server.AbstractConnector - Started ServerConnector@6a472554{HTTP/1.1, (http/1.1)}{127.0.0.1:8080}
14:54:23.950 [main] INFO org.eclipse.jetty.server.Server - jetty-10.0.6; built: 2021-06-29T15:28:56.259Z; git: 37e7731b4b142a882d73974ff3bec78d621bd674; jvm 17.0.2+8-Ubuntu-120.04
14:54:24.091 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@3d0f8e03{/,null,AVAILABLE}
14:54:24.111 [main] INFO org.eclipse.jetty.server.Server - Started Server@5a955565{STARTING}[10.0.6,sto=0] @1212ms
14:54:24.112 [main] INFO o.c.frontend.webdav.WebDavServer - WebDavServer started.
14:54:24.112 [main] INFO org.cryptomator.cli.frontend.WebDav - WebDAV server started: 127.0.0.1:8080
14:54:24.144 [main] INFO org.cryptomator.cli.CryptomatorCli - Unlocking vault "firstVault" located at /mnt/e/myFolder
14:54:24.145 [main] INFO o.c.c.p.PasswordFromPropertyStrategy - Vault 'firstVault' password from property.
14:54:25.709 [main] INFO o.e.j.s.s.DefaultSessionIdManager - Session workerName=node0
14:54:25.731 [main] INFO o.a.j.w.server.AbstractWebdavServlet - authenticate-header = Basic realm="Jackrabbit Webdav Server"
14:54:25.733 [main] INFO o.a.j.w.server.AbstractWebdavServlet - csrf-protection = null
14:54:25.733 [main] INFO o.a.j.w.server.AbstractWebdavServlet - createAbsoluteURI = true
14:54:25.734 [main] INFO o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@f478a81{/firstVault,null,AVAILABLE}
14:54:25.738 [main] INFO o.c.f.w.s.WebDavServletController - WebDavServlet started: /firstVault
14:54:25.739 [main] INFO org.cryptomator.cli.CryptomatorCli - Press Ctrl+C to terminate.
Back in Windows, I open Google Chrome and try to access http://127.0.0.1:8080/firstVault
, however, I get ERR_CONNECTION_REFUSED
.
Is there something missing in order to access the Cryptomator volume with WSL?
mount -t drvfs E:
with a Cryptomator volume there either, but I would have thought so until now.