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

Android bootstrap socket crashed: Error: connect ECONNREFUSED #7930

Closed
BernalCarlos opened this issue Feb 24, 2017 · 6 comments
Closed

Android bootstrap socket crashed: Error: connect ECONNREFUSED #7930

BernalCarlos opened this issue Feb 24, 2017 · 6 comments

Comments

@BernalCarlos
Copy link

BernalCarlos commented Feb 24, 2017

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

  • Appium version: 1.6.3-Beta. Also tried with 1.5.3 and got the same error.
  • Last Appium version that did not exhibit the issue (if applicable): Not applicable.
  • Desktop OS/version used to run Appium: Ubuntu 16.04
  • Node.js version (unless using Appium.app|exe): 7.6.0. But got the same error with v6.
  • Mobile platform/version under test: Andorid 6 (Marshmallow)
  • Real device or emulator/simulator: Simulator
  • Appium CLI or Appium.app|exe: Appium CLI

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.

@triager triager added the Needs Triage bugs which are not yet confirmed label Feb 24, 2017
@mykola-mokhnach
Copy link
Collaborator

Forwarding system: 4724 to device: 4724

Why 4724 if Appium starts on port 4723 by default?

@BernalCarlos
Copy link
Author

@mykola-mokhnach What I understand is that 4724 is the default device bootstrap port

@BernalCarlos
Copy link
Author

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.

@vikramvi
Copy link
Contributor

vikramvi commented Mar 6, 2017

@triager please close per last comment

@triager triager closed this as completed Mar 6, 2017
@imurchie imurchie removed the Needs Triage bugs which are not yet confirmed label Apr 13, 2017
@manishthackray
Copy link

manishthackray commented Aug 1, 2018

I am facing same issue, using macOS -10.13.6
Appium v1.8.1

I am trying parallel testing

Unhandled rejection Error: Android bootstrap socket crashed: Error: This socket has been ended by the other party at Socket.<anonymous> (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/lib/bootstrap.js:87:21) at Socket.emit (events.js:182:13) at Socket.writeAfterFIN [as write] (net.js:404:8) at /usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/lib/bootstrap.js:112:25 at tryCatcher (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/node_modules/bluebird/js/main/util.js:26:23) at Promise._resolveFromResolver (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/node_modules/bluebird/js/main/promise.js:483:31) at new Promise (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/node_modules/bluebird/js/main/promise.js:71:37) at AndroidBootstrap.sendCommand$ (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/lib/bootstrap.js:108:18) at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) at new Promise (<anonymous>) at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) at AndroidBootstrap.sendCommand (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/build/lib/bootstrap.js:219:34) at AndroidBootstrap.shutdown$ (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/lib/bootstrap.js:163:18) at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37) at enqueueResult (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:185:17) at new Promise (<anonymous>) at new F (/usr/local/lib/node_modules/appium/node_modules/core-js/library/modules/$.export.js:30:36) at AsyncIterator.enqueue (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:184:12) at AsyncIterator.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at Object.runtime.async (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:209:12) at AndroidBootstrap.shutdown (/usr/local/lib/node_modules/appium/node_modules/appium-android-bootstrap/build/lib/bootstrap.js:306:34) at AndroidDriver.deleteSession$ (/usr/local/lib/node_modules/appium/node_modules/appium-android-driver/lib/driver.js:373:28) at tryCatch (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:67:40) at GeneratorFunctionPrototype.invoke [as _invoke] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:315:22) at GeneratorFunctionPrototype.prototype.(anonymous function) [as next] (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:100:21) at GeneratorFunctionPrototype.invoke (/usr/local/lib/node_modules/appium/node_modules/babel-runtime/regenerator/runtime.js:136:37)

@lock
Copy link

lock bot commented Aug 1, 2019

This thread has been automatically locked since there has not been any recent activity after it was closed. Please open a new issue for related bugs.

@lock lock bot locked and limited conversation to collaborators Aug 1, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants