BernalCarlos
BernalCarlos

Reputation: 1006

Appium Android bootstrap socket crashed: Error: connect ECONNREFUSED

The problem

I have an already working appium tests suite on my MacOS desktop, but when i try to run the same tests on an Ubuntu 16.04 desktop, I get the following error and appium gets closed automatically.

Android bootstrap socket crashed: Error: connect ECONNREFUSED

Also, just to be clear, i'm not trying to run simultaneous tests, just a single emulated android device.

Environment

Details

Been stuck on this for a few days. Saw some question referring to simultaneous tests on the internet, but its not my case. I'm trying to run my tests on a single emulated android device.

Also tried to change the bootstrap port using the -bp option, and set the localhost address using -a 127.0.0.1, but no success.

Link to Appium logs

https://gist.github.com/BernalCarlos/752efe621a55a2b2b0d07b966c8b5354

Thank you on advance.

Upvotes: 0

Views: 1192

Answers (3)

I solved the problem adding the appium server argument --suppress-adb-kill-server, it prevents killing the adb server socket

Upvotes: 0

Manjunath S
Manjunath S

Reputation: 21

I had the similar problem. Set ADB path in system variable as C:\Users\<username>\AppData\Local\Android\Sdk\platform-tools This will fix the issue.

Upvotes: 0

BernalCarlos
BernalCarlos

Reputation: 1006

Solved the problem by making a fresh install of linux mint 18.1.

Still don't know why this showed up in ubuntu 16.04.

Upvotes: 0

Related Questions