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

spawn EACCES with protractor #25

Open
notVitaliy opened this issue May 31, 2016 · 2 comments
Open

spawn EACCES with protractor #25

notVitaliy opened this issue May 31, 2016 · 2 comments

Comments

@notVitaliy
Copy link

notVitaliy commented May 31, 2016

I'm getting the following error when running protractor:

Error: spawn EACCES
    at exports._errnoException (util.js:953:11)
    at ChildProcess.spawn (internal/child_process.js:302:11)
    at exports.spawn (child_process.js:372:9)
    at BrowserStackTunnel._startTunnel (/app/node_modules/browserstacktunnel-wrapper/src/BrowserStackTunnel.js:150:19)
    at BrowserStackTunnel.startTunnel (/app/node_modules/browserstacktunnel-wrapper/src/BrowserStackTunnel.js:167:12)
    at BrowserStackTunnel.start (/app/node_modules/browserstacktunnel-wrapper/src/BrowserStackTunnel.js:176:12)
    at exports.config.beforeLaunch (/app/config/protractor.conf.js:47:31)
    at /app/node_modules/protractor/built/util.js:48:49
    at Function.promise (/app/node_modules/q/q.js:682:9)
    at Object.runFilenameOrFn_ (/app/node_modules/protractor/built/util.js:38:16)

I'm running this using the beforeLaunch function for protractor, here is my code:

  beforeLaunch: function(done) {
    return browserStackTunnel.start(function (startError) {
      if (startError) return done(startError);

      return true;
    });
  },

ubunutu: 16.04
node: 6.2.0
npm: 3.8.9

The error seems to be a permissions error, I've chown'd the entire directory to the proper user:group but that didn't fix it.

Let me know if you need any more info.

@notVitaliy
Copy link
Author

@pghalliday Changing spawn to exec here:

https://github.com/pghalliday/node-BrowserStackTunnel/blob/master/src/BrowserStackTunnel.js#L150

Seems to have fixed my issue.

@aripalo
Copy link

aripalo commented Aug 15, 2016

In case you (or someone else) still has this problem Error: spawn EACCES:

Try chaning the tunnel binary location (via the config):

  osxBin: 'your_bin_dir', // optionally override the default bin directory for the OSX binary
  linux32Bin: 'your_bin_dir', // optionally override the default bin directory for the Linux 32 bit binary
  linux64Bin: 'your_bin_dir', // optionally override the default bin directory for the Linux 64 bit binary
  win32Bin: 'your_bin_dir', // optionally override the default bin directory for the win32 binary

I specified the binary location to be within my project/repo root (and of course remember to gitignore that binary) and after that everything works.

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