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

npm run test:e2e selenium errors #2273

Closed
joeSaad opened this issue Aug 18, 2018 · 4 comments
Closed

npm run test:e2e selenium errors #2273

joeSaad opened this issue Aug 18, 2018 · 4 comments
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed. scope: e2e-nightwatch

Comments

@joeSaad
Copy link

joeSaad commented Aug 18, 2018

Version

3.0.0

Node and OS info

Node: v8.11.4, npm: 6.4.0, macOSX 10.12.6 and also tried on different machine Node:10.9.0, npm 6.2.0, macOSX 10.13.3

Steps to reproduce

vue create myrepo
npm run test:e2e

What is expected?

e2e testing to work without errors

What is actually happening?

errors

16:46:00.891 ERROR [SeleniumServer.boot] - Port 4444 is busy, please choose a free port and specify it using -port option

ERROR Error: Command failed: path2/myrepo/node_modules/nightwatch/bin/nightwatch --config path2/myrepo/node_modules/@vue/cli-plugin-e2e-nightwatch/nightwatch.config.js --env chrome
Error: Command failed: path2/myrepo/node_modules/nightwatch/bin/nightwatch --config path2/myrepo/node_modules/@vue/cli-plugin-e2e-nightwatch/nightwatch.config.js --env chrome
at makeError (path2/myrepo/node_modules/execa/index.js:172:9)
at Promise.all.then.arr (path2/myrepo/node_modules/execa/index.js:277:16)
at
at process._tickCallback (internal/process/next_tick.js:188:7)


I have tried this on two mac machines and both produced the same error mentioned above

@yyx990803
Copy link
Member

As the message suggests, make sure your port 4444 is not being already used...

@joeSaad
Copy link
Author

joeSaad commented Aug 19, 2018

I cleared that port several times and made sure nothing is using it. Still the error message appeared.

@yyx990803 yyx990803 added cannot reproduce We cannot reproduce the problem with the given information. More env information needed. scope: e2e-nightwatch labels Aug 20, 2018
@yyx990803
Copy link
Member

Unfortunately, we can't reproduce this. What you can do is creating a nightwatch.config.js in your project (which will be merged into the default config) to specify a different port.

@fritx
Copy link

fritx commented Sep 21, 2018

Similar error here, and finally fixed by upgrading chromedriver, inspired by SeleniumHQ/selenium#3001 (comment)

# fix
-    "chromedriver": "^2.27.2",
+    "chromedriver": "^2.42.0",
# error
{ Error: connect ECONNREFUSED 127.0.0.1:4444
    at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1191:14)
  errno: 'ECONNREFUSED',
  code: 'ECONNREFUSED',
  syscall: 'connect',
  address: '127.0.0.1',
  port: 4444 }
# or
{ value:
   { message: 'Unable to create new service: ChromeDriverService\nBuild info: version: \'3.14.0\', revision: \'aacccce0\', time: \'2018-08-02T20:13:22.693Z\'\nSystem info: host: \'Fritzs-MacBook-Pro.local\', ip: \'fe80:0:0:0:415:4546:3cf3:a427%en0\', os.name: \'Mac OS X\', os.arch: \'x86_64\', os.version: \'10.13.3\', java.version: \'10.0.2\'\nDriver info: driver.version: unknown',
     error: 'session not created' },
  status: 33 }

fritx added a commit to we-fork/vue-webpack that referenced this issue Sep 22, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cannot reproduce We cannot reproduce the problem with the given information. More env information needed. scope: e2e-nightwatch
Projects
None yet
Development

No branches or pull requests

3 participants