Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign up"The storage is now inconsistent. Restart Prometheus ASAP to initiate recovery." When restarting #2509
Comments
This comment has been minimized.
This comment has been minimized.
|
This looks like a problem in one of the LevelDB indices. If you restart the server again and go to crash recovery again, those problems might get fixed. But there are definitely corruptions in leveldb possible that cannot be fixed in that way. Once #2210 is fixed, you might have even better chances. There are also tools out there in the internet to repair a leveldb (in cold state). It might also be more feasible in this case to purge you whole data directory and start from a blank storage. |
This comment has been minimized.
This comment has been minimized.
jkemp101
commented
Apr 26, 2017
|
We just experienced the same scenario. Running V1.5.0 on Kubernetes/AWS with the database on a EBS volume. We had received some high CPU alerts caused by Prometheus a little earlier in the day so not sure if Prometheus was already having issues with the database. During shutdown received the same set of messages and then when restarted it logged the following messages during crash recovery:
I was under a time constraint so couldn't wait for recovery to finish to see if it was going to be repaired. Restarted Prometheus with a fresh database. |
This comment has been minimized.
This comment has been minimized.
|
Please upgrade to 1.5.2 or 1.6.1 ASAP. That's a known bug in 1.5.0. |
brian-brazil
added
the
kind/question
label
Jul 14, 2017
brian-brazil
closed this
Jul 14, 2017
adamdougal
referenced this issue
Aug 7, 2017
Closed
The storage is now inconsistent. Restart Prometheus ASAP to initiate recovery #3029
This comment has been minimized.
This comment has been minimized.
lock
bot
commented
Mar 23, 2019
|
This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs. |
nicklan commentedMar 17, 2017
What did you do?
Shut down prometheus
What did you expect to see?
Clean shutdown and restart
What did you see instead? Under which circumstances?
Saw the following message:
time="2017-03-17T18:29:58Z" level=error msg="The storage is now inconsistent. Restart Prometheus ASAP to initiate recovery." error="error in method hasArchivedMetric(a64b08e58585b0fd): leveldb: closed" source="persistence.go:399"Environment
System information:
Linux 4.3.3-coreos x86_64
AWS m4.10xlarge
Prometheus version: