title: FAILED: setup-jack-server when building LineageOS
body: <p>I'm attempting to build LineageOS for the Moto Z (griffin) on a server, but the build crashes and burns 5 minutes out the gate. </p>
  
  <pre><code>FAILED: setup-jack-server 
  /bin/bash -c "(prebuilts/sdk/tools/jack-admin install-server prebuilts/sdk/tools/jack-launcher.jar prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar  2&gt;&amp;1 || (exit 0) ) &amp;&amp; (JACK_SERVER_VM_ARGUMENTS=\"-Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx16G\" prebuilts/sdk/tools/jack-admin start-server 2&gt;&amp;1 || exit 0 ) &amp;&amp; (prebuilts/sdk/tools/jack-admin update server prebuilts/sdk/tools/jack-server-4.11.ALPHA.jar 4.11.ALPHA 2&gt;&amp;1 || exit 0 ) &amp;&amp; (prebuilts/sdk/tools/jack-admin update jack prebuilts/sdk/tools/jacks/jack-4.32.CANDIDATE.jar 4.32.CANDIDATE || exit 47 )"
  Jack server already installed in "/home/dablord/.jack-server"
  Launching Jack server java -XX:MaxJavaStackTraceDepth=-1 -Djava.io.tmpdir=/tmp -Dfile.encoding=UTF-8 -XX:+TieredCompilation -Xmx16G -cp /home/dablord/.jack-server/launcher.jar com.android.jack.launcher.ServerLauncher
  Jack server failed to (re)start, try 'jack-diagnose' or see Jack server log
  No Jack server running. Try 'jack-admin start-server'
  No Jack server running. Try 'jack-admin start-server'
  [  3% 911/25667] //art/compiler:libart-compiler clang++ optimizing/instruction_builder.cc [linux x86]
  ninja: build stopped: subcommand failed.
  07:02:53 ninja failed with: exit status 1
  </code></pre>
  
  <p>The server is set up for personal use. It has 24GB RAM and 300GB of available storage. I also set up a 20GB swap file in case the Jack server somehow needed more.</p>
  
  <p>The Jack log file reports the follwing:</p>
  
  <pre><code>07:29:02.699: INFO: com.android.jack.server.JackHttpServer: Loading config of jack server version: 1.3-a11 '1.3' (402300 704631c4e9bbfb4e8b052365140f79974b9f4cf4 by android-jack-team@google.com)                                            
  07:29:02.747: INFO: com.android.jack.server.JackHttpServer: Starting service connection server on /127.0.0.1:8076
  07:29:02.754: SEVERE: com.android.jack.launcher.ServerLauncher: Server 1 Exception
  com.android.jack.server.api.v01.ServerException: Problem while opening service port
          at com.android.jack.server.JackHttpServer.start(JackHttpServer.java:785)
          at com.android.jack.server.JackServerImpl.run(JackServerImpl.java:67)
          at com.android.jack.launcher.ServerLauncher$3.run(ServerLauncher.java:392)
          at java.lang.Thread.run(Thread.java:748)
  Caused by: java.net.BindException: Address already in use
          at sun.nio.ch.Net.bind0(Native Method)
          at sun.nio.ch.Net.bind(Net.java:433)
          at sun.nio.ch.Net.bind(Net.java:425)
          at sun.nio.ch.ServerSocketChannelImpl.bind(ServerSocketChannelImpl.java:223)
          at sun.nio.ch.ServerSocketAdaptor.bind(ServerSocketAdaptor.java:74)
          at com.android.jack.server.ServerParameters.openSocket(ServerParameters.java:88)
          at com.android.jack.server.ServerParameters.getServiceSocket(ServerParameters.java:67)
          at com.android.jack.server.JackHttpServer.start(JackHttpServer.java:779)
          ... 3 more
  </code></pre>
  
  <p>I've attempted to change the port # in the jack config files, reinstalling jack, resyncing the repo, all to no avail.</p>