Skip to content

npm run test:e2e selenium errors #2273

Closed
@joeSaad

Description

@joeSaad

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

Activity

yyx990803

yyx990803 commented on Aug 19, 2018

@yyx990803
Member

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

joeSaad

joeSaad commented on Aug 19, 2018

@joeSaad
Author

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

yyx990803

yyx990803 commented on Aug 20, 2018

@yyx990803
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

fritx commented on Sep 21, 2018

@fritx

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 }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    cannot reproduceWe cannot reproduce the problem with the given information. More env information needed.scope: e2e-nightwatch

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @yyx990803@joeSaad@fritx

        Issue actions

          npm run test:e2e selenium errors · Issue #2273 · vuejs/vue-cli