-
Notifications
You must be signed in to change notification settings - Fork 14
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:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) #63
Comments
Interesting... did this pattern |
yes i tried with plain text as well but still same issue here its details level error 2019-11-22T00:51:42.922Z INFO @wdio/cli:launcher: Run onPrepare hook Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:11 |
Please try to add |
Thanks , make changes and rerun test but still having same error |
Ok, your error logs indicate that docker events crashed, which in turn means that test runner has probably started before selenium docker was available. Are you running this on Windows? |
Yes I am running on windows 10 |
Ok that explains it - Docker in Windows 10 uses a different command line format. Look at this issue #56. I'm working on a fix. The problem is that I don't have Windows 10 to test on now (Mac only). |
I have pushed out an RC version |
Sorry for late response but i have tried out yesterday with latest version 2.1.5-rc.0 and .. i have windows 10 home so i have downloaded docker-desktop for that config |
Uhh, could you please set |
looks like issue with docker on windows , so now docker is running on windows |
Hello @stsvilik do you know when should get new tag version(like 2.1.5) created from Release candidate 2.1.5-rc.0 |
Hopefully soon, I have asked other issue owners to test it in their environments. Some issues still present and require a closer look. I may have another RC as a result of this investigation. Please be patient 🙂
…________________________________
From: shashtrih <[email protected]>
Sent: Thursday, December 5, 2019 11:00:49 PM
To: stsvilik/wdio-docker-service <[email protected]>
Cc: Simon Tsvilik <[email protected]>; Mention <[email protected]>
Subject: Re: [stsvilik/wdio-docker-service] Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) (#63)
Hello @stsvilik<https://github.com/stsvilik> do you know when should get new tag version(like 2.1.5) created from Release candidate 2.1.5-rc.0
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#63>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABC3UGJWI2CQ5ZD5QNH4E3QXHE7DANCNFSM4JQEOTPA>.
|
Hello @stsvilik do you know other issue owners get chance to test it or any push for new version with this fix .. I am still patient :) but just asking its been 25 days |
I'm setting up Windows 10 - should be done with it in a week after holidays :/ |
@shashtrih could you try out newer RC |
@stsvilik I'm getting the same issue in gitlab CI pipeline. It's running fine in my local. |
@VisuSubbaiyan Are you running windows in gitlab CI as well? Could you provide a log from CI error? Btw error could be caused by inability for CI to expose a port or find a 'localhost' or many other Docker/ system related issues.
…________________________________
From: VisuSubbaiyan <[email protected]>
Sent: Tuesday, February 4, 2020 6:29:54 AM
To: stsvilik/wdio-docker-service <[email protected]>
Cc: Simon Tsvilik <[email protected]>; Mention <[email protected]>
Subject: Re: [stsvilik/wdio-docker-service] Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) (#63)
@stsvilik<https://github.com/stsvilik> I'm getting the same issue in gitlab CI pipeline. It's running fine in my local.
I'm using "wdio-docker-service": "^2.2.1"
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#63>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABC3UD4OC4JVJNKUS7ST4DRBFGTFANCNFSM4JQEOTPA>.
|
@stsvilik Please check the CI log...
|
@VisuSubbaiyan please try with latest version |
@stsvilik Thank you for your reply, but still, Im having the same issue. |
@VisuSubbaiyan are you able to make it run locally?
…________________________________
From: VisuSubbaiyan <[email protected]>
Sent: Wednesday, February 5, 2020 4:36:13 AM
To: stsvilik/wdio-docker-service <[email protected]>
Cc: Simon Tsvilik <[email protected]>; Mention <[email protected]>
Subject: Re: [stsvilik/wdio-docker-service] Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) (#63)
@stsvilik<https://github.com/stsvilik> Thank you for your reply, but still, Im having the same issue.
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#63>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABC3UGTZ5FDHFUPGEOD4GTRBKCA3ANCNFSM4JQEOTPA>.
|
@stsvilik Yes, It's working fine in my Mac |
Then it's likely the issue with CI environment. It could be slow start the app in the docker and thus needs more delay in health check.
…________________________________
From: VisuSubbaiyan <[email protected]>
Sent: Wednesday, February 5, 2020 10:11:05 AM
To: stsvilik/wdio-docker-service <[email protected]>
Cc: Simon Tsvilik <[email protected]>; Mention <[email protected]>
Subject: Re: [stsvilik/wdio-docker-service] Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14) (#63)
@stsvilik<https://github.com/stsvilik> Yes, It's working fine in my Mac
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub<#63>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/AABC3UAVO3DEM5DDAFXRDTDRBLJITANCNFSM4JQEOTPA>.
|
I am facing exactly the same issue in MAC. I am running through CI-CD pipeline in linux environment docker image |
@soumya-contentsquare are you testing a public site or your containerized app? |
I am testing public website. My docker environment is for Chrome |
@soumyaevan could you share environment details such as node version, OS? Issue above indicates that WDIO is unable to connect with Selenium which runs in the container. Make sure docker port is properly mapped and exposed. |
@stsvilik |
Is this issue resolved? I cannot find any suggested solution in this thread. I am running into similar issues when I try to run from jenkins. Port 4444 is exposed in my Dockerfile |
Sorry for delay. This issue is environment-specific and not easily diagnosed. Jenkins, depending on the setup and configuration could prevent local instances from exposing ports for access or maybe even make calls via |
hello world |
when i configured below package configuration in my project . its throwing this error
npm package use
webdriverio - 5.16.5
wdio-docker-service - 2.1.4
// wdio.conf.js
exports.config = {
// ...
specs: [
],
services: ['docker'],
// Options are set here as well
capabilities: [{
{ browserName: 'chrome'
// chromeOptions: {
// args: debug ? [] : [ '--disable-gpu', '--window-size=1280,800'],
// }
}
}],
dockerLogs: './logs',
dockerOptions: {
image: 'selenium/standalone-chrome',
healthCheck: {
url: 'http://localhost:4444',
maxRetries: 3,
inspectInterval: 1000,
startDelay: 15000
},
options: {
p: ['4444: 4444'],
shmSize: '2g'
}
},
};
//Actual test file
describe(browser.capabilities.browserName + ' - basic test', function() {
Error on console
Execution of 1 spec files started at 2019-11-21T05:54:28.504Z
[0-0] RUNNING in chrome - C:\codebase\webdriverio\01-base-test.js
0-0 worker error { name: 'Error',
message: 'connect ECONNREFUSED 127.0.0.1:4444',
stack:
'Error: connect ECONNREFUSED 127.0.0.1:4444\n at TCPConnectWrap.afterConnect [as oncomplete] (net.js:1097:14)' }
[0-0] FAILED in chrome - C:\codebase\webdriverio01-base-test.js
Spec Files: 0 passed, 1 failed, 1 total (100% completed) in 00:00:06
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! Exit status 1
npm ERR!
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
The text was updated successfully, but these errors were encountered: