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

Error: connect ECONNREFUSED 127.0.0.1:9222 #179

Closed
earnedmarketing opened this issue Jun 13, 2018 · 6 comments
Closed

Error: connect ECONNREFUSED 127.0.0.1:9222 #179

earnedmarketing opened this issue Jun 13, 2018 · 6 comments

Comments

@earnedmarketing
Copy link

Config / CLI options

Vanilla CLI and node executions

Steps to reproduce.

  1. Launch a clean Ubuntu droplet with Digital Ocean
  2. Install latest Node LTS, pwmetrics, chromium
  3. Try using the official examples of launching pwmetrics via CLI or Chrome

(you get an unintelligible error which seems to be because your default settings for the CLI and the node execution are missing --no-sandbox flag which seems to have been required for more than half a year - karma-runner/karma-chrome-launcher#158)

Stack trace

{ Error: connect ECONNREFUSED 127.0.0.1:42565
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)
code: 'ECONNREFUSED',
errno: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 42565 }
events.js:183
throw er; // Unhandled 'error' event
^

Error: connect ECONNREFUSED 127.0.0.1:9222
at Object._errnoException (util.js:992:11)
at _exceptionWithHostPort (util.js:1014:20)
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1186:14)

Screenshot

Environment

  1. pwmetrics version: 3.2.1
  2. Chrome version: Chromium 66.0.3359.181
  3. OS version: Ubuntu 16.04
@vinoth786
Copy link

{ Error: connect ECONNREFUSED 127.0.0.1:9222
at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1173:14)
errno: 'ECONNREFUSED',
code: 'ECONNREFUSED',
syscall: 'connect',
address: '127.0.0.1',
port: 9222 }

I am facing this issue ,I need help

@denar90
Copy link
Collaborator

denar90 commented Aug 21, 2018

@4idlm do you have the same conditions and platform as @earnedmarketing?

@vinoth786
Copy link

vinoth786 commented Aug 22, 2018 via email

@denar90
Copy link
Collaborator

denar90 commented Aug 27, 2018

should be fixed using chromeFlags - GoogleChrome/lighthouse#2462 (comment)

Will be added in example in #178

@denar90 denar90 closed this as completed Aug 27, 2018
@denar90
Copy link
Collaborator

denar90 commented Aug 27, 2018

@vinoth786
Copy link

vinoth786 commented Aug 28, 2018 via email

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

3 participants