# Problems running node-red as a service(unrecognized service)

**URL:** <https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187>\
**Category:** General\
**Created:** [29 June 2018 11:59 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187 "2018-06-29T11:59:54Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![ThanosMel](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Post date:** [29 June 2018 11:59 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/1 "2018-06-29T11:59:54Z")

</div>

Hello guys, i have recently downloaded and installed node-red on my rp1 that runs Jessie via the bash command. However when i try to start node-red as a service with `node-red-start` the following error appears and nodered is not starting:

node-red-start

Start Node-RED

Once Node-RED has started, point a browser at (my ip)  
On Pi Node-RED works better with the Firefox or Chrome browser

Use node-red-stop to stop Node-RED  
Use node-red-start to start Node-RED again  
Use node-red-log to view the recent log output  
Use sudo systemctl enable nodered.service to autostart Node-RED at every boot  
Use sudo systemctl disable nodered.service to disable autostart on boot

To find more nodes and example flows - go to [http://flows.nodered.org](http://flows.nodered.org)  
nodered: unrecognized service

Starting as a systemd service.  
No journal files were found.

When i type `node-red` in terminal node-red starts fine.Any ideas what is causing that?Note : i have already sudo apt-get install build-essential and update-nodejs-and-nodered.

---

<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:** [29 June 2018 12:34 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/2 "2018-06-29T12:34:49Z")

</div>

I don’t think there are any errors there. What do you see if you run in one terminal:

```auto
node-red-log

```

and in the other

```auto
node-red-start

```

What matters is what gets added to the log after the start is run.

---

<div class="post-metadata">

**Author:** ![ThanosMel](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Post date:** [29 June 2018 13:00 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/3 "2018-06-29T13:00:39Z")

</div>

I flashed jessie on a new sd card and i cannot run node-red-log at the moment because node-red isnt installed. Before the sd flash node-red-log wasnt giving the logs as expected and node-red wasnt running with node-red-start.

---

<div class="post-metadata">

**Author:** ![cymplecy](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cymplecy/32/2773_2.png) [@cymplecy](https://discourse.nodered.org/u/cymplecy)\
**Post date:** [29 June 2018 14:48 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/4 "2018-06-29T14:48:16Z")

</div>

Easiest way of getting Node-RED running on new card is to download the latest image (2018-06-27)

log in and go thru new setup for location etc

run the curl script from [https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<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:** [29 June 2018 15:13 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/5 "2018-06-29T15:13:43Z")

</div>

> [@ThanosMel](#):
>
> I flashed jessie on a new sd card and i cannot run node-red-log at the moment because node-red isnt installed. Before the sd flash node-red-log wasnt giving the logs as expected and node-red wasnt running with node-red-start.

Well we can't do much to diagnose the problem if you have destroyed the evidence.

---

<div class="post-metadata">

**Author:** ![ThanosMel](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Post date:** [5 July 2018 13:25 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/6 "2018-07-05T13:25:31Z")

</div>

I solve it later this week.I didn’t have systemd installed , i installed it with apt-get. After, i just followed the instructions given on the “Adding Autostart capability using SystemD” section found here and node-red-start finally starts node-red as a service :  
[https://nodered.org/docs/hardware/raspberrypi](https://nodered.org/docs/hardware/raspberrypi)

---

<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:** [5 July 2018 14:33 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/7 "2018-07-05T14:33:00Z")

</div>

Which version of Raspbian are you using? Jessie and Stretch both run on systemd.

---

<div class="post-metadata">

**Author:** ![ThanosMel](https://avatars.discourse-cdn.com/v4/letter/t/db5fbb/32.png) [@ThanosMel](https://discourse.nodered.org/u/ThanosMel)\
**Post date:** [6 July 2018 06:35 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/8 "2018-07-06T06:35:39Z")

</div>

I upgraded from wheezy to jessie by changing the mirrors and i didn't apt-get dist-upgrade since i had to use some packages from wheezy. Just because i haven't fully upgraded, systemd wasn't installed or it wasn't updated. So when i update it and followed the directions on the link i posted above everything works fine. The version that i have at the moment is very weird , it's jessie with 3.12 kernel 😛 and many packages outdated. The only thing that rpi will run is node-red and antidote(bluetooth hdp library) so i think i am fine.

---

<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:** [6 July 2018 14:45 UTC](https://discourse.nodered.org/t/problems-running-node-red-as-a-service-unrecognized-service/1187/9 "2018-07-06T14:45:42Z")

</div>

OK, that explains it.
