Error: bind EADDRINUSE xxx.xxx.xxx.xxx:4002

Hello everyone,

I've had the problem for a few days that my Node Red addon in the Home Assistant no longer starts.

Everything was actually quite simple until now. I installed the addon, started it and everything worked.

I'm not a complete beginner when it comes to Home Assistant and setting up various addons or HACS. But as soon as I have to make settings in a shell or console, I have to go through tutorials

It would be great if I could get information or even better help this way.

I have uninstalled the addon, reinstalled it, tried to start it in safe mode, but I get the same error message for everything.

I get the following error message from the log:

Welcome to Node-RED

25 Sep 16:56:55 - [info] Node-RED version: v4.0.2
25 Sep 16:56:55 - [info] Node.js version: v18.20.3
25 Sep 16:56:55 - [info] Linux 6.6.46-haos x64 LE
25 Sep 16:56:55 - [info] Loading palette nodes
25 Sep 16:56:56 - [info] Node-RED Contrib Theme Collection version: v4.0.8
25 Sep 16:56:57 - [info] Dashboard version 3.6.5 started at /endpoint/ui
25 Sep 16:56:58 - [red] Uncaught Exception:
25 Sep 16:56:58 - [error] Error: bind EADDRINUSE xxx.xxx.xxx.xxx:4002
at node:dgram:364:20
at processTicksAndRejections (node:internal/process/task_queues:83:21)
[16:56:58] INFO: Service Node-RED exited with code 1 (by signal 0)
s6-rc: info: service legacy-services: stopping
s6-rc: info: service legacy-services successfully stopped
s6-rc: info: service nginx: stopping
[16:56:58] INFO: Service NGINX exited with code 256 (by signal 15)
s6-rc: info: service nginx successfully stopped
s6-rc: info: service init-nginx: stopping
s6-rc: info: service nodered: stopping
s6-rc: info: service init-nginx successfully stopped
s6-rc: info: service nodered successfully stopped
s6-rc: info: service init-nodered: stopping
s6-rc: info: service init-nodered successfully stopped
s6-rc: info: service init-customizations: stopping
s6-rc: info: service init-customizations successfully stopped
s6-rc: info: service legacy-cont-init: stopping
s6-rc: info: service legacy-cont-init successfully stopped
s6-rc: info: service fix-attrs: stopping
s6-rc: info: service base-addon-log-level: stopping
s6-rc: info: service fix-attrs successfully stopped
s6-rc: info: service base-addon-log-level successfully stopped
s6-rc: info: service base-addon-banner: stopping
s6-rc: info: service base-addon-banner successfully stopped
s6-rc: info: service s6rc-oneshot-runner: stopping
s6-rc: info: service s6rc-oneshot-runner successfully stopped

That usually means that node red is already running, but whether that is true when used with H A I don't know.