# Error log filling up due to confused folder location

**URL:** https://discourse.nodered.org/t/error-log-filling-up-due-to-confused-folder-location/56548
**Category:** General
**Created:** [12 January 2022 20:15 UTC](https://discourse.nodered.org/t/error-log-filling-up-due-to-confused-folder-location/56548 "2022-01-12T20:15:51Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![smbunn](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/smbunn/32/8469_2.png) [@smbunn](https://discourse.nodered.org/u/smbunn)
#### Post date: [12 January 2022 20:15 UTC](https://discourse.nodered.org/t/error-log-filling-up-due-to-confused-folder-location/56548/1 "2022-01-12T20:15:51Z")

</div>

My ubuntu server warned me that the TB of storage was getting full which was a shock. Turned out I had 950 Gb of .pm2 error logs and the problem log file was _node-red-error.log_. It was full of the same message:

_Cannot find module node-red_

- /usr/local/bin/node-red\*

But my node red is installed in /usr/bin and is working fine. I tried "which node-red" and it correctly points to /usr/bin

How can I fix this please?

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [13 January 2022 07:52 UTC](https://discourse.nodered.org/t/error-log-filling-up-due-to-confused-folder-location/56548/2 "2022-01-13T07:52:14Z")

</div>

> [@smbunn](#):
>
> 950 Gb of .pm2 error logs

Presumably this is a problem with the way you are using pm2. Are you using that for a reason? The [recommended node-red install script](https://nodered.org/docs/getting-started/raspberrypi) for node-red on Ubuntu/Debian/Pi uses systemd not pm2. If you do need to use pm2 then how did you install node-red?

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [14 March 2022 07:52 UTC](https://discourse.nodered.org/t/error-log-filling-up-due-to-confused-folder-location/56548/3 "2022-03-14T07:52:27Z")

</div>

This topic was automatically closed 60 days after the last reply. New replies are no longer allowed.
