paulirish / pwmetrics

Progressive web metrics at your fingertipz
Apache License 2.0
1.25k stars 74 forks source link

Error: connect ECONNREFUSED 127.0.0.1:9222 #179

Closed earnedmarketing closed 6 years ago

earnedmarketing commented 6 years ago

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 - https://github.com/karma-runner/karma-chrome-launcher/issues/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 commented 6 years ago

{ 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 commented 6 years ago

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

vinoth786 commented 6 years ago

Hi artem, ok tq for your rply...your earnedmarketing blog is gud.

On Tue, Aug 21, 2018 at 4:00 PM Artem Denysov notifications@github.com wrote:

@4idlm https://github.com/4idlm do you have the same conditions and platform as @earnedmarketing https://github.com/earnedmarketing?

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/paulirish/pwmetrics/issues/179#issuecomment-414628563, or mute the thread https://github.com/notifications/unsubscribe-auth/AbG9yccCc8pLyXmlPm4ib01AywpPRngBks5uS-E3gaJpZM4UlwpX .

denar90 commented 6 years ago

should be fixed using chromeFlags - https://github.com/GoogleChrome/lighthouse/issues/2462#issuecomment-311213223

Will be added in example in #178

denar90 commented 6 years ago

Example of CI run https://travis-ci.org/paulirish/pwmetrics/jobs/421316522

vinoth786 commented 6 years ago

thanks for your help man..i was fixed that issue..

On Tue, Aug 28, 2018 at 4:04 AM Artem Denysov notifications@github.com wrote:

Example of CI run https://travis-ci.org/paulirish/pwmetrics/jobs/421316522

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/paulirish/pwmetrics/issues/179#issuecomment-416390790, or mute the thread https://github.com/notifications/unsubscribe-auth/AbG9ybDxApxW5PRDG03bSI4zNqIkDMJzks5uVHPfgaJpZM4UlwpX .