Skip to content

Unable to access Cryptomator-Container from Windows10/WSL  #1033

Description

@ifrh

Description

[Summarize your problem.]
I am unable to access cryptomator container from Windows 10/WSL.

System Setup

  • Operating system and version:
    Windows 10 (64bit)
    WSL with
    Distributor ID: Ubuntu
    Description: Ubuntu 18.04.3 LTS
    Release: 18.04
    Codename: bionic

  • Cryptomator version:
    Windows Version of Cryptomator: 1.4.11
    inside Windows10/WSL: cryptomator-1.4.15-x86_64.AppImage

Steps to Reproduce

  1. Create a Cryptomator-Container in Windows (file based).
  2. Open Cryptomator-Container inside Windows, i.e. drive letter z:
  3. try to access drive z: from WSL. It is not possible.

alternative

  1. Create a Cryptomator-Container in Windows (file based).
  2. try to install or run Cryptomator inside WSL for opening cryptomator-container there: It is not possible.

Expected Behavior

Have access to files inside the cryptomator container via Windows10/WSL

Actual Behavior

No access is possible:

Reproducibility

always

Additional Information

Message from ./cryptomator-1.4.15-x86_64.AppImage
inside Windows10/WSL

fuse: device not found, try 'modprobe fuse' first

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage
if you run it with the --appimage-extract option.
See https://github.com/AppImage/AppImageKit/wiki/FUSE
for more information
open dir error: No such file or directory

Activity

  1. overheadhunter commented on Dec 28, 2019

    @overheadhunter
    Member

    As long as FUSE can't be used under WSL, it won't be possible to run an AppImage (or mount a Vault using FUSE).

    It doesn't seem like FUSE is on the roadmap for WSL, though: microsoft/WSL#1962 (comment)

  2. added
    state:has-workaround
    and removed on Dec 28, 2019
  3. overheadhunter commented on Dec 28, 2019

    @overheadhunter
    Member

    Workaround: Use Cryptomator for Windows, if you use Windows. 😉

  4. ifrh commented on Dec 28, 2019

    @ifrh
    Author

    @overheadhunter : could please explain your workaround?

    My try didn't work.

    1. open cryptomator container inside Windows => generate Driveletter z:
    2. open WSL/ubuntu
      try to mount Driveletter Z inside WSL like any other windows Driveletter explained here:
      https://blogs.msdn.microsoft.com/wsl/2017/04/18/file-system-improvements-to-the-windows-subsystem-for-linux/
      using
    sudo mount -t drvfs Z: /mnt/z
    [sudo] password for ich:
    mount: /mnt/z: wrong fs type, bad option, bad superblock on Z:, missing codepage or helper program, or other error.
    <3>init: (40) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0x2000
    No error information
    

    Should I use an other mount command to mount the windows cryptomator drive z?
    Cryptomator_WSL_notmountable

  5. ifrh commented on Dec 28, 2019

    @ifrh
    Author

    Oh yes, there a two workarounds:

    • use Windows tools if you want to use Windows.

    • use a real Linux if you want to use Linux tools.

    :-)

  6. overheadhunter commented on Dec 28, 2019

    @overheadhunter
    Member
    mount: /mnt/z: wrong fs type, bad option, bad superblock on Z:, missing codepage or helper program, or other error.
    <3>init: (40) ERROR: UtilCreateProcessAndWait:360: /bin/mount failed with status 0x2000
    No error information
    

    Well that seems to me like yet another WSL problem, if you can only mount certain file system types. Anyhow, to me this seems to be the more reasonable approach than to launch a GUI tool from within WSL (didn't know this was even possible).

    Seems like WSL doesn't access files systems through the Windows kernel but rather uses its own drivers included in the Linux kernel. At least I suspect this, otherwise it wouldn't distinguish between Dokany and plain old NTFS file systems. In that case, neither Dokany not FUSE are working.

    I guess, in that case you need different workarounds. Maybe you can run duck.sh from within the Linux shell?

  7. overheadhunter commented on Dec 28, 2019

    @overheadhunter
    Member

    Seems like only a few NTFS variations are currently supported. See also microsoft/WSL#2999 or microsoft/WSL#2896. In the latter issue they mention a workaround using SMB shares.

  8. infeo commented on Jan 13, 2020

    @infeo
    Member

    Another workaround may be to switch from Dokany/FUSE to WebDAV as the vault provider/mount method. If you can access windows localhost servers from WSL this should work.

  9. stale commented on Jul 12, 2020

    @stale

    This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

  10. added
    state:stale
    on Jul 12, 2020
  11. mrnerdhair commented on Oct 8, 2020

    @mrnerdhair
    Contributor

    This appears to be caused by dokan-dev/dokany#932, and should be fixed by dokan-dev/dokany#933.

  12. reopened this on Oct 9, 2020
  13. removed
    state:stale
    on Oct 9, 2020
  14. mrnerdhair commented on Oct 11, 2020

    @mrnerdhair
    Contributor

    Further testing seems to reveal that between v1.5.6 and v1.5.7 a regression occurred: on v1.5.6 volumes mount fine and work once you fix the above Dokan issue; however v1.5.7 will not mount the same volume:

    wsl

    This appears to be caused because the v1.5.6 installer shipped with a different version dokan1.dll than the newer versions. Oddly enough, copying the old version of dokan1.dll (1.3.0.1000) over the new version (1.4.0.1000) seems to make it work fine, even up to the lastest version v1.5.8.

    I've verified that this does not occur on at least two other Dokan filesystems which use the 1.4.0.1000 version of the library, so this makes me think that something inside cryptomator/dokany-nio-adapter is going wrong somewhere.

  15. mrnerdhair commented on Oct 11, 2020

    @mrnerdhair
    Contributor

    Here are two event traces of the WSL Plan 9 server being asked to mount a Cryptomator filesystem. Both traces use v1.5.8, but the "old" trace is using the version of dokan1.dll shipped with v1.5.6 and earlier. The old succeeds, and the new fails.

    p9trace-cryptomator.zip

    Screenshots for those who hate the Windows Performance Analyzer (like me):

    Old:
    p9trace-cryptomator-old

    New:
    p9trace-cryptomator-new

    Note the Rlerror reply; 75 is EOVERFLOW. This is Plan 9's translation of STATUS_BUFFER_OVERFLOW.

  16. mrnerdhair commented on Oct 11, 2020

    @mrnerdhair
    Contributor

    AFACT, this is caused because Plan 9 allocates 34 bytes for the utf-16 filesystem name, so the name can only be 17 characters long. (There's no null terminator.) The Dokan lib was updated in 1.4.0.1000 to return the proper STATUS_BUFFER_OVERFLOW code when there's not enough space to return the full filesystem name.

    The underlying issue is that Cryptomator is trying to return "Cryptomator File System", which is too long. "CryptomatorFS" would work though. Should be fixed in #1371.

  17. added this to the milestone on Nov 6, 2020
  18. modified the milestones: , 1.5.9 on Nov 11, 2020
  19. tobihagemann commented on Nov 11, 2020

    @tobihagemann
    Member

    Fixed in #1371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    state:has-workaround

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions