Error 217 when start Node-red on raspberry


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'.


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.


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: "*"


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


now it is ok.


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'.

1 Like