We are running a substrate node in testing/development and the server ran out of disk space. We cleared up space by deleting the log files and now the node wont start.

Service(Client(RuntimeApiError(Application(UnknownBlock("State already discarded for 0x6d8fc6...

possible wrote a corrupt block..

is there any resources on this sort of error?

how would you delete that possibly corrupt block?

1 Answer 1


You can not delete individual blocks from the database that easily. When you have run out of disk space with the node running, it means that you have corrupted the database. The only solution for this is to delete the entire database. We recently added the storage-monitor which needs to be added to your service instantiation and then brings down the node if the server runs out of disc space.

  • thank you. So when you say added to your service instantiation. is there docs on this? Mar 12, 2023 at 17:20
  • 1
    No docs yet. Best is source is the code currently: github.com/paritytech/substrate/blob/…
    – bkchr
    Mar 13, 2023 at 11:28
  • Cool. thanks. I see that it is part of the cli of substrate but i dont see how to add that to our substrate based node. Mar 13, 2023 at 19:03
  • 1
    You need to add the crate and then initialize it as shown above.
    – bkchr
    Mar 13, 2023 at 21:33

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.