nats-server
nats-server copied to clipboard
JetStream system temporarily unavailable
nats server is running but get this error (JetStream system temporarily unavailable) when connecting to jetstream
logs from nats server version Version: 2.7.1
[7] 2022/03/15 09:36:52.196224 [INF] JetStream cluster no metadata leader [7] 2022/03/15 09:36:52.200892 [ERR] RAFT [BvB3cxyA - meta] Resource not found: open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:36:52.200912 [WRN] RAFT [BvB3cxyA - meta] Error writing term and vote file for "meta": open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:36:55.610246 [ERR] RAFT [BvB3cxyA - meta] Resource not found: open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:36:55.610270 [WRN] RAFT [BvB3cxyA - meta] Error writing term and vote file for "meta": open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:00.411824 [ERR] RAFT [BvB3cxyA - meta] Resource not found: open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:00.411853 [WRN] RAFT [BvB3cxyA - meta] Error writing term and vote file for "meta": open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:04.657072 [ERR] RAFT [BvB3cxyA - meta] Resource not found: open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:04.657108 [WRN] RAFT [BvB3cxyA - meta] Error writing term and vote file for "meta": open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:08.050258 [ERR] RAFT [BvB3cxyA - meta] Resource not found: open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory [7] 2022/03/15 09:37:08.050282 [WRN] RAFT [BvB3cxyA - meta] Error writing term and vote file for "meta": open /data/jetstream/$SYS/js/meta/tav.idx: no such file or directory
It looks like the storage directory underneath of the server has changed or disappeared.
How was the server deployed?
Also, if you can, please upgrade to 2.7.4 release.
on aws eks storage aws efs
ok, I will try new version
Best you avoid EFS, EBS more suited to jetstream needs.