title: Cannot start jenkins-lts on mac using homebrew
body: <p>I am trying to install/run jenkins on a mac machine using homebrew. This is what I did</p>
  <ol>
  <li><p><code>brew install jenkins-lts</code><br />
  On running this command. I see that jenkins-lts is installed and I see this message</p>
  <p>Note: When using launchctl the port will be 8080.<br />
  To have launchd start jenkins-lts now and restart at login:<br />
  brew services start jenkins-lts.<br />
  Or, if you don't want/need a background service you can just run:<br />
  jenkins-lts</p>
  </li>
  <li><p>If I run <code>jenkins-lts</code>, Jenkins starts at port 8080 successfully. I can reach it from the browser.</p>
  </li>
  <li><p>If I run <code>brew services start jenkins-lts</code> . I see the message
  Successfully started <code>jenkins-lts</code> (label:homebrew.mxcl.jenkins-lts)</p>
  <p>But I cannot reach the server on port 8080. I tried checking the status of the service</p>
  </li>
  <li><p>I tried checking the status of the service <code>brew services list</code></p>
  <pre><code> Name        Status  User     Plist  
  jenkins-lts unknown ec2-user /Users/ec2-user/Library/LaunchAgents/homebrew.mxcl.jenkins-lts.plist
  </code></pre>
  </li>
  </ol>
  <p>I see that status is unknown.</p>
  <ol start="5">
  <li><p>After a while I see that this service is not listed anymore in the <code>brew services list</code> command. If I try to start it again. I see this message</p>
  <p>/Users/ec2-user/Library/LaunchAgents/homebrew.mxcl.jenkins-lts.plist: service already loaded
  Error: Failure while executing; <code>/bin/launchctl bootstrap gui/501 /Users/ec2-user/Library/LaunchAgents/homebrew.mxcl.jenkins-lts.plist</code> exited
  with 37</p>
  </li>
  </ol>
  <p>Where can I find the jenkins logs and how to get it working.</p>