I did try ps -ax and it didn't hang for me.
I tried jack-diagnose and this is really mysterious. When I try $ ./jack-diagnose for the first time, it exists with no output on the shell. Then, I did $ ./jack-admin start-server and as described earlier, it hangs me for few minutes (300 seconds to be precise, this time I put log in the jack-admin and it times out everytime) and then it throws the error *Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log* Now, if I again do $ ./jack-diagnose it gives me the following output on the screen error: process ID list syntax error Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). Port 8077 is used by another process (pid=), please ensure to free the port or change port configuration in '/srv/jenkins/.jack-settings' and '/srv/jenkins/.jack-server/config.properties' error: process ID list syntax error Usage: ps [options] Try 'ps --help <simple|list|output|threads|misc|all>' or 'ps --help <s|l|o|t|m|a>' for additional help text. For more details see ps(1). Port 8076 is used by another process (pid=), please ensure to free the port or change port configuration in '/srv/jenkins/.jack-settings' and '/srv/jenkins/.jack-server/config.properties' Now, if the server failed to start, then how it occupied the ports 8076 and 8077? Secondly, I put logs in the jack-admin code and I am getting curl code 7, until the timeout. On Thursday, August 10, 2017 at 9:58:58 PM UTC+5:30, Naveen Chaudhary 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 [email protected]) > 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 [email protected] To unsubscribe from this group, send email to [email protected] 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 [email protected]. For more options, visit https://groups.google.com/d/optout.
