JetStream failed to store a msg on stream '$G > : error opening msg block file [""]: open : no such file or directory #5924
Unanswered
anpatel1996
asked this question in
Q&A
Replies: 2 comments 9 replies
-
NATS shouldn't be deleting folders from the disk unless the streams themselves were deleted or moved off that node (due to a cluster resize/move). Can I ask why you are still on such an old version? |
Beta Was this translation helpful? Give feedback.
1 reply
-
Hi @neilalexander we have upgraded to newest version 2.10.21 and we faced same issue. I am mostly suspecting it because of inactivity on those streams. Can you suggest some configuration or some way to avoid it?? |
Beta Was this translation helpful? Give feedback.
8 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello Team,
We are using NATS-Jetstream 2.9.14 with File Storage. Max size 2.5 GB.
System was running for ~30 days with minimal traffic on NATS.
We had started with around ~50 streams. Meaning we had close to 50 directories in jetstream/$G/streams/. After some days we are encountering JetStream failed to store a msg on stream '$G > : error opening msg block file [""]: open : no such file or directory error and on checking persistent directory(jetstream/$G/streams), I see only 5 stream's directory present. Somehow other directories are deleted. But I can see all the streams on nats stream info.
What could be the reason for deletion of directories?? Does jetstream deletes inactive stream's directories based on some configuration?? How can we find out the reason for being in this situation??
This is the typical example of stream config and consumer config
? Select a Stream stream-1
Information for Stream stream-1 created 2024-08-07 19:07:11
Options:
Limits:
Maximum Per Subject: unlimited
Maximum Bytes: unlimited
Maximum Age: 2m0s
Maximum Message Size: 4.0 MiB
Maximum Consumers: unlimited
State:
this is one of the consumer's configs
$ nats consumer info
? Select a Stream stream-1
? Select a Consumer stream-1-consumer-1
Information for Consumer stream-1 > stream-1-consumer-1 created 2024-08-07T19:07:24+05:30
Configuration:
State:
Last Delivered Message: Consumer sequence: 47 Stream sequence: 47 Last delivery: 43d2h32m37s ago
Acknowledgment Floor: Consumer sequence: 47 Stream sequence: 47 Last Ack: 43d2h32m37s ago
Outstanding Acks: 0 out of maximum 1
Redelivered Messages: 0
Unprocessed Messages: 0
Active Interest: Active
Beta Was this translation helpful? Give feedback.
All reactions