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

http 500 error thrown whilst saving a job configuration although the changes are actually persisted

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Fixed
    • Labels:
      None
    • Environment:
      Windows 2003 R2 32bit, Tomcat 6.0.20, JDK 1.6.0_20, Hudson 1.361, job configuration history plugin version 1.5
    • Similar Issues:

      Description

      when changing job configurations Hudson throws a lot HTTP 500 errors although going back to the job configuration page all the relevant changes are preserved.

      see an example below:
      15-Jun-2010 10:45:16 org.apache.catalina.core.ApplicationContext log
      SEVERE: Error while serving http://ci.example.com:8080/hudson/view/aTab/job/testA/configSubmit
      java.lang.reflect.InvocationTargetException
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
      at java.lang.reflect.Method.invoke(Method.java:597)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:235)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:116)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:57)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:75)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:181)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:30)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:525)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:441)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:123)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:717)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:94)
      at net.bull.javamelody.MonitoringFilter.doFilter(MonitoringFilter.java:368)
      at org.jvnet.hudson.plugins.monitoring.HudsonMonitoringFilter.doFilter(HudsonMonitoringFilter.java:42)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.plugins.greenballs.GreenBallFilter.doFilter(GreenBallFilter.java:51)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.plugins.audit_trail.AuditTrailFilter.doFilter(AuditTrailFilter.java:64)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:97)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:86)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:84)
      at hudson.security.UnwrapSecurityExceptionFilter.doFilter(UnwrapSecurityExceptionFilter.java:51)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.ExceptionTranslationFilter.doFilter(ExceptionTranslationFilter.java:166)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.providers.anonymous.AnonymousProcessingFilter.doFilter(AnonymousProcessingFilter.java:125)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.rememberme.RememberMeProcessingFilter.doFilter(RememberMeProcessingFilter.java:142)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.AbstractProcessingFilter.doFilter(AbstractProcessingFilter.java:271)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.ui.basicauth.BasicProcessingFilter.doFilter(BasicProcessingFilter.java:173)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at org.acegisecurity.context.HttpSessionContextIntegrationFilter.doFilter(HttpSessionContextIntegrationFilter.java:249)
      at hudson.security.HttpSessionContextIntegrationFilter2.doFilter(HttpSessionContextIntegrationFilter2.java:66)
      at hudson.security.ChainedServletFilter$1.doFilter(ChainedServletFilter.java:87)
      at hudson.security.ChainedServletFilter.doFilter(ChainedServletFilter.java:76)
      at hudson.security.HudsonFilter.doFilter(HudsonFilter.java:164)
      at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
      at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
      at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233)
      at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:191)
      at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:433)
      at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128)
      at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
      at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
      at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:293)
      at org.apache.coyote.http11.Http11AprProcessor.process(Http11AprProcessor.java:859)
      at org.apache.coyote.http11.Http11AprProtocol$Http11ConnectionHandler.process(Http11AprProtocol.java:574)
      at org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoint.java:1527)
      at java.lang.Thread.run(Thread.java:619)
      Caused by: java.io.IOException: Unable to delete D:\Hudson\.hudson\jobs\testA\config.xml
      at hudson.util.AtomicFileWriter.commit(AtomicFileWriter.java:109)
      at hudson.XmlFile.write(XmlFile.java:166)
      at hudson.model.AbstractItem.save(AbstractItem.java:220)
      at hudson.model.Job.save(Job.java:167)
      at hudson.model.Job.doConfigSubmit(Job.java:1053)
      at hudson.model.AbstractProject.doConfigSubmit(AbstractProject.java:555)
      ... 66 more

      I am not sure if this just an Hudson Core issue or it is linked to the Job configuration History plugin (1.5). I will disable the plugin in order to narrow down what generates the problem.

      many thanks

        Attachments

          Issue Links

            Activity

            Hide
            rutsky rutsky added a comment -

            I'm experiencing same problem on Hudson up to current latest version.

            Do you find solution or workaround for this issue?

            Show
            rutsky rutsky added a comment - I'm experiencing same problem on Hudson up to current latest version. Do you find solution or workaround for this issue?
            Hide
            rutsky rutsky added a comment -

            This is definitely Job Configuration History plugin issue.

            I tested on clean installation of Hudson 1.365 on Windows XP SP2 with only discussed plugin installed: all works normally until I hit "Do not save duplicate history". After this option enabled I had started experience problems described in this bugreport.

            So workaround for this bug is to disable "Do not save duplicate history" in plugin configuration (at http://HUDSON/configure -> Job Config History -> Advanced).

            Show
            rutsky rutsky added a comment - This is definitely Job Configuration History plugin issue. I tested on clean installation of Hudson 1.365 on Windows XP SP2 with only discussed plugin installed: all works normally until I hit "Do not save duplicate history" . After this option enabled I had started experience problems described in this bugreport. So workaround for this bug is to disable "Do not save duplicate history" in plugin configuration (at http://HUDSON/configure -> Job Config History -> Advanced).
            Hide
            rutsky rutsky added a comment -

            Add "jobconfighistory" to components list.

            Of course real error may be in "core" component, but without using Job Config History plugin I don't experience such error.

            Show
            rutsky rutsky added a comment - Add "jobconfighistory" to components list. Of course real error may be in "core" component, but without using Job Config History plugin I don't experience such error.
            Hide
            abarbieri Andrea Barbieri added a comment -

            same situation here... either disabling jobconfighistory or not selecting the "Do not save duplicate history" configuration option of the plugin makes the reported issue completely disappear.

            Show
            abarbieri Andrea Barbieri added a comment - same situation here... either disabling jobconfighistory or not selecting the "Do not save duplicate history" configuration option of the plugin makes the reported issue completely disappear.
            Hide
            johnmdaniel johnmdaniel added a comment - - edited

            same situation. Windows XP SP 2, Tomcat 6.0.26, Hudson 1.365, Hudson Job Configuration History Plugin v1.5

            Root history folder: C:\.hudson\log\jobConfigHistory\
            Max number of history entries to keep: 20
            Save system configuration changes: CHECKED
            System configuration exclude file pattern: queue|nodeMonitors|UpdateCenter

            Do not save duplicate history: When CHECKED, error happens. When UNCHECKED, there is no error.

            Show
            johnmdaniel johnmdaniel added a comment - - edited same situation. Windows XP SP 2, Tomcat 6.0.26, Hudson 1.365, Hudson Job Configuration History Plugin v1.5 Root history folder: C:\.hudson\log\jobConfigHistory\ Max number of history entries to keep: 20 Save system configuration changes: CHECKED System configuration exclude file pattern: queue|nodeMonitors|UpdateCenter Do not save duplicate history: When CHECKED, error happens. When UNCHECKED, there is no error.
            Hide
            mfriedenhagen Mirko Friedenhagen added a comment -

            Hm, this seems to be a Windows only error, I do not see this neither on Mac OS X nor on Linux.

            Show
            mfriedenhagen Mirko Friedenhagen added a comment - Hm, this seems to be a Windows only error, I do not see this neither on Mac OS X nor on Linux.
            Hide
            mfriedenhagen Mirko Friedenhagen added a comment -

            Version 1.9 should have a workaround for this https://github.com/hudson/jobConfigHistory-plugin/commit/50e3f04b378570a51d06c1d54ee4b8c84f92b03c
            However deletion, rename etc. do not take actually, you just do not get an error anymore which is kind of hacky.
            Best working solution would be to avoid Windows or NFS .

            Show
            mfriedenhagen Mirko Friedenhagen added a comment - Version 1.9 should have a workaround for this https://github.com/hudson/jobConfigHistory-plugin/commit/50e3f04b378570a51d06c1d54ee4b8c84f92b03c However deletion, rename etc. do not take actually, you just do not get an error anymore which is kind of hacky. Best working solution would be to avoid Windows or NFS .
            Hide
            mfriedenhagen Mirko Friedenhagen added a comment -

            Part of released version 1.9

            Show
            mfriedenhagen Mirko Friedenhagen added a comment - Part of released version 1.9

              People

              • Assignee:
                Unassigned
                Reporter:
                abarbieri Andrea Barbieri
              • Votes:
                4 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: