# 1.107.3 Error: collector unable to delete pieces

**URL:** <https://forum.storj.io/t/1-107-3-error-collector-unable-to-delete-pieces/26930>\
**Category:** FAQ\
**Tags:** ttl, garbage-collector, error-codes\
**Created:** [July 4, 2024, 12:56am UTC](https://forum.storj.io/t/1-107-3-error-collector-unable-to-delete-pieces/26930 "2024-07-04T00:56:46Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [July 5, 2024, 8:29am UTC](https://forum.storj.io/t/1-107-3-error-collector-unable-to-delete-pieces/26930/7 "2024-07-05T08:29:54Z")

</div>

Or use a logrotate

> [@Best method to redirect logs to independant storage in Linux](https://forum.storj.io/t/topic/8039/10):
>
> Hi phillipe, This is easy to do with logrotate since you can use wildcards to define your paths and files. I placed a logrotate config file in /etc/logrotate.d/ called storagenode . It is a plain text file. My logrotate config file is as follows. Don’t include comments in your config file (there is an uncommented version below). /mnt/logs-usb/storj\*/storagenode\*.log { #the wildcard (\*) characters tell logrotate to look in any subfolder that #begins with storj, and rotate any log that starts wi…

> [@Native logs rotation in Windows with a simple PowerShell script](https://forum.storj.io/t/topic/6241/1):
>
> Hello, Unfortunately, in the current windows version of the Storage Node there is no way to rotate or limit the size of the generated logs files. You cannot delete them from the GUI because they are locked by the services processes. Using Clear-Content in PowerShell to reset the files works but there is no easy solution if you want to keep a few days / weeks of logs. I have written a small PowerShell script that can rotate the Storjs Logs without the need of Stop\>Start the services to release …

> [@All my nodes keep restarting since last night: "/var/log/supervisor/supervisord.log does not exist"](https://forum.storj.io/t/topic/18206/8):
>
> Yes, the simplest way is to configure logrotate to manage your storagenode logs. It should already be running on your system. I recommend placing a logrotate config specifically for your node(s) in the /etc/logrotate.d folder. For example, I have a file /etc/logrotate.d/storagenode (it can have any name). The file contents are: /path/to/logs/storj\*/storagenode\*.log { su username username weekly maxsize 200M rotate 52 dateext dateformat -%Y%m%d …

etc.

---

_[View the full topic](https://forum.storj.io/t/1-107-3-error-collector-unable-to-delete-pieces/26930)._
