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

config history should provide helpful error when it can't create history

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      Some of the directories in jenkins/config-history/jobs were owned by a user other than the jenkins user, which resulted in this error:

       java.lang.RuntimeException: Could not create rootDir /var/lib/jenkins/.jenkins/config-history/jobs/JOBNAME/2019-10-16_18-41-10
               at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryDir(FileHistoryDao.java:262)
               at hudson.plugins.jobConfigHistory.FileHistoryDao.getRootDir(FileHistoryDao.java:151)
               at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryEntry(FileHistoryDao.java:585)
               at hudson.plugins.jobConfigHistory.FileHistoryDao.createNewHistoryEntryAndCopyConfig(FileHistoryDao.java:284)
               at hudson.plugins.jobConfigHistory.FileHistoryDao.saveItem(FileHistoryDao.java:296)
               at hudson.plugins.jobConfigHistory.JobConfigHistorySaveableListener.onChange(JobConfigHistorySaveableListener.java:58)
               at hudson.model.listeners.SaveableListener.fireOnChange(SaveableListener.java:81)
               at hudson.model.AbstractItem.save(AbstractItem.java:609)
               at hudson.model.Job.save(Job.java:190)
               at hudson.model.AbstractProject.save(AbstractProject.java:289)
               at hudson.BulkChange.commit(BulkChange.java:98)
               at hudson.model.Job.doConfigSubmit(Job.java:1347)
               at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:770)
               at java.lang.invoke.MethodHandle.invokeWithArguments(MethodHandle.java:627)
       

       

      It isn't helpful.

      Personally, I'd like to get reports about directories like this as a single line item in the Monitor section leading to a table listing directories w/ improper permissions.

        Attachments

          Activity

          Hide
          stefanbrausch Stefan Brausch added a comment -

          Available now in version 2.25

          Show
          stefanbrausch Stefan Brausch added a comment - Available now in version 2.25

            People

            Assignee:
            stefanbrausch Stefan Brausch
            Reporter:
            jsoref Josh Soref
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: