{"action":"created","issue":{"url":"https://api.github.com/repos/appium/appium/issues/6362","repository_url":"https://api.github.com/repos/appium/appium","labels_url":"https://api.github.com/repos/appium/appium/issues/6362/labels{/name}","comments_url":"https://api.github.com/repos/appium/appium/issues/6362/comments","events_url":"https://api.github.com/repos/appium/appium/issues/6362/events","html_url":"https://github.com/appium/appium/issues/6362","id":145134665,"number":6362,"title":"[APPIUM-1.5.1] \"Android bootstrap socket crashed\"","user":{"login":"zqy2084","id":6858115,"avatar_url":"https://avatars.githubusercontent.com/u/6858115?v=3","gravatar_id":"","url":"https://api.github.com/users/zqy2084","html_url":"https://github.com/zqy2084","followers_url":"https://api.github.com/users/zqy2084/followers","following_url":"https://api.github.com/users/zqy2084/following{/other_user}","gists_url":"https://api.github.com/users/zqy2084/gists{/gist_id}","starred_url":"https://api.github.com/users/zqy2084/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zqy2084/subscriptions","organizations_url":"https://api.github.com/users/zqy2084/orgs","repos_url":"https://api.github.com/users/zqy2084/repos","events_url":"https://api.github.com/users/zqy2084/events{/privacy}","received_events_url":"https://api.github.com/users/zqy2084/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/appium/appium/labels/NeedsTriage","name":"NeedsTriage","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2016-04-01T09:39:14Z","updated_at":"2016-04-05T02:22:10Z","closed_at":null,"body":"## The problem\r\n\r\nWhile running 2 appium instances in parallely, a random error happens in one of the appium server frequently.\r\n\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"dumpsys\",\"window\"]\r\n[AndroidDriver] Screen already unlocked, doing nothing\r\n[debug] [AndroidBootstrap] Watching for bootstrap disconnect\r\n[debug] [ADB] Forwarding system: 36734 to device: 4724\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"forward\",\"tcp:36734\",\"tcp:4724\"]\r\n[debug] [UiAutomator] Starting UiAutomator\r\n[debug] [UiAutomator] Moving to state 'starting'\r\n[debug] [UiAutomator] Parsing uiautomator jar\r\n[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"push\",\"/home/jeff/Downloads/node-v4.3.1-linux-x64/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar\",\"/data/local/tmp/\"]\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"forward\",\"tcp:36734\",\"tcp:4724\"]\r\n[debug] [ADB] Attempting to kill all uiautomator processes\r\n[debug] [ADB] Getting all processes with uiautomator\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"ps\",\"uiautomator\"]\r\n[ADB] No uiautomator process found to kill, continuing...\r\n[debug] [UiAutomator] Starting UIAutomator\r\n[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, emulator-5554, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, com.android.browser, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false\r\n[debug] [UiAutomator] Moving to state 'online'\r\n[AndroidBootstrap] [BOOTSTRAP LOG] [debug] Loading json...\r\nError: Android bootstrap socket crashed: Error: connect ECONNREFUSED 127.0.0.1:36734\r\n    at Socket.<anonymous> (lib/bootstrap.js:87:21)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at emitErrorNT (net.js:1255:8)\r\n    at nextTickCallbackWith2Args (node.js:437:9)\r\n    at process._tickCallback (node.js:351:17)\r\n\r\n## Environment\r\n\r\n* Appium version (or git revision) that exhibits the issue: 1.5.1\r\n* Last Appium version that did not exhibit the issue (if applicable): 1.5.0\r\n* Desktop OS/version used to run Appium: debian 8.3\r\n* Node.js version (unless using Appium.app|exe):v4.3.1\r\n* Mobile platform/version under test:andoid 5.1\r\n* Real device or emulator/simulator: emulator\r\n* Appium CLI or Appium.app|exe:\r\n\r\n## Details\r\n\r\nDescribe in more detail the problem you have been experiencing, if necessary.\r\n\r\n\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/appium/appium/issues/comments/205601764","html_url":"https://github.com/appium/appium/issues/6362#issuecomment-205601764","issue_url":"https://api.github.com/repos/appium/appium/issues/6362","id":205601764,"user":{"login":"zqy2084","id":6858115,"avatar_url":"https://avatars.githubusercontent.com/u/6858115?v=3","gravatar_id":"","url":"https://api.github.com/users/zqy2084","html_url":"https://github.com/zqy2084","followers_url":"https://api.github.com/users/zqy2084/followers","following_url":"https://api.github.com/users/zqy2084/following{/other_user}","gists_url":"https://api.github.com/users/zqy2084/gists{/gist_id}","starred_url":"https://api.github.com/users/zqy2084/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/zqy2084/subscriptions","organizations_url":"https://api.github.com/users/zqy2084/orgs","repos_url":"https://api.github.com/users/zqy2084/repos","events_url":"https://api.github.com/users/zqy2084/events{/privacy}","received_events_url":"https://api.github.com/users/zqy2084/received_events","type":"User","site_admin":false},"created_at":"2016-04-05T02:22:10Z","updated_at":"2016-04-05T02:22:10Z","body":"[Appium] Welcome to Appium v1.5.1\r\n[Appium] Non-default server args:\r\n[Appium]   port: 59504\r\n[Appium]   bootstrapPort: 48074\r\n[Appium]   chromeDriverPort: 50613\r\n[Appium]   defaultCommandTimeout: 300\r\n[Appium]   defaultCapabilities: { avd: 'avd5.1' }\r\n[Appium] Default capabilities, which will be added to each request unless overridden by desired capabilities:\r\n[Appium]   avd: 'avd5.1'\r\n[Appium] Appium REST http interface listener started on 0.0.0.0:59504\r\n[HTTP] --> POST /wd/hub/session {\"desiredCapabilities\":{\"platformVersion\":\"5.1\",\"deviceName\":\"Android Emulator\",\"browserName\":\"Browser\",\"platformName\":\"Android\"}}\r\n[MJSONWP] Calling AppiumDriver.createSession() with args: [{\"platformVersion\":\"5.1\",\"deviceName\":\"Android Emulator\",\"browserName\":\"Browser\",\"platformName\":\"Android\"},null,null,null]\r\n[Appium] Creating new AndroidDriver session\r\n[Appium] Capabilities:\r\n[Appium]   platformVersion: '5.1'\r\n[Appium]   deviceName: 'Android Emulator'\r\n[Appium]   browserName: 'Browser'\r\n[Appium]   platformName: 'Android'\r\n[Appium]   avd: 'avd5.1'\r\n[BaseDriver] Session created with session id: 3abb59fa-85fe-4174-bb4f-6801113a5630\r\n[debug] [AndroidDriver] Getting Java version\r\n[AndroidDriver] Java version is: 1.7.0_95\r\n[AndroidDriver] We're going to run a Chrome-based session\r\n[AndroidDriver] Chrome-type package and activity are com.android.browser and com.android.browser.BrowserActivity\r\n[ADB] Checking whether adb is present\r\n[ADB] Using adb from /opt/installations/android-sdk-linux/platform-tools/adb\r\n[debug] [ADB] Trying to find avd5.1 emulator\r\n[debug] [ADB] Getting connected emulators\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] 2 emulator(s) connected\r\n[debug] [ADB] Sending telnet command to device: avd name\r\n[debug] [ADB] Getting running emulator port\r\n[debug] [ADB] Socket connection to device created\r\n[debug] [ADB] Socket connection to device ready\r\n[debug] [ADB] Telnet command got response: avd5.1_new\r\n[debug] [ADB] Sending telnet command to device: avd name\r\n[debug] [ADB] Getting running emulator port\r\n[debug] [ADB] Socket connection to device created\r\n[debug] [ADB] Socket connection to device ready\r\n[debug] [ADB] Telnet command got response: avd5.1\r\n[debug] [ADB] Found emulator avd5.1 in port 5554\r\n[debug] [ADB] Setting device id to emulator-5554\r\n[debug] [AndroidDriver] Not launching AVD because it is already running.\r\n[AndroidDriver] Using device: emulator-5554\r\n[ADB] Checking whether adb is present\r\n[ADB] Using adb from /opt/installations/android-sdk-linux/platform-tools/adb\r\n[debug] [ADB] Setting device id to emulator-5554\r\n[AndroidDriver] App file was not listed, instead we're going to run com.android.browser directly on the device\r\n[debug] [AndroidDriver] Checking whether package is present on the device\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"pm\",\"list\",\"packages\",\"com.android.browser\"]\r\n[AndroidDriver] Starting Android session\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"wait-for-device\"]\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"echo\",\"ping\"]\r\n[debug] [Logcat] Starting logcat capture\r\n[debug] [AndroidDriver] Pushing settings apk to device...\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"install\",\"/home/jeff/Downloads/node-v4.3.1-linux-x64/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/io.appium.settings/bin/settings_apk-debug.apk\"]\r\n[debug] [AndroidDriver] Pushing unlock helper app to device...\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"install\",\"/home/jeff/Downloads/node-v4.3.1-linux-x64/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-unlock/bin/unlock_apk-debug.apk\"]\r\n[ADB] Getting device platform version\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"getprop\",\"ro.build.version.release\"]\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"dumpsys\",\"window\"]\r\n[AndroidDriver] Screen already unlocked, doing nothing\r\n[debug] [AndroidBootstrap] Watching for bootstrap disconnect\r\n[debug] [ADB] Forwarding system: 48074 to device: 4724\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"forward\",\"tcp:48074\",\"tcp:4724\"]\r\n[debug] [UiAutomator] Starting UiAutomator\r\n[debug] [UiAutomator] Moving to state 'starting'\r\n[debug] [UiAutomator] Parsing uiautomator jar\r\n[debug] [UiAutomator] Found jar name: 'AppiumBootstrap.jar'\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"push\",\"/home/jeff/Downloads/node-v4.3.1-linux-x64/lib/node_modules/appium/node_modules/appium-android-driver/node_modules/appium-android-bootstrap/bootstrap/bin/AppiumBootstrap.jar\",\"/data/local/tmp/\"]\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"forward\",\"tcp:48074\",\"tcp:4724\"]\r\n[debug] [ADB] Attempting to kill all uiautomator processes\r\n[debug] [ADB] Getting all processes with uiautomator\r\n[debug] [ADB] Getting connected devices...\r\n[debug] [ADB] 2 device(s) connected\r\n[debug] [ADB] Running /opt/installations/android-sdk-linux/platform-tools/adb with args: [\"-P\",5037,\"-s\",\"emulator-5554\",\"shell\",\"ps\",\"uiautomator\"]\r\n[ADB] No uiautomator process found to kill, continuing...\r\n[debug] [UiAutomator] Starting UIAutomator\r\n[debug] [ADB] Creating ADB subprocess with args: -P, 5037, -s, emulator-5554, shell, uiautomator, runtest, AppiumBootstrap.jar, -c, io.appium.android.bootstrap.Bootstrap, -e, pkg, com.android.browser, -e, disableAndroidWatchers, false, -e, acceptSslCerts, false\r\n[debug] [UiAutomator] Moving to state 'online'\r\nError: Android bootstrap socket crashed: Error: connect ECONNREFUSED 127.0.0.1:48074\r\n    at Socket.<anonymous> (lib/bootstrap.js:87:21)\r\n    at emitOne (events.js:77:13)\r\n    at Socket.emit (events.js:169:7)\r\n    at emitErrorNT (net.js:1255:8)\r\n    at nextTickCallbackWith2Args (node.js:437:9)\r\n    at process._tickCallback (node.js:351:17)\r\n\r\n@saikrishna321 This is the full log from the failed appium server."}}