Comments (8)
Yes, dav works with Cryptomator.
from webdav-nio-adapter.
Thanks for reporting! This command fails:
sh -c gvfs-mount "webdav://localhost:42427/teGOsrDbSc59/vault"
Could you try invoking it manually (with alternate schemes like http:
or dav:
) after attempting to unlock the vault?
from webdav-nio-adapter.
I have tried several things:
dav, sh + gvfs-mount fails silently, does not appear mounted in nautilus
, but is accessible by manually putting the uri into the bar. The location is even after unmounting available (maybe nautilus mounts it again).
# mount
$ sh -c gvfs-mount "dav://localhost:42427/teGOsrDbSc59/vault"
$ echo $?
0
# unmount
$ sh -c gvfs-mount -u "dav://localhost:42427/teGOsrDbSc59/vault"
$ echo $?
0
dav, success (behaves as expected and appears and disappears in the file explorer)
# mount
$ gvfs-mount "dav://localhost:42427/teGOsrDbSc59/vault"
$ echo $?
0
# unmount
$ gvfs-mount -u "dav://localhost:42427/teGOsrDbSc59/vault"
$ echo $?
0
http, fails
# mount
$ gvfs-mount "http://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Einhängen des Ortes: Ort ist bereits eingehängt
$ echo $?
2
# unmount
$ gvfs-mount -u "http://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Suchen nach dem einschließenden Einhängepunkt: Es wurde kein gültiger Speicherort gefunden
$ echo $?
2
webdav, fails
# mount
$ gvfs-mount "webdav://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Einhängen des Ortes: Ort kann nicht eingehängt werden
$ echo $?
2
# unmount
$ gvfs-mount -u "webdav://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Suchen nach dem einschließenden Einhängepunkt: Der angegebene Ort wird nicht unterstützt
$ echo $?
2
davs, fails, triggers an ubuntu error report
# mount
$ gvfs-mount "davs://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Einhängen des Ortes: Message recipient disconnected from message bus without replying
$ echo $?
2
# unmount
gvfs-mount -u "davs://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Suchen nach dem einschließenden Einhängepunkt: Der angegebene Ort ist nicht eingehängt
$ echo $?
2
https, fails
$ gvfs-mount "https://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Einhängen des Ortes: Ort ist bereits eingehängt
$ echo $?
2
$ gvfs-mount -u "https://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Suchen nach dem einschließenden Einhängepunkt: Es wurde kein gültiger Speicherort gefunden
$ echo $?
2
webdavs, fails
$ gvfs-mount "webdavs://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Einhängen des Ortes: Ort kann nicht eingehängt werden
$ echo $?
2
$ gvfs-mount -u "webdavs://localhost:42427/teGOsrDbSc59/vault"
Fehler beim Suchen nach dem einschließenden Einhängepunkt: Der angegebene Ort wird nicht unterstützt
$ echo $?
2
from webdav-nio-adapter.
davs, https, webdavs is not yet supported, see issue #5. problem is that we can only get self-signed certs for localhost, as no trustworthy CA will issue a certificate for localhost.
As dav works, you should change your settings from webdav
to dav
. We haven't found any clue, what schema gvfs wants us to use in the URIs, thats why we added an option to configure it manually. If you know of any command to find out what URI schemes are recognized, we could remove this setting and determine it automatically.
Can you confirm, that dav
also works inside Cryptomator? Then I would close this issue.
from webdav-nio-adapter.
I'll close this in favour of #8.
from webdav-nio-adapter.
Hello, I'm having a similar issue on an up-to-date arch linux installation and Cryptomator 1.3.2
In principle everything works, however the automatic mounting fails and I have to mount the WebDAV file system manually with something like sudo mount -t davfs http://localhost... /some/place
which is quite annoying.
I checked (and ran relevant parts of) the code and it should recognize my system as eligible for the LinuxGvfsMounter
. (gvfs-mount and xdg-open are provided, os.name is linux and the subprocess finishes in time). However, when I run the above command manually in a terminal, I am told
This tool has been deprecated, use 'gio mount' instead.
See 'gio help mount' for more info.
Is the code using a deprecated tool to mount? Any way I can fix this, or automate the mounting at least?
Here is the relevant output from the log file.
15:38:26.410 [pool-3-thread-1] INFO o.c.f.w.s.WebDavServletController - WebDavServlet started: /YH-Jik05SZqe/Cryptomator_vault
15:38:26.510 [pool-3-thread-1] INFO o.c.f.w.s.WebDavServletController - Mounting http://localhost:42427/YH-Jik05SZqe/Cryptomator_vault using org.cryptomator.frontend.webdav.mount.FallbackMounter
15:38:26.510 [pool-3-thread-1] WARN o.c.f.webdav.mount.FallbackMounter - No applicable strategy has been found for your system. Please use a WebDAV client of your choice to mount: http://localhost:42427/YH-Jik05SZqe/Cryptomator_vault
15:38:26.559 [JavaFX Application Thread] ERROR o.c.u.controllers.UnlockedController - Mount failed.
org.cryptomator.frontend.webdav.mount.Mounter$CommandFailedException: No mounting strategy found.
at org.cryptomator.frontend.webdav.mount.FallbackMounter.mount(FallbackMounter.java:15)
at org.cryptomator.frontend.webdav.servlet.WebDavServletController.mount(WebDavServletController.java:102)
at org.cryptomator.ui.model.Vault.mount(Vault.java:140)
at org.cryptomator.ui.controllers.UnlockedController.lambda$mountVault$1(UnlockedController.java:164)
at org.cryptomator.ui.util.AsyncTaskService.lambda$asyncTaskOf$0(AsyncTaskService.java:43)
at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$null$6(AsyncTaskService.java:106)
at org.cryptomator.ui.util.AsyncTaskService.logExceptions(AsyncTaskService.java:135)
at org.cryptomator.ui.util.AsyncTaskService.access$100(AsyncTaskService.java:24)
at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$run$7(AsyncTaskService.java:104)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
P.S: Thanks for building this amazing product!
from webdav-nio-adapter.
Is the code using a deprecated tool to mount?
It is possible that some distributions prefer gio
over gvfs-mount
. It is very hard to find a common standard that works for all linux distributions.
As we're currently working on FUSE instead of WebDAV, mounting WebDAV should no longer be necessary on Linux from Cryptomator 1.4.0 onwards. That said, webdav-nio-adapter
can still be improved by implementing a new (preferred) mounting strategy that checks for gio
.
from webdav-nio-adapter.
Hello,
I'm not sure whether this is the right place to post, but the issue seems similar. So here what I did:
I installed the ppa. As it didn't work I googled and found that I shoud install the oracle java9 from webupd8, which I did. Afterwards it starts fine (only the symbol in the dock is missing). However, I cannot create a vault. It fails stating "Verbinden des Laufwerks fehlgeschlagen" (failed to mount drive).
The shell displays this:
11:39:48.719 [pool-3-thread-3] INFO org.cryptomator.frontend.webdav.servlet.WebDavServletController - WebDavServlet started: /7nsR4GnRQHBm/bla
11:39:58.806 [pool-3-thread-3] INFO org.cryptomator.frontend.webdav.servlet.WebDavServletController - Mounting http://localhost:42427/7nsR4GnRQHBm/bla using org.cryptomator.frontend.webdav.mount.LinuxGvfsMounter
11:39:58.822 [JavaFX Application Thread] ERROR org.cryptomator.ui.controllers.UnlockedController - Mount failed.
org.cryptomator.frontend.webdav.mount.Mounter$CommandFailedException: Command failed with exit code 2. Expected 0. Stderr: This tool has been deprecated, use 'gio mount' instead.
See 'gio help mount' for more info.
gio: dav://localhost:42427/7nsR4GnRQHBm/bla: Datenträger unterstützt Einhängen nicht
at org.cryptomator.frontend.webdav.mount.ProcessUtil.assertExitValue(ProcessUtil.java:28)
at org.cryptomator.frontend.webdav.mount.LinuxGvfsMounter.mount(LinuxGvfsMounter.java:39)
at org.cryptomator.frontend.webdav.servlet.WebDavServletController.mount(WebDavServletController.java:102)
at org.cryptomator.ui.model.Vault.mount(Vault.java:140)
at org.cryptomator.ui.controllers.UnlockedController.lambda$mountVault$1(UnlockedController.java:164)
at org.cryptomator.ui.util.AsyncTaskService.lambda$asyncTaskOf$0(AsyncTaskService.java:43)
at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$null$6(AsyncTaskService.java:106)
at org.cryptomator.ui.util.AsyncTaskService.logExceptions(AsyncTaskService.java:135)
at org.cryptomator.ui.util.AsyncTaskService.access$100(AsyncTaskService.java:24)
at org.cryptomator.ui.util.AsyncTaskService$AsyncTaskImpl.lambda$run$7(AsyncTaskService.java:104)
at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1167)
at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:641)
at java.base/java.lang.Thread.run(Thread.java:844)
Due to the things discussed here, I installed gvfs2 via apt get (gvfs is not in the repos).
However, if I run
sh -c gvfs-mount "webdav://localhost:42427/teGOsrDbSc59/vault"
I only get a notification
This tool has been deprecated, use 'gio mount' instead. See 'gio help mount' for more info.
Is there any way I can get the tool running? This would be awesome. So thanks in advance for your great tool!
PS: I am running Ubuntu 17.10
from webdav-nio-adapter.
Related Issues (20)
- Reusing MountParamsBuilder leads to faulty MountParams Instance
- URI-Normalization causes incomplete RessourcePath
- Support OneDrives File on Demand feature
- Dont use jetty classes in servlet
- Mounting on Debian 7 fails due to incomplete URL
- fusedav can write files to cryptomator on Ubuntu Linux 17.10, but gets back nulls when reading them HOT 4
- Upgrade Guava, fix CVE-2018-10237
- TO DELETE
- Can not rebind socket HOT 1
- Upgrade jetty-server to fix CVE-2019-10247, CVE-2019-10246, CVE-2019-10241
- no generated WebDavServerComponent HOT 2
- Delegate revealing a drive to the API consumer
- Mounting on linux systems with KDE HOT 3
- Files containing "%" cannot be opened HOT 2
- File listing is empty/fails if I/O-operation of a single file fails HOT 1
- Error when mounting with LinuxGioMounter: `Message is already in session queue` HOT 1
- Error mounting with WindowsMounter: System error 67 has occurred. HOT 2
- Error mounting with WindowsMounter and fixed Driveletter: Systemerror 67
- Unmounting WindowsMounter.MountImpl does not remove network share if loopbackHostname set
- Update to jetty-server and jetty-servlet 11.0.15 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from webdav-nio-adapter.