Have you tried jack-diagnose?

We've seen problems on our build servers where a java process gets
stuck in the kernel in a way that causes all future calls to ps -ax to
hang.  The jack startup tries to run ps, so the visible symptom is
jack failures.  Try running ps -ax, and if that hangs, reboot to clear
the stuck process.

On Thu, Aug 10, 2017 at 2:46 AM, Naveen Chaudhary
<android.develope...@gmail.com> wrote:
> I am getting the following jack-server error :
>
>     15:46:17 [ 16% 8051/47793] Ensure Jack server is installed and started
>     15:46:17 FAILED: /bin/bash -c "(prebuilts/sdk/tools/jack-admin
> install-server prebuilts/sdk/tools/jack-launcher.jar
> prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar  2>&1 || (exit 0) ) &&
> (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation\"
> prebuilts/sdk/tools/jack-admin start-server 2>&1 || exit 0 ) &&
> (prebuilts/sdk/tools/jack-admin update server
> prebuilts/sdk/tools/jack-server-4.8.ALPHA.jar 4.8.ALPHA 2>&1 || exit 0 ) &&
> (prebuilts/sdk/tools/jack-admin update jack
> prebuilts/sdk/tools/jacks/jack-2.28.RELEASE.jar 2.28.RELEASE || exit 47;
> prebuilts/sdk/tools/jack-admin update jack
> prebuilts/sdk/tools/jacks/jack-3.36.CANDIDATE.jar 3.36.CANDIDATE || exit 47;
> prebuilts/sdk/tools/jack-admin update jack
> prebuilts/sdk/tools/jacks/jack-4.7.BETA.jar 4.7.BETA || exit 47 )"
>     15:46:17 Jack server already installed in "/srv/jenkins/.jack-server"
>     15:46:17 Launching Jack server java -XX:MaxJavaStackTraceDepth=-1
> -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp
> /srv/jenkins/.jack-server/launcher.jar
> com.android.jack.launcher.ServerLauncher
>     15:46:17 Jack server failed to (re)start, try 'jack-diagnose' or see
> Jack server log
>     15:46:17 No Jack server running. Try 'jack-admin start-server'
>     15:46:17 No Jack server running. Try 'jack-admin start-server'
>
> In the `~/.jack-server/logs/*`, I am not getting any error, its all clean. I
> tried starting the server manually using `jack-admin start-server`, it hangs
> for a while (2-3 minutes) with the following line on screen :
>
>     Launching Jack server java -XX:MaxJavaStackTraceDepth=-1
> -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -cp
> /srv/jenkins/.jack-server/launcher.jar
> com.android.jack.launcher.ServerLauncher
>
> and then fails with the same error as above. I tried re-installing and
> re-starting the server, still same error. I searched the whole internet but
> none helped. This is my 7th day trying to fix this.I am almost exhausted, so
> any suggestion will be appreciated.
>
> In the `cat ~/.jack-server/logs/*`, I am getting only 4 lines :
>
>     02:26:19.589: INFO: com.android.jack.server.JackHttpServer: Starting
> jack server version: 1.3-a8 '1.3' (291201
> fcd657165d2fd6dcf1bf4c3002c9c8f75383e815 by android-jack-t...@google.com)
>     02:26:19.644: INFO: com.android.jack.server.JackHttpServer: Starting
> service connection server on /127.0.0.1:8076
>     02:26:19.651: INFO: com.android.jack.server.JackHttpServer: Starting
> admin connection on /127.0.0.1:8077
>     02:26:19.858: INFO: com.android.jack.server.JackHttpServer: Start timer
>
> --
> --
> You received this message because you are subscribed to the "Android
> Building" mailing list.
> To post to this group, send email to android-building@googlegroups.com
> To unsubscribe from this group, send email to
> android-building+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/android-building?hl=en
>
> ---
> You received this message because you are subscribed to the Google Groups
> "Android Building" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to android-building+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.

-- 
-- 
You received this message because you are subscribed to the "Android Building" 
mailing list.
To post to this group, send email to android-building@googlegroups.com
To unsubscribe from this group, send email to
android-building+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/android-building?hl=en

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

Reply via email to