Unhandled rejection Error: spawn adb ENOENT

1,686 views
Skip to first unread message

João Pedro

unread,
Mar 15, 2016, 8:56:06 AM3/15/16
to OpenSTF
When i try run the local command, this gets me this follow error :

Unhandled rejection Error: spawn adb ENOENT
    at exports._errnoException (util.js:849:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:178:32)
    at onErrorNT (internal/child_process.js:344:16)
    at doNTCallback2 (node.js:430:9)
    at process._tickCallback (node.js:344:17)

I already saw this issue posted on github, the aswer for that is if I got the adb properly installed in my system, and I double check that, I already set the environment variable for my sdk directory, because i saw that in another post related to this.
Any suggestions of what may be causing this error? 

Best Regards, João

Simo Kinnunen

unread,
Mar 15, 2016, 9:02:52 AM3/15/16
to João Pedro, OpenSTF
The stf docker image does not include adb, it requires that you already have ADB running and the containers configured properly to make it accessible to the stf image. This is because containers are not supposed to have multiple separate processes running inside of them. In the deployment guide at https://github.com/openstf/stf/blob/master/doc/DEPLOYMENT.md, connectivity is achieved by making both the adb image and the stf image use `--net host`, although there are other options as well. Host networking ensures minimal overhead, though, so it's not a bad choice.

The deployment guide works and has all the answers you seek. You may have to adjust some things but please just read it.



--
You received this message because you are subscribed to the Google Groups "OpenSTF" group.
To unsubscribe from this group and stop receiving emails from it, send an email to openstf+u...@googlegroups.com.
To post to this group, send email to ope...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/openstf/b49e92e4-1023-4100-b03b-30efa17b816b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages