Having trouble starting Jenkins: “java.io.FileNotFoundException: /usr/share/java/jenkins/war/META-INF/MANIFEST.MF (No such file or directory)”

前端 未结 8 1095
栀梦
栀梦 2021-01-14 08:01

I just downloaded the Jenkins WAR, version 1.651.1. I’m trying to set it up on my Amazon Linux box. I’m running Java 1.7. I moved the WAR into its own directory, /usr/sha

8条回答
  •  日久生厌
    2021-01-14 08:58

    Probably the userid that you are using is not the owner of JENKINS_HOME.

    This has happened to me on Vagrant, when trying to use the jenkins user on a JENKINS_HOME owned by vagrant. jenkins did have write permissions to on JENKINS_HOME, but it is not enough: it has to be the owner.

    I learned this because when I tried sudo -u jenkins touch file-in-jenkins-home I got touch: setting times (...): Operation not permitted. And then I found https://unix.stackexchange.com/questions/64848/cannot-touch-m-a-writable-file

提交回复
热议问题