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

Disk Storage Jet Streams could not be recovered and gets corrupted after system restart [v2.9.16] #5703

Open
BSBalajisys opened this issue Jul 26, 2024 · 3 comments
Labels
defect Suspected defect such as a bug or regression

Comments

@BSBalajisys
Copy link

Observed behavior

Disk Storage Jet Streams could not be recovered and gets corrupted after force system restart

This looks same as my previously reported issue : #4195.

Expected behavior

Streams should be restored properly after force restart.

Server and client version

Version: 2.9.16
Git : [f84ca24]
Client Official NATS C# Client version 1.0.1.0
No Cluster/Replication Single Node

Host environment

Windows Server 2019 64 Bit

Steps to reproduce

  1. Start the NATS Server.
  2. Create a DISK storage based encrypted Stream (If not created already).
  3. Add the message into the stream and make sure the messages are stored and available (not consumed yet).
  4. Force restart the VM Machine/System.
  5. Start the NATS Server.
  6. The NATS Server is not able to restore the stream it says some error like recreating stream "stream_name": cipher: message authentication failed (10077).
  7. Unable to recover or recreate the stream
  8. Only was is to delete the files of that stream folder manually and re create the stream.
@BSBalajisys BSBalajisys added the defect Suspected defect such as a bug or regression label Jul 26, 2024
@BSBalajisys
Copy link
Author

No other changes were made to Server setting/configuration file like key etc.

@neilalexander
Copy link
Member

2.9.16 is a very old version at this point so would highly recommend that you investigate upgrading to the latest version.

When you say that you force a restart of the VM, do you mean a hard power-off?

@BSBalajisys
Copy link
Author

I have considered upgrading to the latest version but given he impact and my current need it may not be possible to do an upgrade.

When you say that you force a restart of the VM, do you mean a hard power-off?

Yes, I am referring to Hard power Off. As well as an additional case where if Windows has crashed and restarted in both the cases this happens.

@wallyqs wallyqs changed the title Disk Storage Jet Streams could not be recovered and gets corrupted after system restart Disk Storage Jet Streams could not be recovered and gets corrupted after system restart [v2.9.16] Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
defect Suspected defect such as a bug or regression
Projects
None yet
Development

No branches or pull requests

2 participants