Skip to content

Unable to migrate vault from version 1 -> 2 #77

@ruimgoncalves

Description

@ruimgoncalves

Description

After being prompt to upgrade got the following error

System.NotSupportedException: Stream does not support writing.
   at System.IO.Stream.ValidateCopyToArguments(Stream destination, Int32 bufferSize)
   at System.IO.FileStream.CopyToAsync(Stream destination, Int32 bufferSize, CancellationToken cancellationToken)
   at SecureFolderFS.Storage.Extensions.StorageExtensions.CopyContentsToAsync(IFile source, IFile destination, CancellationToken cancellationToken)
   at SecureFolderFS.Storage.Extensions.StorageExtensions.CopyContentsToAsync(IFile source, IFile destination, CancellationToken cancellationToken)
   at SecureFolderFS.Storage.Extensions.StorageExtensions.CopyContentsToAsync(IFile source, IFile destination, CancellationToken cancellationToken)
   at SecureFolderFS.Core.Migration.AppModels.V1_V2.MigratorV1_V2.CreateKeystoreBackup(CancellationToken cancellationToken)
   at SecureFolderFS.Core.Migration.AppModels.V1_V2.MigratorV1_V2.MigrateAsync(IDisposable unlockContract, ProgressModel progress, CancellationToken cancellationToken)
   at SecureFolderFS.Core.Migration.AppModels.V1_V2.MigratorV1_V2.MigrateAsync(IDisposable unlockContract, ProgressModel progress, CancellationToken cancellationToken)
   at SecureFolderFS.Sdk.ViewModels.Views.Overlays.MigrationOverlayViewModel.MigrateAsync(CancellationToken cancellationToken)

To Reproduce

  1. Open App
  2. Select Vault
  3. Enter correct password when prompted
  4. Select Migrate

Evidence

No response

App Version

0.6.0

OS Version

Windows 11

Diagnostic information

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugBug or crash reporttriage approvedThe issue has been reviewed and approved for development

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions