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

"New Job" -> "Copy existing Job" fails with error "Status Code: 500"

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Incomplete
    • Component/s: core
    • Labels:
    • Environment:

      Description

      "New Job" -> "Copy existing Job" fails with error "Status Code: 500"

      The job used as source for the copy runs well (our nightly build - hey: it even succeeds

      The new job is created, but no data is in any of the configuration fields.

      The new job (empty) can be deleted.

      Following stacktrace is shown in the Webbrowser:
      """
      Status Code: 500
      Exception:
      Stacktrace:

      Warning: Could not find file c:\Daten\Jenkins\.jenkins\jobs\RIMOCTRL_SW_VxWorks-6.7_dev\config.xml to copy.
      at org.apache.tools.ant.taskdefs.Copy.copySingleFile(Copy.java:573)
      at org.apache.tools.ant.taskdefs.Copy.execute(Copy.java:403)
      at hudson.Util.copyFile(Util.java:840)
      at hudson.model.ItemGroupMixIn.copy(ItemGroupMixIn.java:203)
      at hudson.model.ItemGroupMixIn.createTopLevelItem(ItemGroupMixIn.java:164)
      at jenkins.model.Jenkins.doCreateItem(Jenkins.java:2733)
      at jenkins.model.Jenkins.doCreateItem(Jenkins.java:300)
      at hudson.model.AllView.doCreateItem(AllView.java:76)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
      at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
      at java.lang.reflect.Method.invoke(Unknown Source)
      at org.kohsuke.stapler.Function$InstanceFunction.invoke(Function.java:288)
      at org.kohsuke.stapler.Function.bindAndInvoke(Function.java:151)
      at org.kohsuke.stapler.Function.bindAndInvokeAndServeResponse(Function.java:90)
      at org.kohsuke.stapler.MetaClass$1.doDispatch(MetaClass.java:111)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
      at org.kohsuke.stapler.MetaClass$6.doDispatch(MetaClass.java:241)
      at org.kohsuke.stapler.NameBasedDispatcher.dispatch(NameBasedDispatcher.java:53)
      at org.kohsuke.stapler.Stapler.tryInvoke(Stapler.java:563)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:648)
      at org.kohsuke.stapler.Stapler.invoke(Stapler.java:477)
      at org.kohsuke.stapler.Stapler.service(Stapler.java:159)
      at javax.servlet.http.HttpServlet.service(HttpServlet.java:45)
      at winstone.ServletConfiguration.execute(ServletConfiguration.java:248)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:333)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:376)
      at hudson.util.PluginServletFilter$1.doFilter(PluginServletFilter.java:95)
      at hudson.util.PluginServletFilter.doFilter(PluginServletFilter.java:87)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.security.csrf.CrumbFilter.doFilter(CrumbFilter.java:47)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      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 jenkins.security.ApiTokenFilter.doFilter(ApiTokenFilter.java:61)
      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 winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at hudson.util.CharacterEncodingFilter.doFilter(CharacterEncodingFilter.java:81)
      at winstone.FilterConfiguration.execute(FilterConfiguration.java:194)
      at winstone.RequestDispatcher.doFilter(RequestDispatcher.java:366)
      at winstone.RequestDispatcher.forward(RequestDispatcher.java:331)
      at winstone.RequestHandlerThread.processRequest(RequestHandlerThread.java:245)
      at winstone.RequestHandlerThread.run(RequestHandlerThread.java:148)
      at java.lang.Thread.run(Unknown Source)

      Generated by Winstone Servlet Engine v0.9.10 at Wed Mar 28 12:15:16 CEST 2012
      """

      Note:

      • I am not able to identify what I have to enter in the above field "Component/s", I put "dashboard-view" and "createjobadvanced" but you Jenkins-CI-guys may need to correct this.

        Activity

        Hide
        rittmeyer Stephan Schwerzmann added a comment -

        On every webpage, in the lower right corner, served by our Jenkins server there is written 1.455 as version but the Form does not accept this figure as valid (?!?)

        I cannot find a reasonable Jenkins version information on my http://SERVER/systemInfo .

        Show
        rittmeyer Stephan Schwerzmann added a comment - On every webpage, in the lower right corner, served by our Jenkins server there is written 1.455 as version but the Form does not accept this figure as valid (?!?) I cannot find a reasonable Jenkins version information on my http://SERVER/systemInfo .
        Hide
        rittmeyer Stephan Schwerzmann added a comment -

        We are successfully running about a dozen jobs in our Jenkins since many months, half of them were created months ago under previous Jenkins versions by using exactly "New job" -> "Copy existing job".

        Show
        rittmeyer Stephan Schwerzmann added a comment - We are successfully running about a dozen jobs in our Jenkins since many months, half of them were created months ago under previous Jenkins versions by using exactly "New job" -> "Copy existing job".
        Hide
        rittmeyer Stephan Schwerzmann added a comment -

        was erroneously assigned to a user w.out activity in over 15 months

        Show
        rittmeyer Stephan Schwerzmann added a comment - was erroneously assigned to a user w.out activity in over 15 months
        Hide
        mambu Marco Ambu added a comment -

        Why is this assigned to dashboard-view plugin? Is that a mistake?

        Show
        mambu Marco Ambu added a comment - Why is this assigned to dashboard-view plugin? Is that a mistake?
        Hide
        domi Dominik Bartholdi added a comment -

        I assign, this to core, as the createjobadvanced plugin seems not to be involved here.
        Did you try with a more recent version? does the problem still exist?

        Show
        domi Dominik Bartholdi added a comment - I assign, this to core, as the createjobadvanced plugin seems not to be involved here. Did you try with a more recent version? does the problem still exist?
        Hide
        antweiss Anton Weiss added a comment -

        we just had the same issue after installing the Testflight plugin. uninstalling the plugin resolved it.

        Show
        antweiss Anton Weiss added a comment - we just had the same issue after installing the Testflight plugin. uninstalling the plugin resolved it.
        Hide
        danielbeck Daniel Beck added a comment -

        Is this still an issue in recent Jenkins versions?

        Did you verify the project file actually existed on disk?

        Are there relevant messages in the Jenkins log e.g. related to failures to save the project config?

        Show
        danielbeck Daniel Beck added a comment - Is this still an issue in recent Jenkins versions? Did you verify the project file actually existed on disk? Are there relevant messages in the Jenkins log e.g. related to failures to save the project config?
        Hide
        danielbeck Daniel Beck added a comment -

        Resolving as 'Incomplete' after no response to comment asking for clarification and updated information in two weeks.

        Show
        danielbeck Daniel Beck added a comment - Resolving as 'Incomplete' after no response to comment asking for clarification and updated information in two weeks.

          People

          • Assignee:
            Unassigned
            Reporter:
            rittmeyer Stephan Schwerzmann
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: