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

find_button script error #1

Open
noisufnoc opened this issue May 24, 2017 · 1 comment
Open

find_button script error #1

noisufnoc opened this issue May 24, 2017 · 1 comment

Comments

@noisufnoc
Copy link

I'm running the container with the --privileged flag, and it seems to work as expected. However, when I try to use the find_button script to obtain the mac address for my new buttons it errors out with the following message:


root@f64f9077cd36:~/dasher/script# ./find_button
module.js:328
    throw err;
    ^

Error: Cannot find module '/root/dasher/script/node_modules/node-dash-button/bin/findbutton'
    at Function.Module._resolveFilename (module.js:326:15)
    at Function.Module._load (module.js:277:25)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3

It seems that the path in that script is absolute, and does not work with the /root/dasher working directory. Updating the script to read the following works from within the container:

#!/bin/sh

sudo node /root/dasher/node_modules/node-dash-button/bin/findbutton

A relative path could be used here as well, or running the node command directly as the script is just a wrapper

@vulcanjedi
Copy link

I thought I'd have to do something like this til I realized

docker exec -it dasher /script/find_button

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