Jenkins does not start on macOS 10.12 (Sierra)

前端 未结 9 1748
既然无缘
既然无缘 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:26

    This same thing happened to me when I upgraded from Sierra to High Sierra. I followed the instructions outlined above by mac.slusarek, however the jenkins ID no longer existed on my computer. I created the jenkins id as a Standard user. Also, the files under /Users/Shared/Jenkins were no longer owned by jenkins. After I cat out the error log with the command:

    sudo cat /var/log/jenkins/jenkins.log
    

    After seeing the error:

    Exception in thread "main" java.io.IOException: Jenkins has failed to create a 
    temporary file in /Users/Shared/Jenkins/tmp
        at Main.extractFromJar(Main.java:368)
        at Main._main(Main.java:210)
        at Main.main(Main.java:112)
     Caused by: java.io.IOException: Permission denied
        at java.io.UnixFileSystem.createFileExclusively(Native Method)
        at java.io.File.createTempFile(File.java:2024)
        at Main.extractFromJar(Main.java:365)
        ... 2 more
    

    I fixed the ownership with the command:

    sudo chown -R jenkins /Users/Shared/Jenkins
    

提交回复
热议问题