# Node red on raspberry pi

**URL:** https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929
**Category:** General
**Created:** [2 August 2022 12:15 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929 "2022-08-02T12:15:18Z")
**Posts on this page:** 17
**Page:** 1

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [2 August 2022 12:15 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/1 "2022-08-02T12:15:18Z")

</div>

Hello everyone  
I am a new user.  
I installed a new system and an update.  
I connect with a keyboard mouse and a local screen with WIFI.  
I tried to open the NODE RED program and I get the following message:

Starting as a systemd service.  
nodered.service: Scheduled restart job, restart counter is at 4995.  
Stopped Node-RED graphical event wiring tool.  
Started Node-RED graphical event wiring tool.  
nodered.service: Failed to determine user credentials: No such process  
nodered.service: Failed at step USER spawning /usr/bin/env: No such process  
nodered.service: Main process exited, code=exited, status=217/USER  
nodered.service: Failed with result 'exit-code'.  
node-red-start  
nodered.service: Scheduled restart job, restart counter is at 4996.  
Stopped Node-RED graphical event wiring tool.  
Started Node-RED graphical event wiring tool.  
nodered.service: Failed to determine user credentials: No such process  
nodered.service: Failed at step USER spawning /usr/bin/env: No such process  
nodered.service: Main process exited, code=exited, status=217/USER  
nodered.service: Failed with result 'exit-code'.

any one know what to do?

---

<div class="post-metadata">

### Author: ![edje11](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/edje11/32/572_2.png) [@edje11](https://discourse.nodered.org/u/edje11)
#### Post date: [2 August 2022 12:18 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/2 "2022-08-02T12:18:43Z")

</div>

How did you installed NR on your pi? Did you used the installation script [Running on Raspberry Pi : Node-RED](https://nodered.org/docs/getting-started/raspberrypi) ?

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [2 August 2022 12:55 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/3 "2022-08-02T12:55:12Z")

</div>

Thanks for the quick response  
I tried to install in 2 ways  
1.by NR install but I got a different messages.  
So I tried to install a package that includes a few programs and NR.  
And this is the message I get

---

<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: [2 August 2022 13:01 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/4 "2022-08-02T13:01:12Z")

</div>

I suggest starting again. Install it the recommended way, and if you get problems then ask at that point. Don't make it worse by installing it again a different way.

---

<div class="post-metadata">

### Author: ![HaroldPetersInskipp](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/haroldpetersinskipp/32/42319_2.png) [@HaroldPetersInskipp](https://discourse.nodered.org/u/HaroldPetersInskipp)
#### Post date: [2 August 2022 14:46 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/5 "2022-08-02T14:46:58Z")

</div>

What is the output of running `cat /lib/systemd/system/nodered.service`?

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [2 August 2022 15:11 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/6 "2022-08-02T15:11:34Z")

</div>

I will try it

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [2 August 2022 15:12 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/7 "2022-08-02T15:12:09Z")

</div>

What do you mean?

---

<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: [2 August 2022 15:23 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/8 "2022-08-02T15:23:39Z")

</div>

He means open a terminal and run the command

`cat /lib/systemd/system/nodered.service`

and post the result here.

---

<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: [2 August 2022 15:39 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/9 "2022-08-02T15:39:41Z")

</div>

I suspect that you will find that the USER specified in that file no longer exists, in which case run the install script again, as I suggested, to correct the service file.

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [3 August 2022 08:19 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/10 "2022-08-03T08:19:18Z")

</div>

Hey  
The problem seems to be the user and passwords.  
But I don't know where I can change or disable the password.  
Can anyone help?

---

<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: [3 August 2022 08:45 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/11 "2022-08-03T08:45:17Z")

</div>

> [@gideon](#):
>
> The problem seems to be the user and passwords

What makes you think it is to do with the password?  
If you google for Pi how to change password it will surely tell you.

Please post the result of the `cat` command as requested.

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [3 August 2022 11:21 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/12 "2022-08-03T11:21:48Z")

</div>

The solution to my problem is to run it  
"node -red admin init"  
and set all the necessary data  
After that I got the IP I need to use in chrom  
And it works fine.  
Thanks to all

---

<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: [3 August 2022 13:21 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/13 "2022-08-03T13:21:25Z")

</div>

> [@gideon](#):
>
> nodered.service: Failed at step USER spawning /usr/bin/env: No such process

I find it difficult to understand how this problem was fixed by running node-red admin.

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [3 August 2022 13:38 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/14 "2022-08-03T13:38:05Z")

</div>

I set the user and password and set all the reset to default.  
After that I reboot and it works

---

<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: [3 August 2022 14:25 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/15 "2022-08-03T14:25:15Z")

</div>

Since the error in the service file was produced even before node-red starts running, then nothing in node-red itself would change that. Therefore something else caused that error to go away.

---

<div class="post-metadata">

### Author: ![gideon](https://avatars.discourse-cdn.com/v4/letter/g/7ba0ec/32.png) [@gideon](https://discourse.nodered.org/u/gideon)
#### Post date: [8 August 2022 10:39 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/16 "2022-08-08T10:39:51Z")

</div>

ok thanks

---

<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: [22 August 2022 10:39 UTC](https://discourse.nodered.org/t/node-red-on-raspberry-pi/65929/17 "2022-08-22T10:39:55Z")

</div>

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