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

Vault version 999 shown when underlying SMB mount goes away #294

Closed
2 tasks done
ericswpark opened this issue Jan 13, 2023 · 3 comments
Closed
2 tasks done

Vault version 999 shown when underlying SMB mount goes away #294

ericswpark opened this issue Jan 13, 2023 · 3 comments
Labels
type:duplicate This issue or pull request already exists

Comments

@ericswpark
Copy link

Please agree to the following

Summary

Unlocking a Cryptomator vault when the underlying SMB connection has been interrupted previously results in a "vault version 999" error

System Setup

  • iOS: iOS 16.2 (20C65)
  • Cryptomator: 2.4.3 (1038)

Cloud Type

Other File Provider

Steps to Reproduce

  1. Add a vault that resides on an SMB share
  2. Lock the vault
  3. Quit the Cryptomator app completely
  4. Unmount the SMB share
  5. (Optional) remount the SMB share. (The bug happens regardless.)
  6. Attempt to unlock the vault

Expected Behavior

The vault unlocks

Actual Behavior

The following error is shown:

"Vault version 999 is unsupported. This vault has been created with an older or newer version of Cryptomator."

C688D2D5-9777-46A6-A6F1-A250831CED45

Reproducibility

Always

Relevant Log Output

2023/01/13 11:46:12:997  Unlocking vault "test" (UUIDHERE) failed with error: unsupportedVaultVersion(version: 999)
2023/01/13 11:46:50:536  enumerateItems getAdapter failed with: defaultLock for identifier: NSFileProviderItemIdentifier(_rawValue: NSFileProviderRootContainerItemIdentifier)
2023/01/13 11:47:11:356  enumerateItems getAdapter failed with: defaultLock for identifier: NSFileProviderItemIdentifier(_rawValue: NSFileProviderRootContainerItemIdentifier)
2023/01/13 11:47:18:685  Unlocking vault "test" (UUIDHERE) failed with error: unsupportedVaultVersion(version: 999)
2023/01/13 11:49:43:467  enumerateItems getAdapter failed with: defaultLock for identifier: NSFileProviderItemIdentifier(_rawValue: NSFileProviderRootContainerItemIdentifier)
2023/01/13 11:49:52:706  enumerateItems getAdapter failed with: defaultLock for identifier: NSFileProviderItemIdentifier(_rawValue: NSFileProviderRootContainerItemIdentifier

Anything else?

Bug may occur with this message on previous iOS/Cryptomator versions:

"No valid file provider found with identifier 'com.apple.SMBClient-Provider.FileProvider'"

ADC095CC-D6A9-43D3-AADB-CE53807D76E9

See issue #262

@ericswpark ericswpark added the type:bug Something isn't working label Jan 13, 2023
@tobihagemann
Copy link
Member

I believe that "unmounting the SMB share" will break it irreversibly. Cryptomator uses "bookmarks" when accessing another file provider and if it's gone, it's gone. Even if you remount the SMB share, it probably won't have the same location and even if, the old bookmark becomes invalid.

I guess the error handling could be better but I don't think that there is an automated way to "recover" the vault. The only workaround is to re-add the vault.

@ericswpark
Copy link
Author

Ah, I see. That's a problem because iOS/iPadOS will automatically unmount the SMB share whenever network conditions change. Until there's a workaround with SMB support I'll just remember to re-add the vault. Thanks!

@tobihagemann tobihagemann added type:duplicate This issue or pull request already exists and removed type:bug Something isn't working labels Jan 25, 2023
@tobihagemann
Copy link
Member

I'm marking this as duplicate of #262, even though the error message is somewhat different but the cause is the same. It's a good way to "reproduce" it though!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type:duplicate This issue or pull request already exists
Projects
None yet
Development

No branches or pull requests

2 participants