Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-25025

Jenkins doesn't start: Exception in thread "main" java.io.FileNotFoundException: /tmp/winstonexxxxxx.jar (Permission denied)

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Blocker Blocker
    • core

      When I type the command:
      "sudo service jenkins start"

      Jenkins doesn't start.
      In the log file (/var/log/jenkins) I found this message:

      "Exception in thread "main" java.io.FileNotFoundException: /tmp/winstonexxxxxx.jar (Permission denied)"

          [JENKINS-25025] Jenkins doesn't start: Exception in thread "main" java.io.FileNotFoundException: /tmp/winstonexxxxxx.jar (Permission denied)

          Daniel Beck added a comment -

          When did you install Jenkins? How did you install it? Did it ever work? If so, what changed? If not, why are you only now installing an old version like 1.552? What are the permissions of /tmp and /tmp/winstonexxxxxx.jar?

          Daniel Beck added a comment - When did you install Jenkins? How did you install it? Did it ever work? If so, what changed? If not, why are you only now installing an old version like 1.552? What are the permissions of /tmp and /tmp/winstonexxxxxx.jar?

          I installed Jenkins on 10/13/2013
          I installed it by tiping: "sudo apt-get install jenkins"
          It works until 09/29/2014 (see the attached log file)
          I don't know what is changed
          The permissions are:

          drwxrwxrwt 7 root root 4096 ott 7 16:17 tmp
          r------- 1 jenkins www-data 0 ott 7 15:54 winstone4605839674230427366.jar

          Marcello Fregni added a comment - I installed Jenkins on 10/13/2013 I installed it by tiping: "sudo apt-get install jenkins" It works until 09/29/2014 (see the attached log file) I don't know what is changed The permissions are: drwxrwxrwt 7 root root 4096 ott 7 16:17 tmp r ------- 1 jenkins www-data 0 ott 7 15:54 winstone4605839674230427366.jar

          Daniel Beck added a comment -

          Check contents of /etc/defaults/jenkins for 'UMASK'. Make sure it's set to a sane value (or empty, so it inherits the default).

          Daniel Beck added a comment - Check contents of /etc/defaults/jenkins for 'UMASK'. Make sure it's set to a sane value (or empty, so it inherits the default).

          I've got this:

          1. set the umask to control permission bits of files that Jenkins creates.
          2. 027 makes files read-only for group and inaccessible for others. comment this out to inherit setting
          3. (as of Ubuntu 12.04, by default umask comes from pam_umask(8) and /etc/login.defs
            UMASK=277

          Marcello Fregni added a comment - I've got this: set the umask to control permission bits of files that Jenkins creates. 027 makes files read-only for group and inaccessible for others. comment this out to inherit setting (as of Ubuntu 12.04, by default umask comes from pam_umask(8) and /etc/login.defs UMASK=277

          I suppose what the winstone4605839674230427366.jar is created when the "sudo service jenkins start" is performed.
          But I can't understand why it has only read permission from the owner.

          Marcello Fregni added a comment - I suppose what the winstone4605839674230427366.jar is created when the "sudo service jenkins start" is performed. But I can't understand why it has only read permission from the owner.

          Daniel Beck added a comment -

          UMASK 277 specifies to grant owner no write permissions, and to grant no permissions to group/others. So there's no surprise things break horribly. The default is 027, so assuming this is something you configured like this.

          Daniel Beck added a comment - UMASK 277 specifies to grant owner no write permissions, and to grant no permissions to group/others. So there's no surprise things break horribly. The default is 027, so assuming this is something you configured like this.

          GREAT!
          Jenkins Continuous Integration Server is running with the pid 3158

          THK!

          Marcello Fregni added a comment - GREAT! Jenkins Continuous Integration Server is running with the pid 3158 THK!

            marcenkins Marcello Fregni
            marcenkins Marcello Fregni
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: