# Error 217 when start Node-red on raspberry

**URL:** https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097
**Category:** General
**Created:** [6 August 2018 11:04 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097 "2018-08-06T11:04:25Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![glconceicao](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/glconceicao/32/1657_2.png) [@glconceicao](https://discourse.nodered.org/u/glconceicao)
#### Post date: [6 August 2018 11:04 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097/1 "2018-08-06T11:04:25Z")

</div>

i started one project with login pi, after i change login pi for other login. now the node red not got start with the actual login.

follow the error log.

Starting as a systemd service.  
nodered.service: Failed with result 'exit-code'.  
nodered.service: Service hold-off time over, scheduling restart.  
Stopped Node-RED graphical event wiring tool.  
Started Node-RED graphical event wiring tool.  
nodered.service: Main process exited, code=exited, status=217/USER  
nodered.service: Unit entered failed state.  
nodered.service: Failed with result 'exit-code'.

---

<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: [6 August 2018 11:11 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097/2 "2018-08-06T11:11:36Z")

</div>

You need to edit the nodered.service file to point to the new user (or the user that will run Node-RED). The default install assumes the user pi.

---

<div class="post-metadata">

### Author: ![glconceicao](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/glconceicao/32/1657_2.png) [@glconceicao](https://discourse.nodered.org/u/glconceicao)
#### Post date: [6 August 2018 11:18 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097/3 "2018-08-06T11:18:58Z")

</div>

i open ~/.node-red/settings.js file and edit this lines.  
it's corret?

adminAuth: {  
type: "credentials",  
users: [{  
username: "gconceicao",  
password: "$2a$08$zZWtXTja0fB1pzD4sHCMyOCMYz2Z6dNbM6tl8sJogENOMcxWV9$  
permissions: "\*"  
}]  
},

---

<div class="post-metadata">

### Author: ![glconceicao](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/glconceicao/32/1657_2.png) [@glconceicao](https://discourse.nodered.org/u/glconceicao)
#### Post date: [6 August 2018 11:35 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097/4 "2018-08-06T11:35:47Z")

</div>

Thanks i foud this file on /lib/systemd/system/  
and edit "user" for my login.

User="user"  
Group=pi  
WorkingDirectory=/home/"user"  
Nice=5

now it is ok.

---

<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 August 2018 20:23 UTC](https://discourse.nodered.org/t/error-217-when-start-node-red-on-raspberry/2097/5 "2018-08-06T20:23:12Z")

</div>

> [@dceejay](#):
>
> You need to edit the nodered.service file to point to the new user (or the user that will run Node-RED). The default install assumes the user pi.

A minor clarification of this, if you run the upgrade script (from the pi installation docs) then it configures systemd to run node-red as the user that ran the script, which may or may not be the user 'pi'.
