# DVC corruption after restart

**URL:** <https://discuss.dvc.org/t/dvc-corruption-after-restart/1879>\
**Category:** Questions\
**Created:** [December 12, 2023, 7:47am UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879 "2023-12-12T07:47:03Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![nikos](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@nikos](https://discuss.dvc.org/u/nikos)\
**Post date:** [December 12, 2023, 7:47am UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/1 "2023-12-12T07:47:03Z")

</div>

I had an unexpected system restart while running some experiments and since then the `dvc queue`  
and `dvc exp show` commands are frozen. Is there any way to restore them (preferably without having to reinitialize dvc)? I tried removing everything from the queue but I can’t even do that.

---

<div class="post-metadata">

**Author:** ![dberenbaum](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dberenbaum](https://discuss.dvc.org/u/dberenbaum)\
**Post date:** [December 12, 2023, 12:40pm UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/2 "2023-12-12T12:40:12Z")

</div>

Do you get any output when running dvc exp or queue commands in verbose mode?

---

<div class="post-metadata">

**Author:** ![nikos](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@nikos](https://discuss.dvc.org/u/nikos)\
**Post date:** [December 12, 2023, 1:07pm UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/3 "2023-12-12T13:07:09Z")

</div>

Thanks a lot for your answer. No, I get no output in neither simple or verbose mode and the process doesn’t seem to use any resources.

---

<div class="post-metadata">

**Author:** ![dberenbaum](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dberenbaum](https://discuss.dvc.org/u/dberenbaum)\
**Post date:** [December 12, 2023, 2:21pm UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/4 "2023-12-12T14:21:09Z")

</div>

If you are okay with losing the queue and other temporary info, you could try dropping everything in `.dvc/tmp`. Does that help?

---

<div class="post-metadata">

**Author:** ![nikos](https://avatars.discourse-cdn.com/v4/letter/n/34f0e0/32.png) [@nikos](https://discuss.dvc.org/u/nikos)\
**Post date:** [December 12, 2023, 2:37pm UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/5 "2023-12-12T14:37:28Z")

</div>

Thanks. That solved it.

And actually I didn’t lose the succeeded experiments because before deleting `.dvc/tmp` I created new branches with these experiments (I remembered the names of the queued experiments)

---

<div class="post-metadata">

**Author:** ![dberenbaum](https://avatars.discourse-cdn.com/v4/letter/d/5e9695/32.png) [@dberenbaum](https://discuss.dvc.org/u/dberenbaum)\
**Post date:** [December 12, 2023, 2:41pm UTC](https://discuss.dvc.org/t/dvc-corruption-after-restart/1879/6 "2023-12-12T14:41:37Z")

</div>

Great, glad it worked! Yes, if you ever have that problem again, deleting that dir should only delete queued experiments which have not yet been run. Completed experiments should never get lost.
