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

Errors when "wait for completion" is ticked

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I . get this error

      Started by user anonymous
      Building in workspace /var/lib/jenkins/jobs/salt-test/workspace
      ERROR: {
      "_links":

      {"jobs": []}

      ,
      "return": [{}]
      }
      ERROR:

      {"Error": "java.io.IOException: Server returned HTTP response code: 401 for URL: http://172.16.42.10:8000/jobs/\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream0(Unknown Source)\n\tat sun.net.www.protocol.http.HttpURLConnection.getInputStream(Unknown Source)\n\tat com.waytta.Utils.getJSON(Utils.java:69)\n\tat com.waytta.Builds.runBlockingBuild(Builds.java:97)\n\tat com.waytta.SaltAPIBuilder.performRequest(SaltAPIBuilder.java:253)\n\tat com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:201)\n\tat com.waytta.SaltAPIBuilder.perform(SaltAPIBuilder.java:161)\n\tat hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:78)\n\tat hudson.tasks.BuildStepMonitor$1.perform(BuildStepMonitor.java:20)\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:779)\n\tat hudson.model.Build$BuildExecution.build(Build.java:206)\n\tat hudson.model.Build$BuildExecution.doRun(Build.java:163)\n\tat hudson.model.AbstractBuild$AbstractBuildExecution.run(AbstractBuild.java:534)\n\tat hudson.model.Run.execute(Run.java:1728)\n\tat hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)\n\tat hudson.model.ResourceController.execute(ResourceController.java:98)\n\tat hudson.model.Executor.run(Executor.java:405)\n"}

      Response on test.ping for '*':
      [{}]
      Build step 'Send a message to Salt API' changed build result to FAILURE
      Finished: FAILURE

        Attachments

          Activity

          Hide
          mchugh19 Christian McHugh added a comment -

          Odd, I am not able to replicate. Can you submit the response from the debug logs?

          Does different output get reported without the 'wait for completion' checkbox checked?

           

          Here's what I get from a test with 'wait for completion' checked when trying to run a cmd.run for 'sleep 25; ls -la'

          Sending JSON: {"client":"local","tgt":"*","expr_form":"glob","fun":"cmd.run","arg":"sleep 25; ls -la","kwarg":{}}
          Received response: [\{"master":"total 20\ndrwx------ 3 root root 4096 Oct 8 17:02 .\ndrwxr-xr-x 25 root root 4096 Mar 5 19:05 ..\n-rw-r--r-- 1 root root 3106 Oct 22 2015 .bashrc\n-rw-r--r-- 1 root root 148 Aug 17 2015 .profile\ndrwx------ 2 root root 4096 Oct 8 17:02 .ssh"}]
           

          Another thing to check is that the salt-api responds properly to the call being sent. See this gist for an example api login and then call to the salt-api

          Show
          mchugh19 Christian McHugh added a comment - Odd, I am not able to replicate. Can you submit the response from the debug logs ? Does different output get reported without the 'wait for completion' checkbox checked?   Here's what I get from a test with 'wait for completion' checked when trying to run a cmd.run for 'sleep 25; ls -la' Sending JSON: {"client":"local","tgt":"*","expr_form":"glob","fun":"cmd.run","arg":"sleep 25; ls -la","kwarg":{}} Received response: [\{"master":"total 20\ndrwx------ 3 root root 4096 Oct 8 17:02 .\ndrwxr-xr-x 25 root root 4096 Mar 5 19:05 ..\n-rw-r--r-- 1 root root 3106 Oct 22 2015 .bashrc\n-rw-r--r-- 1 root root 148 Aug 17 2015 .profile\ndrwx------ 2 root root 4096 Oct 8 17:02 .ssh"}]   Another thing to check is that the salt-api responds properly to the call being sent. See this gist for an example api login and then call to the salt-api
          Hide
          mchugh19 Christian McHugh added a comment -

          I am going to close this out as I am not able to replicate and additional information is needed to troubleshoot further. If you run into problems, please feel free to reopen.

          Show
          mchugh19 Christian McHugh added a comment - I am going to close this out as I am not able to replicate and additional information is needed to troubleshoot further. If you run into problems, please feel free to reopen.

            People

            Assignee:
            mchugh19 Christian McHugh
            Reporter:
            philrumble Phil Rumble
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: