We have been running into an issue where we are losing portions of our global config. It appears that it might be tied to when global config changes are saved, but periodically our build start failing and when we investigate, we find that our configuration is not in the state we expect it to.

      We have noticed the following config changes:

      • JDK Install from java.sun.com version gets changed from what we. (7u5 -> 8u20)
      • Custom tool installers are removed. For example, we have a custom tool for housing our custom ant tasks. The installer is just a zip extract, but the installer is removed from the config (see diff below).

      After noticing this happened, I performed a diff of the Jenkins config files and our back. Some relevant portions of the diff and the munged configs are attached.

      Edit: Forgot some details...

      • We have Jenkins installed on Ubuntu via apt-get and started via 'service jenkins start'.
      • I did not find any errors in the log (which is attached). After we noticed that the config had been changed, I looked at the config.xml's last modified time and noted it was last changed on September 9th at 10:27 am.

          [JENKINS-24645] Portions of config go missing

          Oleg Nenashev added a comment - - edited

          Have you seen notifications about "Old data" on ${JENKINS_URL}/manage page?

          Most probably, the issue is related to the core update.
          "hudson.tools.ZipExtractionInstaller" comes from the core, but there was no changes in it for about 10 months

          Oleg Nenashev added a comment - - edited Have you seen notifications about "Old data" on ${JENKINS_URL}/manage page? Most probably, the issue is related to the core update. "hudson.tools.ZipExtractionInstaller" comes from the core, but there was no changes in it for about 10 months

          Chris Suich added a comment -

          There is nothing in /manage and I haven't ever seen anything there.

          This is a relatively new instance - this setup was fresh installed 2-3 months ago.

          Chris Suich added a comment - There is nothing in /manage and I haven't ever seen anything there. This is a relatively new instance - this setup was fresh installed 2-3 months ago.

          Oleg Nenashev added a comment -

          Do you have the Config History Plugin on your installation?
          If yes, please check what user has changed the configuration of config.xml and com.cloudbees.jenkins.plugins.customtools.CustomTool.xml.

          The second file seems to be somehow related to the issue.
          It would be also great if you could provide jenkins.log for 10:27 am (the current log ends t 10:18 am)

          Oleg Nenashev added a comment - Do you have the Config History Plugin on your installation? If yes, please check what user has changed the configuration of config.xml and com.cloudbees.jenkins.plugins.customtools.CustomTool.xml. The second file seems to be somehow related to the issue. It would be also great if you could provide jenkins.log for 10:27 am (the current log ends t 10:18 am)

          Daniel Beck added a comment -

          Another issue is that the JS used by Jenkins config forms often breaks form entries when reloading the form (Ctrl-R, F5, ...) or saving, then navigating back, then saving again. That is tracked elsewhere already. Make sure to never use back button or browser web page reload on config forms.

          Daniel Beck added a comment - Another issue is that the JS used by Jenkins config forms often breaks form entries when reloading the form (Ctrl-R, F5, ...) or saving, then navigating back, then saving again. That is tracked elsewhere already. Make sure to never use back button or browser web page reload on config forms.

          Chris Suich added a comment -

          @Oleg - We have been using ThinBackup for backing up the configs. I just installed the JobConfigHistory plugin and will look at what it says when this happens next.

          @Daniel - I'll keep this in mind and communicate it to my team. I'll also play around and see if I can reliably reproduce this issue by refreshing the config page.

          Chris Suich added a comment - @Oleg - We have been using ThinBackup for backing up the configs. I just installed the JobConfigHistory plugin and will look at what it says when this happens next. @Daniel - I'll keep this in mind and communicate it to my team. I'll also play around and see if I can reliably reproduce this issue by refreshing the config page.

          Oleg Nenashev added a comment -

          @Chris,
          Any updates?

          Oleg Nenashev added a comment - @Chris, Any updates?

          Chris Suich added a comment -

          Hey @Oleg - sorry for the quiet period.

          We haven't encountered the issue since I filed this bug.

          If you'd like, I can close the issue and re-open it if we run into it again.

          Chris Suich added a comment - Hey @Oleg - sorry for the quiet period. We haven't encountered the issue since I filed this bug. If you'd like, I can close the issue and re-open it if we run into it again.

          Oleg Nenashev added a comment -

          OK, please re-open it if you hit it again.
          In any case, job-config-history will save you much time if it appears.

          Oleg Nenashev added a comment - OK, please re-open it if you hit it again. In any case, job-config-history will save you much time if it appears.

            oleg_nenashev Oleg Nenashev
            csuich2 Chris Suich
            Votes:
            1 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: