Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

sendToPi: true does not work #13

Open
freumichCH opened this issue Nov 24, 2018 · 2 comments
Open

sendToPi: true does not work #13

freumichCH opened this issue Nov 24, 2018 · 2 comments

Comments

@freumichCH
Copy link

Hello All

I've installed the RIO Projekt on my RBP3.
I was able to run the strandtest.py and singlestrandtest.py
After that i tried to run the Server with the "npm run server" command. i got the expected output on the Terminal Window (RIO Logo). After switching the "sendToPi" parameter to true, i became following error:

pi@raspberrypi:~/rio $ npm run server

rio@0.0.1 server /home/pi/rio
cd ./rio-server && npm start

rio-server@1.0.0 start /home/pi/rio/rio-server
node index.js

warn: SlackDataStore is deprecated and will be removed in the next major version. See project documentation for a migration guide.
events.js:165
throw er; // Unhandled 'error' event
^

Error: Can't open /dev/mem: Permission denied
Traceback (most recent call last):
File "firmware/rpi/lowlevel-server.py", line 52, in
raise RuntimeError('ws2811_init failed with code {0} ({1})'.format(resp, message))
RuntimeError: ws2811_init failed with code -5 (mmap() failed)

at PythonShell.parseError (/home/pi/rio/rio-server/node_modules/python-shell/index.js:190:17)
at terminateIfNeeded (/home/pi/rio/rio-server/node_modules/python-shell/index.js:98:28)
at ChildProcess.<anonymous> (/home/pi/rio/rio-server/node_modules/python-shell/index.js:88:9)
at ChildProcess.emit (events.js:180:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)

Emitted 'error' event at:
at terminateIfNeeded (/home/pi/rio/rio-server/node_modules/python-shell/index.js:111:22)
at ChildProcess. (/home/pi/rio/rio-server/node_modules/python-shell/index.js:88:9)
at ChildProcess.emit (events.js:180:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:209:12)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rio-server@1.0.0 start: node index.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rio-server@1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2018-11-24T18_23_50_219Z-debug.log
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! rio@0.0.1 server: cd ./rio-server && npm start
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the rio@0.0.1 server script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm WARN Local package.json exists, but node_modules missing, did you mean to install?

npm ERR! A complete log of this run can be found in:
npm ERR! /home/pi/.npm/_logs/2018-11-24T18_23_50_289Z-debug.log
pi@raspberrypi:~/rio $

Running npm with sudo does solve the issue, but i get no output on my LED's

Do you have any idear what happens wrong?

@lukefanning
Copy link
Contributor

Yes rio-server must be run as root. Have you disabled sendToConsole in rio-server/config/index.js?

@freumichCH
Copy link
Author

Hi

Thanks for you respond.
mh i'm not really sure about it. but i mean i've tried several combination.

I observed this discussion a bit. I will give it at the weekend another try.

Thanks for your work

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants