Hello. I am starting with node-red but I have a problem. I can´t run it.
I have followed some tutorials and installed it as the official page says but i don´t know what happens.
When I type node-red start then everything seems good but then appears this message continuosly:
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/phyton -u /home/pi.node-red/node_modules/node-red-node-pi-sense-hat/sensehat.py
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
and so on.......
What is wrong ?
Last i did was to execute the script
bash <(curl -sL https://raw.githubusercontent.com/node-red/raspbian-deb-package/master/resources/update-nodejs-and-nodered)
´´´´
thanks for your help.
hello and thanks for your fast answer.
This is what appears on the screen
pi@raspberrypi:~ $ node-red-start
Start Node-RED
Once Node-RED has started, point a browser at http://192.168.1.118:1880
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
Starting as a systemd service.
Started Node-RED graphical event wiring tool.
7 Nov 23:42:36 - [info]
Welcome to Node-RED
7 Nov 23:42:36 - [info] Node-RED version: v0.19.5
7 Nov 23:42:36 - [info] Node.js version: v8.12.0
7 Nov 23:42:36 - [info] Linux 4.14.71-v7+ arm LE
7 Nov 23:42:37 - [info] Loading palette nodes
7 Nov 23:42:43 - [info] Dashboard version 2.10.1 started at /ui
7 Nov 23:42:44 - [info] Settings file : /home/pi/.node-red/settings.js
7 Nov 23:42:44 - [info] Context store : 'default' [module=memory]
7 Nov 23:42:44 - [info] User directory : /home/pi/.node-red
7 Nov 23:42:44 - [warn] Projects disabled : editorTheme.projects.enabled=false
7 Nov 23:42:44 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
7 Nov 23:42:44 - [info] Server now running at http://127.0.0.1:1880/
7 Nov 23:42:44 - [warn]
Your flow credentials file is encrypted using a system-generated key.
If the system-generated key is lost for any reason, your credentials
file will not be recoverable, you will have to delete it and re-enter
your credentials.
You should set your own key using the 'credentialSecret' option in
your settings file. Node-RED will then re-encrypt your credentials
file using your chosen key the next time you deploy a change.
7 Nov 23:42:44 - [info] Starting flows
7 Nov 23:42:44 - [info] Started flows
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python -u /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat/sensehat.py
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
hello and thanks for your fast answer.
As you said, I spellt the word in the wrong way.
Python is correct.
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python -u /home/pi/.node-red/node_modules/node-red-node-pi-sense-hat/sensehat.py
Hi there, I know this post is over 2 years ago, but right now I am having the same problem as you do. My Node Red Log is as following:
4 Aug 13:38:10 - [info] Starting flows
4 Aug 13:38:11 - [info] Started flows
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python mist.py 1628059091576
pam_unix(sudo:session): session opened for user root by (uid=0)
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python fan.py 1628059091576
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python bme280_humid.py 1628059091852
pam_unix(sudo:session): session opened for user root by (uid=0)
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python bme280.py 1628059091852
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
pam_unix(sudo:session): session closed for user root
4 Aug 13:38:12 - [info] [mqtt-broker:4d8478fc.0ef098] Connected to broker: mqtt://broker.hivemq.com:1883
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python mist.py 1628059092075
pam_unix(sudo:session): session opened for user root by (uid=0)
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python fan.py 1628059092075
pam_unix(sudo:session): session opened for user root by (uid=0)
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python timelapse.py 1628059092113
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
pam_unix(sudo:session): session closed for user root
pam_unix(sudo:session): session closed for user root
What actual problem are you having? Is something not working in your flows? Those log messages suggest you are using the exec node using sudo... Or at least something is running commands with sudo.
Since this thread is almost 3 years old, I'm going to close it and ask you to open a new thread.
Please provide a copy of the NR log from starting up so we can see the versions of NR and nodes
also please explain why you are running as root and what you are trying to do.