# Node hang when received "WARN retain failed to delete piece" warning message

**URL:** <https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735>\
**Category:** troubleshooting\
**Tags:** docker, offline, database, hardware\
**Created:** [December 21, 2023, 12:29am UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735 "2023-12-21T00:29:25Z")\
**Posts on this page:** 5\
**Page:** 2

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 7, 2024, 9:04am UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735/21 "2024-01-07T09:04:45Z")

</div>

You may specify the memory limit for your container as well. Especially if your disk subsystem is slow.

---

<div class="post-metadata">

**Author:** ![bebeo92](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/bebeo92/32/7826_2.png) [@bebeo92](https://forum.storj.io/u/bebeo92)\
**Post date:** [January 13, 2024, 4:05am UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735/22 "2024-01-13T04:05:13Z")

</div>

Yeah I know I using both, sometime docker a bit delay

Checking db I don’t see any corruption, but I think the main issue for me is I still left some \*.wal file of sqlite db in same hard disk with storage node

Previously I manually move \*.db file to ssd but I don’t really understand the way sqlite work (fun learning for me). So after moving all \*.db, \*.wal to ssd I don’t facing issue recently  
Still keep docker and script for safety-guard

---

<div class="post-metadata">

**Author:** ![daki82](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/daki82/32/1128_2.png) [@daki82](https://forum.storj.io/u/daki82)\
**Post date:** [January 13, 2024, 8:24am UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735/23 "2024-01-13T08:24:24Z")

</div>

> [@bebeo92](#):
>
> Checking db I don’t see any corruption, but I think the main issue for me is I still left some \*.wal file of sqlite db in same hard disk with storage node

yepp, you forgot to stop the node while moving dbs?  
i do not know a solution for this, or if it matters much.

---

<div class="post-metadata">

**Author:** ![Alexey](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/alexey/32/41_2.png) [@Alexey](https://forum.storj.io/u/Alexey)\
**Post date:** [January 13, 2024, 9:57am UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735/24 "2024-01-13T09:57:08Z")

</div>

There is no good solution, if they moved DBs while the node was running… Hopefully these databases are not corrupted…  
From the other hand - if they are corrupted it’s easy [to fix them](https://support.storj.io/hc/en-us/articles/360029309111-How-to-fix-a-database-disk-image-is-malformed-) or [re-create (with losing the stat and history)](https://support.storj.io/hc/en-us/articles/4403032417044-How-to-fix-database-file-is-not-a-database-error).

---

<div class="post-metadata">

**Author:** ![bebeo92](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/bebeo92/32/7826_2.png) [@bebeo92](https://forum.storj.io/u/bebeo92)\
**Post date:** [January 13, 2024, 4:08pm UTC](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735/25 "2024-01-13T16:08:30Z")

</div>

No, I’m already shutdown the node before move db, I’m using Unraid so it more relate to the way Unraid work

[Previous page](https://forum.storj.io/t/node-hang-when-received-warn-retain-failed-to-delete-piece-warning-message/24735.md?page=1)
