# Nodered service is not starting on Ubuntu 20.04

**URL:** <https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143>\
**Category:** General\
**Created:** [21 May 2024 11:19 UTC](https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143 "2024-05-21T11:19:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![demokedes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/demokedes/32/19082_2.png) [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Post date:** [21 May 2024 11:19 UTC](https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143/1 "2024-05-21T11:19:56Z")

</div>

Dear all,  
From this morning on, I am not able to login to Node-red ui. I was getting just blank page. I rebooted the service, but is not starting. Output of log is following:

```auto
$ sudo systemctl status nodered
● nodered.service - Node-RED graphical event wiring tool
   Loaded: loaded (/lib/systemd/system/nodered.service; enabled; vendor preset: enabled)
   Active: activating (auto-restart) (Result: exit-code) since Tue 2024-05-21 09:55:48 UTC; 12s ago
     Docs: http://nodered.org/docs/hardware/raspberrypi.html
  Process: 2278 ExecStart=/usr/bin/env node-red-pi $NODE_OPTIONS $NODE_RED_OPTIONS (code=exited, status=127)
 Main PID: 2278 (code=exited, status=127)

May 21 09:55:48 NodeRed systemd[1]: nodered.service: Scheduled restart job, restart counter is at 225.
May 21 09:55:48 NodeRed systemd[1]: Stopped Node-RED graphical event wiring tool.
May 21 09:55:48 NodeRed systemd[1]: Started Node-RED graphical event wiring tool.
May 21 09:55:48 NodeRed systemd[1]: nodered.service: Main process exited, code=exited, status=127/n/a
May 21 09:55:48 NodeRed system[1]: nodered.service: Failed with result 'exit-code'.

```

Any idea what might be wrong and how to solve it?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/5/0/50d1665ace68e069635aa8e89eac28f966f2eb14.png)

---

<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:** [21 May 2024 12:49 UTC](https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143/3 "2024-05-21T12:49:29Z")

</div>

Was this running until then?  
What did you do (if anything) to cause the problem.

What does  
`node -v`  
show?

Try running the install script and see what happens. If it fails then post the install log here (/var/log/nodered-install.log).

---

<div class="post-metadata">

**Author:** ![demokedes](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/demokedes/32/19082_2.png) [@demokedes](https://discourse.nodered.org/u/demokedes)\
**Post date:** [21 May 2024 12:50 UTC](https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143/4 "2024-05-21T12:50:17Z")

</div>

I solved it. The problem was in the damages npm. Once I reinstalled NPM, I needed to reinstall node-red as well, but all the settings and nodes stayed untached. So everything's fine.

---

<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:** [4 June 2024 12:50 UTC](https://discourse.nodered.org/t/nodered-service-is-not-starting-on-ubuntu-20-04/88143/5 "2024-06-04T12:50:45Z")

</div>

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