# Getting an error message

**URL:** <https://discourse.nodered.org/t/getting-an-error-message/59193>\
**Category:** General\
**Created:** [1 March 2022 21:01 UTC](https://discourse.nodered.org/t/getting-an-error-message/59193 "2022-03-01T21:01:06Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![patofoto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/patofoto/32/25792_2.png) [@patofoto](https://discourse.nodered.org/u/patofoto)\
**Post date:** [1 March 2022 21:01 UTC](https://discourse.nodered.org/t/getting-an-error-message/59193/1 "2022-03-01T21:01:06Z")

</div>

I am getting this error message:

```auto
Welcome to Node-RED
===================
1 Mar 15:47:44 - [info] Node-RED version: v2.2.2
1 Mar 15:47:44 - [info] Node.js version: v17.6.0
1 Mar 15:47:44 - [info] Darwin 21.3.0 arm64 LE
1 Mar 15:47:44 - [info] Loading palette nodes
1 Mar 15:47:45 - [info] Dashboard version 3.1.6 started at /ui
1 Mar 15:47:45 - [info] Settings file : /Users/server/.node-red/settings.js
1 Mar 15:47:45 - [info] Context store : 'default' [module=memory]
1 Mar 15:47:45 - [info] User directory : /Users/server/.node-red
1 Mar 15:47:45 - [info] Projects directory: /Users/server/.node-red/projects
1 Mar 15:47:45 - [error] Uncaught Exception:
1 Mar 15:47:45 - [error] Error: listen EADDRINUSE: address already in use 0.0.0.0:1880
    at Server.setupListenHandle [as _listen2] (node:net:1331:16)
    at listenInCluster (node:net:1379:12)
    at doListen (node:net:1518:7)
    at processTicksAndRejections (node:internal/process/task_queues:84:21)

```

I believe in stems from another instance of node-red running at the same time.

I don't know how I got this going. I am on MacOS and followed the instructions how to start on boot using PM2.

If indeed I have multiple instances of Node-Red going, how do I know which one to turn off and how. I am using 127.0.0.1:1880 to see the UI. When using the terminal to get `which node-red` I get `/opt/homebrew/bin/node-red` I used this path when using PM2.

I don't really know what I am doing. I just follow instructions well...or so I thought. Any help would be greatly appreciated.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [1 March 2022 21:14 UTC](https://discourse.nodered.org/t/getting-an-error-message/59193/2 "2022-03-01T21:14:48Z")

</div>

You are correct - the EADDRINUSE means it is already running on that port (1880). I'm not a big user of PM2 - but I think `pm2 stop all` should stop all pm2 activity, or you may have started it in another console ? in which case just ctrl-c in the console should stop it.

---

<div class="post-metadata">

**Author:** ![patofoto](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/patofoto/32/25792_2.png) [@patofoto](https://discourse.nodered.org/u/patofoto)\
**Post date:** [1 March 2022 21:54 UTC](https://discourse.nodered.org/t/getting-an-error-message/59193/3 "2022-03-01T21:54:27Z")

</div>

@dceejay Thank you for your quick response. Is there a better way to start on boot that you recommend?. It seems to be the preferred method for MacOS.  
I tried pm2 stop all and started node-red again with node-red start and it all seems to be ok. Lost the ability to start on boot though.

---

<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:** [30 April 2022 21:54 UTC](https://discourse.nodered.org/t/getting-an-error-message/59193/4 "2022-04-30T21:54:43Z")

</div>

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