Node red on raspberry pi

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?

How did you installed NR on your pi? Did you used the installation script Running on Raspberry Pi : Node-RED ?

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

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.

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

I will try it

What do you mean?

He means open a terminal and run the command

cat /lib/systemd/system/nodered.service

and post the result here.

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.

1 Like

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?

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.

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

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

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

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.

ok thanks

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