# All my nodes keep restarting since last night: "/var/log/supervisor/supervisord.log does not exist"

**URL:** <https://forum.storj.io/t/all-my-nodes-keep-restarting-since-last-night-var-log-supervisor-supervisord-log-does-not-exist/18206>\
**Category:** troubleshooting\
**Created:** [April 22, 2022, 12:23pm UTC](https://forum.storj.io/t/all-my-nodes-keep-restarting-since-last-night-var-log-supervisor-supervisord-log-does-not-exist/18206 "2022-04-22T12:23:08Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

**Author:** ![baker](https://storj.bcdn.literatehosting.com/user_avatar/forum.storj.io/baker/32/6110_2.png) [@baker](https://forum.storj.io/u/baker)\
**Post date:** [April 23, 2022, 1:15pm UTC](https://forum.storj.io/t/all-my-nodes-keep-restarting-since-last-night-var-log-supervisor-supervisord-log-does-not-exist/18206/8 "2022-04-23T13:15:37Z")

</div>

> [@jeremyfritzen](#):
>
> But is there a simple way to rotate logs or avoid them to grow indefinitely?

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:

```json
/path/to/logs/storj*/storagenode*.log {
        su username username
        weekly
        maxsize 200M
        rotate 52
        dateext
        dateformat -%Y%m%d
        compress
        delaycompress
        missingok
        notifempty
        copytruncate
}

```

There are many options, so pick what is right for you. In my case this rotates two sets of logs (hence the wildcards), the logs are owned by my non-root user/group so I had to specify, and then I specify the rotate options. The config file has to be owned by root:root, so you’ll have to `chown` the config file. You can do dry-runs by running `sudo logrotate -d /etc/logrotate.d/storagenode`

More information on logrotate here:

> **[logrotate(8) - Linux man page](https://linux.die.net/man/8/logrotate)**
>
> logrotate is designed to ease administration of systems that generate large numbers of log files. It allows automatic rotation, compression, removal, and ...

---

_[View the full topic](https://forum.storj.io/t/all-my-nodes-keep-restarting-since-last-night-var-log-supervisor-supervisord-log-does-not-exist/18206)._
