Storage is read-only after reloading a custom plugin

When upgrading Vault 1.14.2 with custom plugins, the following issue occurs:

  1. Vault starts running with a new plugin version.
  2. Plugin mounting fails due to binary with new, not registered plugin version.
  3. The new plugin version is registered and the plugin is reloaded.
  4. An attempt to update some data in the plugin fails with the error “cannot write to storage during setup”.

I guess that the issue occurs because the storage becomes readonly after plugin mounting fails. But even after the plugin is reloaded, the storage remains readonly.

We don’t have this issue with Vault 1.11.6
Thanks in advance