Error: HmacBlocStream - Could not read enough from inner stream to decrypt block

If Strongbox is terminated or stops during a sync, it can leave the database partially transferred, with 0 bytes or less than its full size, making it corrupt and unusable, resulting in an "HmacBlocStream" error. To avoid this, ensure the sync completes; don't quit the app mid-sync.

While some storage providers handle premature termination gracefully and restore the previous good copy, others like SFTP servers may leave a partial, unreadable file. In such cases, retrieve a good database copy from Strongbox's local backups or elsewhere and manually copy it to the correct storage location to restore normal functionality.

Jan 5, 2024