Not able to connect to selenium grid - getting connection refused error
🐛 Bug Report
Operating System: Ubuntu 18.04
Docker Image: budtmo/docker-android-x86-8.1
Docker Version:
19.03.4, build 9013bf583a
Docker Command to start docker-android:
docker run
Expected Behavior
Should get connected to Selenium Grid
Actual Behavior
Getting error
[Appium] Request to register with grid was unsuccessful:Error: connect ECONNREFUSED 127.0.0.1:4444 [debug][Appium] Hub down or not responding:Error: connect ECONNREFUSED 127.0.0.1:4444
Bug in Detail
I started a selenium hub with the command -
docker run -d -p 4444:4444 --name selenium-android-hub -P selenium/hub
Then I started the appium docker command -
docker run --privileged -d -p 6080:6080 -p 4723:4723 -p 5554:5554 -p 5555:5555 -e DEVICE="Samsung Galaxy S6" -e APPIUM=true -e CONNECT_TO_GRID=true -e APPIUM_HOST="127.0.0.1" -e APPIUM_PORT=4723 -e SELENIUM_HOST="127.0.0.1" -e SELENIUM_PORT=4444 -e MOBILE_WEB_TEST=true --name android-container budtmo/docker-android-x86-8.1
But when I accessed noVNC, in logs it says
[Appium] Request to register with grid was unsuccessful:Error: connect ECONNREFUSED 127.0.0.1:4444 [debug][Appium] Hub down or not responding:Error: connect ECONNREFUSED 127.0.0.1:4444
Please let me know whats the issue is ?
With the same hub, I was able to add normal chrome borwser nodes.