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

Error while creating vault #3

Open
geimist opened this issue Feb 13, 2024 · 2 comments
Open

Error while creating vault #3

geimist opened this issue Feb 13, 2024 · 2 comments

Comments

@geimist
Copy link

geimist commented Feb 13, 2024

I get the following error message on startup:
Exception in thread "main" java.nio.file.NoSuchFileException: /cryptomatorDir/vault.cryptomator

Does the vault already have to exist? I would like to have it created if it does not already exist with the specified parameters.
Or is the error somewhere else?

Thank you

Full log with demo data
21:12:26.579 [main] INFO  o.c.frontend.webdav.WebDavServer - Binding server socket to 0.0.0.0:8181
21:12:26.626 [main] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@35fc6dc4{HTTP/1.1, (http/1.1)}{0.0.0.0:8181}
21:12:26.632 [main] INFO  org.eclipse.jetty.server.Server - jetty-10.0.6; built: 2021-06-29T15:28:56.259Z; git: 37e7731b4b142a882d73974ff3bec78d621bd674; jvm 20+36-2344
21:12:26.717 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@7f416310{/,null,AVAILABLE}
21:12:26.744 [main] INFO  org.eclipse.jetty.server.Server - Started Server@1d082e88{STARTING}[10.0.6,sto=0] @901ms
21:12:26.744 [main] INFO  o.c.frontend.webdav.WebDavServer - WebDavServer started.
21:12:26.744 [main] INFO  org.cryptomator.cli.frontend.WebDav - WebDAV server started: 0.0.0.0:8181
21:12:26.770 [main] INFO  org.cryptomator.cli.CryptomatorCli - Unlocking vault "demoVault" located at /cryptomatorDir
21:12:26.771 [main] INFO  o.c.c.p.PasswordFromPropertyStrategy - Vault 'demoVault' password from property.
Exception in thread "main" java.nio.file.NoSuchFileException: /cryptomatorDir/vault.cryptomator
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:431)
        at java.base/java.nio.file.Files.readAllBytes(Files.java:3263)
        at java.base/java.nio.file.Files.readString(Files.java:3341)
        at org.cryptomator.cryptofs.CryptoFileSystems.readVaultConfigFile(CryptoFileSystems.java:113)
        at org.cryptomator.cryptofs.CryptoFileSystems.create(CryptoFileSystems.java:49)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:194)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:86)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:339)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:288)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:126)
        at org.cryptomator.cli.CryptomatorCli.startup(CryptomatorCli.java:101)
        at org.cryptomator.cli.CryptomatorCli.main(CryptomatorCli.java:43)
@vh13294
Copy link
Owner

vh13294 commented Feb 26, 2024

cryptomator/cli#31

This is the issue from the main cryptomator cli repo.

@ArnaudSoda
Copy link

I get the following error message on startup: Exception in thread "main" java.nio.file.NoSuchFileException: /cryptomatorDir/vault.cryptomator

Does the vault already have to exist? I would like to have it created if it does not already exist with the specified parameters. Or is the error somewhere else?

Thank you
Full log with demo data

21:12:26.579 [main] INFO  o.c.frontend.webdav.WebDavServer - Binding server socket to 0.0.0.0:8181
21:12:26.626 [main] INFO  o.e.jetty.server.AbstractConnector - Started ServerConnector@35fc6dc4{HTTP/1.1, (http/1.1)}{0.0.0.0:8181}
21:12:26.632 [main] INFO  org.eclipse.jetty.server.Server - jetty-10.0.6; built: 2021-06-29T15:28:56.259Z; git: 37e7731b4b142a882d73974ff3bec78d621bd674; jvm 20+36-2344
21:12:26.717 [main] INFO  o.e.j.server.handler.ContextHandler - Started o.e.j.s.ServletContextHandler@7f416310{/,null,AVAILABLE}
21:12:26.744 [main] INFO  org.eclipse.jetty.server.Server - Started Server@1d082e88{STARTING}[10.0.6,sto=0] @901ms
21:12:26.744 [main] INFO  o.c.frontend.webdav.WebDavServer - WebDavServer started.
21:12:26.744 [main] INFO  org.cryptomator.cli.frontend.WebDav - WebDAV server started: 0.0.0.0:8181
21:12:26.770 [main] INFO  org.cryptomator.cli.CryptomatorCli - Unlocking vault "demoVault" located at /cryptomatorDir
21:12:26.771 [main] INFO  o.c.c.p.PasswordFromPropertyStrategy - Vault 'demoVault' password from property.
Exception in thread "main" java.nio.file.NoSuchFileException: /cryptomatorDir/vault.cryptomator
        at java.base/sun.nio.fs.UnixException.translateToIOException(UnixException.java:92)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:106)
        at java.base/sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:111)
        at java.base/sun.nio.fs.UnixFileSystemProvider.newByteChannel(UnixFileSystemProvider.java:261)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:379)
        at java.base/java.nio.file.Files.newByteChannel(Files.java:431)
        at java.base/java.nio.file.Files.readAllBytes(Files.java:3263)
        at java.base/java.nio.file.Files.readString(Files.java:3341)
        at org.cryptomator.cryptofs.CryptoFileSystems.readVaultConfigFile(CryptoFileSystems.java:113)
        at org.cryptomator.cryptofs.CryptoFileSystems.create(CryptoFileSystems.java:49)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:194)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:86)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:339)
        at java.base/java.nio.file.FileSystems.newFileSystem(FileSystems.java:288)
        at org.cryptomator.cryptofs.CryptoFileSystemProvider.newFileSystem(CryptoFileSystemProvider.java:126)
        at org.cryptomator.cli.CryptomatorCli.startup(CryptomatorCli.java:101)
        at org.cryptomator.cli.CryptomatorCli.main(CryptomatorCli.java:43)

I face the same issue. Not able to solve it

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

3 participants