npm install johnny-five raspi-io ) (28 Mar 00:20:21 - [info] Node-RED version: v0.16.2
28 Mar 00:20:21 - [info] Node.js version: v6.10.1
28 Mar 00:20:21 - [info] Linux 4.4.50-v7+ arm LE
28 Mar 00:20:23 - [info] Loading palette nodes
pi : TTY=unknown ; PWD=/home/pi ; USER=root ; COMMAND=/usr/bin/python -u /usr/lib/node_modules/node-red/nodes/core/hardware/nrgpio.py info
pam_unix(sudo:session): session opened for user root by (uid=0)
pam_unix(sudo:session): session closed for user root
28 Mar 00:20:30 - [info] Dashboard version 2.3.6 started at /ui
28 Mar 00:20:37 - [info] Settings file : /home/pi/.node-red/settings.js
28 Mar 00:20:37 - [info] User directory : /home/pi/.node-red
28 Mar 00:20:37 - [info] Flows file : /home/pi/.node-red/flows_raspberrypi.json
28 Mar 00:20:37 - [info] Server now running at http://127.0.0.1:1880/
28 Mar 00:20:37 - [info] Starting flows
1490678437632 Device(s) RaspberryPi-IO
1490678437663 Device(s) RaspberryPi-IO
1490678437688 Device(s) RaspberryPi-IO
1490678437713 Device(s) RaspberryPi-IO
28 Mar 00:20:37 - [info] Started flows
28 Mar 00:20:37 - [red] Uncaught Exception:
28 Mar 00:20:37 - Error: EACCES: permission denied, open '/sys/class/leds/led0/trigger'
at Error (native)
at Object.fs.openSync (fs.js:641:18)
at Object.fs.writeFileSync (fs.js:1347:33)
at new LED (/home/pi/.node-red/node_modules/raspi-led/dist/index.js:42:18)
at RaspiIOCore.value (/home/pi/.node-red/node_modules/raspi-io-core/dist/index.js:525:34)
at RaspiIOCore.pinMode (/home/pi/.node-red/node_modules/raspi-io-core/dist/index.js:484:21)
at /home/pi/.node-red/node_modules/raspi-io-core/dist/index.js:408:17
at Array.forEach (native)
at /home/pi/.node-red/node_modules/raspi-io-core/dist/index.js:337:32
at _combinedTickCallback (internal/process/next_tick.js:73:7)
at process._tickDomainCallback (internal/process/next_tick.js:128:9)
nodered.service: main process exited, code=exited, status=1/FAILURE
Unit nodered.service entered failed state.
nodered.service holdoff time over, scheduling restart.
Stopping Node-RED graphical event wiring tool....
Starting Node-RED graphical event wiring tool....
Started Node-RED graphical event wiring tool..
28 Mar 00:20:40 - [info]
sudo ls -l /sys/class/leds/led0/trigger
sudo -s
echo heartbeat >/sys/class/leds/led0/triggerecho heartbeat | sudo tee /sys/class/leds/led0/trigger >/dev/null--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/9171407d-6929-4de1-9c44-6a176bbe4c10%40googlegroups.com.
so do i just do sudo nano /lib/systemd/system/nodered.service and change user to root? will that solve the problem?
On Friday, March 31, 2017 at 8:33:55 AM UTC-5, Julian Knight wrote:Ah, good spot Colin.
On Friday, 31 March 2017 08:43:10 UTC+1, Colin Law wrote:ColinLooking at node-red-start I see that it starts node red usingDoes that mean that it will actually use the systemctl service /lib/systemd/system/nodered.service to start node red? If that is the case then it will set the user to that specified in that service (which will be the user pi by default) so using sudo with node-red-start will not have any effect.
sudo service nodered startOn 29 March 2017 at 18:55, Son Huynh <ghuyn...@gmail.com> wrote:this is me running it as root but still getting same error
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+unsubscribe@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.
To view this discussion on the web, visit https://groups.google.com/d/msgid/node-red/6cc64fb5-1bda-49c5-b7b2-e9e3a347cdaf%40googlegroups.com.
On 31 March 2017 at 17:25, Son Huynh <ghuyn...@gmail.com> wrote:so do i just do sudo nano /lib/systemd/system/nodered.service and change user to root? will that solve the problem?If you do another upgrade-nodejs-and-nodered it will restore the user to the default so you would have to edit it again.Colin
On Friday, March 31, 2017 at 8:33:55 AM UTC-5, Julian Knight wrote:Ah, good spot Colin.
On Friday, 31 March 2017 08:43:10 UTC+1, Colin Law wrote:ColinLooking at node-red-start I see that it starts node red usingDoes that mean that it will actually use the systemctl service /lib/systemd/system/nodered.service to start node red? If that is the case then it will set the user to that specified in that service (which will be the user pi by default) so using sudo with node-red-start will not have any effect.
sudo service nodered startOn 29 March 2017 at 18:55, Son Huynh <ghuyn...@gmail.com> wrote:this is me running it as root but still getting same error
--
http://nodered.org
Join us on Slack to continue the conversation: http://nodered.org/slack
---
You received this message because you are subscribed to the Google Groups "Node-RED" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-red+u...@googlegroups.com.
To post to this group, send email to node...@googlegroups.com.
Visit this group at https://groups.google.com/group/node-red.