Node-red opened and closed

#1

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.
0 Likes

#2

What platform are you running on?
To start NR are you typing node-red start ? or 'node-red-start?

Please copy the log from when NR starts to when you see those messages and paste it into a response.

0 Likes

#3

There is something weird with your command line

COMMAND=/usr/bin/phyton -u /home/pi.node-red/node_modules/node-red-node-pi-sense-hat/sensehat.py

Python is spelt incorrectly in the path

Craig

0 Likes

#4

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

To find more nodes and example flows - go to http://flows.nodered.org

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

0 Likes

#5

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

0 Likes

#6

Ok, so NR is starting fine, and it looks like you have a node that when it runs it opens a session and closing it when it is done.

Is there a problem?

0 Likes