Jenkins does not start on macOS 10.12 (Sierra)

前端 未结 9 1746
既然无缘
既然无缘 2021-02-01 19:16

After upgrading my macOS to Sierra, when I start Jenkins using launchctl load I cannot connect to localhost:8080. If I call launchctl load again, I see response \"service alread

相关标签:
9条回答
  • 2021-02-01 19:44

    This happened to me when I upgraded to Sierra and I managed to solve it with the answer from @mac.slusarek . But it happened again recently. This time I had allowed a minor update of the OS and I had also been playing around with SDK Man to switch JDK's. Not sure which one broke my Jenkins but this time around it was not a permissions issue.

    I noticed from the logs Jenkins was trying to run on Java 9-ea, which is apparently not supported yet. I had installed Jenkins using the Jenkins installer for Mac, so tried uninstalling:

    /Library/Application\ Support/Jenkins/Uninstall.command
    

    and installing again but the issue didn't go away.

    Then I found this article suggesting to instead install it using Homebrew. It was as easy as running:

    $brew install jenkins
    

    Since I only run it locally for development I don't need to start it as a daemon, so now I just run it by typing

    $jenkins
    

    Problem solved. I hope this helps others.

    0 讨论(0)
  • 2021-02-01 19:44

    I had the same problem.

    I manually enabled the read + write access to the

    /Users/Shared/Jenkins 
    

    Folder.

    0 讨论(0)
  • 2021-02-01 19:46

    As I mentioned in the question, I had JRE installed. After I installed JDK, Jenkins is able to start normally.

    0 讨论(0)
提交回复
热议问题