# Meta.json not found and compaction failed

**URL:** <https://discuss.prometheus.io/t/meta-json-not-found-and-compaction-failed/1784>\
**Category:** Prometheus server\
**Created:** [July 31, 2023, 11:01pm UTC](https://discuss.prometheus.io/t/meta-json-not-found-and-compaction-failed/1784 "2023-07-31T23:01:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bigdadda06](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/bigdadda06/32/761_2.png) [@Bigdadda06](https://discuss.prometheus.io/u/Bigdadda06)\
**Post date:** [July 31, 2023, 11:01pm UTC](https://discuss.prometheus.io/t/meta-json-not-found-and-compaction-failed/1784/1 "2023-07-31T23:01:10Z")

</div>

Hi All,  
I’ve had some trouble with my Prometheus install lately.  
It started with a crash because it ran out of open files. I managed to fix that by adding LimitNOFILE=500000 to the service control file.  
But now im getting these messages in the messages log.

```auto
Aug 1 08:42:32 SERVER prometheus[2659]: ts=2023-07-31T22:42:32.174Z caller=db.go:1486 level=error component=tsdb msg="Failed to read meta.json for a block during reloadBlocks. Skipping" dir=/data/prometheus/01H6AMNH259613RCPZ5XAAK0HE err="open /data/prometheus/01H6AMNH259613RCPZ5XAAK0HE/meta.json: no such file or directory"
Aug 1 08:42:32 SERVER prometheus[2659]: ts=2023-07-31T22:42:32.174Z caller=db.go:1486 level=error component=tsdb msg="Failed to read meta.json for a block during reloadBlocks. Skipping" dir=/data/prometheus/01H6ATND7M7GMZMYB4AF92GNNE err="open /data/prometheus/01H6ATND7M7GMZMYB4AF92GNNE/meta.json: no such file or directory"
Aug 1 08:43:32 SERVER prometheus[2659]: ts=2023-07-31T22:43:32.178Z caller=db.go:982 level=error component=tsdb msg="compaction failed" err="plan compaction: open /data/prometheus/01H6AMNH259613RCPZ5XAAK0HE/meta.json: no such file or directory"

```

I was running 2.21 so i upgraded to 2.46 hoping that would help, it hasn’t yet. But it hasn’t been back up for two hours yet, so i seel what happens then.

Does anyone have any suggestions on how to fix this ?

---

<div class="post-metadata">

**Author:** ![Bigdadda06](https://dub1.discourse-cdn.com/flex017/user_avatar/discuss.prometheus.io/bigdadda06/32/761_2.png) [@Bigdadda06](https://discuss.prometheus.io/u/Bigdadda06)\
**Post date:** [August 1, 2023, 3:45am UTC](https://discuss.prometheus.io/t/meta-json-not-found-and-compaction-failed/1784/2 "2023-08-01T03:45:32Z")

</div>

It seems to be only complaining about a missing meta.json file in two folders in the datastore.  
Can i delete those two folders ?
