title: Gerrit: Start FAILED, no logs
body: <p>Fedora 27 with openjdk 1.8.0 and Gerrit 2.14.7.</p>
  
  <p>This is what I get:</p>
  
  <pre><code>gerrit_testsite/bin/gerrit.sh start
  Starting Gerrit Code Review: FAILED
  </code></pre>
  
  <p>The logs are empty. There is a <code>gerrit.pid</code> file; the corresponding process is running:</p>
  
  <pre><code>GerritCodeReview -jar /home/gerrit2/gerrit_testsite/bin/gerrit.war daemon -d /home/gerrit2/gerrit_testsite --run-id=1521606266.3474
  </code></pre>
  
  <p>But nothing listens at the configured port 8080.</p>
  
  <p>When I add the -x option, I can see the gerrit.sh script is timing out waiting for a <code>gerrit.run</code> file to appear - which doesn't happen.</p>
  
  <p>I tried increasing the timeout to 600 seconds.</p>
  
  <p>I tried <code>gerrit.sh run</code>. This does create an error log with two warnings:</p>
  
  <pre><code>[main] WARN  com.google.gerrit.sshd.SshDaemon : Cannot format SSHD host key [EdDSA]: invalid key type
  [main] WARN  com.google.gerrit.server.config.GitwebCgiConfig : gitweb not installed (no /usr/lib/cgi-bin/gitweb.cgi found)
  </code></pre>
  
  <p>Again, nothing listens on 8080.</p>
  
  <p>I believe that I was able to run Gerrit for the very first time. I had to change the canonicalWebUrl parameter, restarted Gerrit and have had the problem ever since. I removed my gerrit_testsite directory and reinitialized it, but starting it up keeps failing.</p>
  
  <p>What is the SSHD key warning about? Do I need gitweb? Where else to look?</p>
  
  <p><strong>EDIT</strong>: I restarted from a fresh Fedora installation. Then:</p>
  
  <pre><code>$ java -jar gerrit.war init -d ~/review-site
  ....
  Initialized /home/gerrit2/review-site
  Executing /home/gerrit2/review-site/bin/gerrit.sh start
  Starting Gerrit Code Review: FAILED
  error: cannot start Gerrit: exit status 1
  Waiting for server on 192.168.1.201:8080 ... OK
  Opening http://192.168.1.201:8080/#/admin/projects/ ...FAILED
  Open Gerrit with a JavaScript capable browser:
    http://192.168.1.201:8080/#/admin/projects/
  </code></pre>
  
  <p>In spite of the FAILED message, I do find a <code>gerrit.run</code> file in the logs directory. <code>error_log</code> contains the same two warnings as earlier. The GerritCodeReview process listens on port 8080, and I have access via web browser. For now, life is good, but I wonder what happens when I have to restart Gerrit.</p>
  
  <p><strong>EDIT2</strong>: Yes, as I feared, after <code>gerrit.sh restart</code>, not only do I get FAILED, but nothing listens on the web port 8080 nor on the SSH port 29418.</p>
  
  <p><strong>EDIT3</strong>: In summary, to me it looks like I can successfully start Gerrit on an entirely new OS, but as soon as I restart it, something makes it either wait for an event that never happens, or crash before writing to the log. </p>