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

hitting limit of 32000 subdirectories, cannot write history

      Recently, our log is full of the following exceptions, sometimes occurring several times a second:

      Feb 28, 2013 10:46:14 AM hudson.plugins.jobConfigHistory.ConfigHistoryListenerHelper createNewHistoryEntry
      SEVERE: Unable to create history entry for configuration file: /var/lib/jenkins/config.xml
      java.lang.RuntimeException: Could not create rootDir /var/lib/jenkins/config-history/config/2013-02-28_10-46-14
              at hudson.plugins.jobConfigHistory.ConfigHistoryListenerHelper.getRootDir(ConfigHistoryListenerHelper.java:87)
              at hudson.plugins.jobConfigHistory.ConfigHistoryListenerHelper.createNewHistoryEntry(ConfigHistoryListenerHelper.java:101)
      

      This is due to the limit of 32.000 subdirectories in ext3. Our /var/lib/jenkins/config-history/config/ directory contains 31.999 entries at the moment.

      One solution would be to use some kind of sub sub directory layout, for example split off the hour, minute second part into sub directories:
      Instead of
      2013-02-28_10-46-14
      use
      14/46/10/2013-02-28_10-46-14

      Or something like that.

            kstutz Kathi Stutz
            marc_guenther Marc Günther
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: