David Francoeur edited a comment on Bug JENKINS-27456

I am having the exact same issue. It used to work once in a while, but now it just doesn't work. The adb will try to connect forever until the build times out.

The only I can get it to work is by connecting to the CI server, killing all instance of the adb

killall adb

The next adb connect will start the daemon and successfully connect to it.


Android emulator plugin version : 	2.13
Jenkins version                 :       1.609

Emulator using arm-android-22 image with default hardware.
[android] Using Android SDK: /var/lib/jenkins/android-sdk
$ /var/lib/jenkins/android-sdk/platform-tools/adb start-server
* daemon not running. starting it now on port 6607 *
* daemon started successfully *
$ /var/lib/jenkins/android-sdk/platform-tools/adb start-server
[android] Starting Android emulator
$ /var/lib/jenkins/android-sdk/tools/emulator -no-boot-anim -ports 6605,6606 -avd android-22-arm -no-snapshot-load -no-snapshot-save -no-window
Failed to open lib64EGL_translator
Failed to init_egl_dispatch
emulator: ERROR: OpenGLES initialization failed!
emulator: ERROR: OpenGLES emulation library could not be initialized!
emulator: WARNING: Could not initialize OpenglES emulation, using software renderer.
emulator: warning: opening audio output failed

$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
connected to localhost:6606
[android] Waiting for emulator to finish booting...
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb disconnect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb disconnect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb disconnect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device offline
$ /var/lib/jenkins/android-sdk/platform-tools/adb disconnect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606 
/// ISSUED A killall adb RIGHT HERE
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
error: device not found
$ /var/lib/jenkins/android-sdk/platform-tools/adb connect localhost:6606
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 shell getprop init.svc.bootanim
$ /var/lib/jenkins/android-sdk/platform-tools/adb -s localhost:6606 logcat -v time
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jenkinsci-issues+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to