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

This issue is archived. You can view it, but you can't modify it. Learn more

XMLWordPrintable

      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.

            Assignee:
            Stefan Brausch
            Reporter:
            Josh Soref
            Archiver:
            Jenkins Service Account

              Created:
              Updated:
              Resolved:
              Archived: