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

Graceful unmount failed when sending SIGTERM signal (fusermount3 permission denied) #85

Open
2 tasks done
Silverlan opened this issue Feb 7, 2025 · 0 comments
Open
2 tasks done

Comments

@Silverlan
Copy link

Please agree to the following

Summary

When trying to unmount a mounted vault, a permission denied error is shown.

What software is involved?

  • Operating System: Ubuntu 24.04.1 LTS
  • Cryptomator CLI: 0.6.1

Volume Type

FUSE

Steps to Reproduce

  1. Mount the cryptomator vault:
./cryptomator-cli unlock --password:stdin --mounter=org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider --mountPoint=/test/cryptomator /test/cryptmator/cryptomator_vault
  1. Unmount the cryptomator vault by pressing ctrl +c

I'm connected via a SSH client, but I don't think that matters. I'm logged in as root. It doesn't matter if I run the command with sudo or not, the error appears regardless.

Expected Behavior

I expected the vault to be unmounted gracefully.

Actual Behavior

The error message appears.
The target location still appears to be unmounted properly, however. At the very least the target location no longer contains any files.

Reproducibility

Always

Relevant Log Output

root@******:/test/cryptomator-cli/bin# ./cryptomator-cli unlock --password:stdin --mounter=org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider --mountPoint=/test/cryptomator /test/cryptomator_vault
Enter value for --password:stdin (Passphrase, read from STDIN):


[main] INFO  o.c.cli.Unlock - Unlocked and mounted vault successfully to file:///test/cryptomator/
^C[Thread-2] ERROR o.c.cli.Unlock - GRACEFUL UNMOUNT FAILED. Please check if manual cleanups are necessary
org.cryptomator.integrations.mount.UnmountFailedException: java.io.IOException: Cannot run program "fusermount3" (in directory "/test"): error=13, Permission denied
        at org.cryptomator.frontend.fuse@5.0.2/org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider$LinuxFuseMountBuilder$LinuxFuseMountedVolume.unmount(LinuxFuseMountProvider.java:153)
        at org.cryptomator.frontend.fuse@5.0.2/org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider$LinuxFuseMountBuilder$LinuxFuseMountedVolume.close(LinuxFuseMountProvider.java:167)
        at org.cryptomator.cli@0.6.1/org.cryptomator.cli.Unlock.teardown(Unlock.java:97)
        at org.cryptomator.cli@0.6.1/org.cryptomator.cli.Unlock.lambda$call$0(Unlock.java:88)
        at java.base/java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: Cannot run program "fusermount3" (in directory "/test"): error=13, Permission denied
        at java.base/java.lang.ProcessBuilder.start(Unknown Source)
        at java.base/java.lang.ProcessBuilder.start(Unknown Source)
        at org.cryptomator.frontend.fuse@5.0.2/org.cryptomator.frontend.fuse.mount.LinuxFuseMountProvider$LinuxFuseMountBuilder$LinuxFuseMountedVolume.unmount(LinuxFuseMountProvider.java:145)
        ... 4 common frames omitted
Caused by: java.io.IOException: error=13, Permission denied
        at java.base/java.lang.ProcessImpl.forkAndExec(Native Method)
        at java.base/java.lang.ProcessImpl.<init>(Unknown Source)
        at java.base/java.lang.ProcessImpl.start(Unknown Source)
        ... 7 common frames omitted

Anything else?

I tried to do manual cleanup as described in https://github.com/cryptomator/cli?tab=readme-ov-file#manual-cleanup :
fusermount -u /test/cryptomator

But this just says:

fusermount: failed to unmount /test/cryptomator: Invalid argument
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