{"action":"created","issue":{"url":"https://api.github.com/repos/openstf/stf/issues/376","repository_url":"https://api.github.com/repos/openstf/stf","labels_url":"https://api.github.com/repos/openstf/stf/issues/376/labels{/name}","comments_url":"https://api.github.com/repos/openstf/stf/issues/376/comments","events_url":"https://api.github.com/repos/openstf/stf/issues/376/events","html_url":"https://github.com/openstf/stf/issues/376","id":167777687,"number":376,"title":"Sometimes device disconnects, device worker dies with \"Error: read ECONNRESET\" in STF Provider log.","user":{"login":"rseek","id":12827469,"avatar_url":"https://avatars.githubusercontent.com/u/12827469?v=3","gravatar_id":"","url":"https://api.github.com/users/rseek","html_url":"https://github.com/rseek","followers_url":"https://api.github.com/users/rseek/followers","following_url":"https://api.github.com/users/rseek/following{/other_user}","gists_url":"https://api.github.com/users/rseek/gists{/gist_id}","starred_url":"https://api.github.com/users/rseek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rseek/subscriptions","organizations_url":"https://api.github.com/users/rseek/orgs","repos_url":"https://api.github.com/users/rseek/repos","events_url":"https://api.github.com/users/rseek/events{/privacy}","received_events_url":"https://api.github.com/users/rseek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2016-07-27T06:02:15Z","updated_at":"2016-07-27T06:03:45Z","closed_at":null,"body":"<!---\r\n\r\nIF YOU REMOVE THIS TEMPLATE WE WILL CLOSE YOUR ISSUE WITHOUT RESPONSE.\r\nJust read it. See the commonly asked questions and fill in the details we're asking, it saves so much of our time.\r\n\r\nHi there!\r\n\r\nPlease be sure to run `stf doctor` before submitting an issue. Please include screenshots, command output and log files if any.\r\n\r\n=== SUPER COMMON QUESTIONS ===\r\n\r\nQ. I'm having issues when multiple devices are connected.\r\nA. Usually caused by insufficient USB power supply or other hardware issue we can't do anything about.\r\n\r\nQ. Can I connect a device to STF over WIFI?\r\nA. Yes, with the `--allow-remote` option. However, ADB over WIFI can easily be 10x slower than USB, so don't expect too much.\r\n\r\nQ. How do I connect to my local STF from another computer?\r\nA. Try the `--public-ip` option or do a full deployment. See DEPLOYMENT.md in the doc folder.\r\n\r\nQ. Can I run STF on multiple machines?\r\nA. Yes, if you do a full deployment. See DEPLOYMENT.md in the doc folder.\r\n-->\r\n\r\n## What's the problem (or question)?\r\n<!--- If describing a bug, tell us what happens instead of the expected behavior -->\r\n<!--- If suggesting a change/improvement, explain the difference from current behavior -->\r\nHi there!\r\nSometimes during remote connection (adb connect) device just unexpectedly disconnects, and becomes \"Free\" in STF web-interface (and is fully operational), and in STF Provider log I see such error:\r\n```\r\nIMP/device:plugins:group 9702 [E9OKBC204913] Now owned by \"example@email.com\"\r\nINF/device:plugins:group 9702 [E9OKBC204913] Subscribing to group channel \"uaOSQl83TCyTLdCKZZBjgw==\"\r\nIMP/device:plugins:connect 9702 [E9OKBC204913] Remote Connect Started for device \"E9OKBC204913\" at \"10.154.18.75:7545\"\r\nINF/device:plugins:connect 9702 [E9OKBC204913] New remote ADB connection from ::ffff:10.54.25.49\r\nevents.js:141\r\n      throw er; // Unhandled 'error' event\r\n      ^\r\n\r\nError: read ECONNRESET\r\n    at exports._errnoException (util.js:849:11)\r\n    at TCP.onread (net.js:544:26)\r\nINF/provider 1 [*] Cleaning up device worker \"E9OKBC204913\"\r\nERR/provider 1 [*] Device worker \"E9OKBC204913\" died with code 1\r\nINF/provider 1 [*] Restarting device worker \"E9OKBC204913\"\r\n```\r\nIt happens with different devices and it's hard to reproduce.\r\n\r\n<!--- Provide unambiguous set of steps to reproduce this bug. Include code to reproduce, if relevant -->\r\n1. Get adb connect string from remoteConnect API method\r\n2. Connect device via adb connect string\r\n3. Run appium UI tests\r\n4. Wait\r\n \r\nIf I skip step 3 (Run appium tests) I can't reproduce the problem, but it seems appium itself has nothing to do with the problem, maybe pushing big files during tests cause the problem.\r\n\r\n### Environment:\r\n<!--- Include as many relevant details about the environment you experienced the bug in -->\r\n<!--- Are you using `stf local` or a [full deployment](doc/DEPLOYMENT.md): -->\r\n* **full deployment**\r\n\r\nSTF-Provider on desktop host with devices connected and all other STF services on virtual machine\r\n\r\n<!--- Version used (git hash or `stf -V`): -->\r\n* **v2.0.0-beta docker image** from docker hub\r\n\r\n<!--- Environment name and version (e.g. Chrome 39, node.js 5.4):  -->\r\n* **nodejs v4.1.2**\r\n\r\n<!--- Operating System and version:  -->\r\n* **ubuntu 14.04** on all nodes\r\n\r\nI will continue to experiment to find the specific conditions to reproduce the problem, but I want to ask for help in the investigation of this problem from error in the STF Provider log - it seems that something just unexpectedly drops some TCP connection (maybe ADB server?), and I don't know how to determine what TCP connection drops and what else can I do about it (maybe get some TCP dumps)\r\n\r\nThank you!"},"comment":{"url":"https://api.github.com/repos/openstf/stf/issues/comments/235494974","html_url":"https://github.com/openstf/stf/issues/376#issuecomment-235494974","issue_url":"https://api.github.com/repos/openstf/stf/issues/376","id":235494974,"user":{"login":"sorccu","id":32509,"avatar_url":"https://avatars.githubusercontent.com/u/32509?v=3","gravatar_id":"","url":"https://api.github.com/users/sorccu","html_url":"https://github.com/sorccu","followers_url":"https://api.github.com/users/sorccu/followers","following_url":"https://api.github.com/users/sorccu/following{/other_user}","gists_url":"https://api.github.com/users/sorccu/gists{/gist_id}","starred_url":"https://api.github.com/users/sorccu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sorccu/subscriptions","organizations_url":"https://api.github.com/users/sorccu/orgs","repos_url":"https://api.github.com/users/sorccu/repos","events_url":"https://api.github.com/users/sorccu/events{/privacy}","received_events_url":"https://api.github.com/users/sorccu/received_events","type":"User","site_admin":false},"created_at":"2016-07-27T06:03:45Z","updated_at":"2016-07-27T06:03:45Z","body":"Just sometimes or always?"}}
{"actor":{"display_login":"sorccu"}}