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

Rundeck plugin: Job tracking and log tailing not working after update to 3.6.9

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Critical Critical
    • rundeck-plugin
    • None

      After upgrading the Rundeck plugin from 3.6.7 to 3.6.9, the plugin was no longer able to track the status of a job or tail the log output of an execution with the following output from the Jenkins console

       

       

      08:52:17 Instance '<Instance> Rundeck' with rundeck user '<user>': Notifying Rundeck...
      08:52:17 Looking for jobId : <Project>:<Job>
      08:52:19 Notification succeeded ! Execution #50365, at https://rundeck.<Url>.com/project/<Project>/execution/show/50365 (status : running)
      08:52:19 Waiting for Rundeck execution to finish...
      08:52:19 Rundeck execution #50365 finished in null, with status : running
      08:52:19 BEGIN RUNDECK LOG OUTPUT
      08:52:19 END RUNDECK LOG OUTPUT
      08:52:19 Error while talking to Rundeck's API at https://<Url> : null
      08:52:19 ERROR: Step 'Rundeck' failed: Error while talking to Rundeck's API at https://rundeck.<Url>.com : null
      08:52:19 Finished: FAILURE

       

       

      Rundeck API logs between 3.6.7 and 3.6.9

      3.6.9

      [2020-12-24T08:55:08,813] INFO api.requests "GET /api/21/metrics/ping" <IP> https <User> form 25 (rd-api-client/1.3.3)
      [2020-12-24T08:55:10,791] INFO api.requests "GET /api/21/project/<Project>/jobs" <IP> https <User> form 1969 <Project> (rd-api-client/1.3.3)
      [2020-12-24T08:55:10,844] INFO api.requests "POST /api/21/job/75b037cd-2808-4778-a2a0-952721896aa1/executions" <IP> https <User> form 44 (rd-api-client/1.3.3)
      [2020-12-24T08:55:10,864] INFO api.requests "GET /api/21/execution/50366/output" <IP> https <User> form 16 (rd-api-client/1.3.3)
      [2020-12-24T08:55:11,476] INFO api.requests "GET /api/21/metrics/ping" <IP> https <User> form 4 (rd-api-client/1.3.3)
      [2020-12-24T08:55:13,662] INFO api.requests "GET /api/21/project/<Project>/jobs" <IP> https <User> form 2181 <Project> (rd-api-client/1.3.3)

       

      3.6.7

      [2020-12-24T09:04:26,855] INFO api.requests "GET /api/21/project/<Project>/jobs" <IP> https <User> form 1971 <Project> (Rundeck API Java Client 21)
      [2020-12-24T09:04:27,031] INFO api.requests "POST /api/21/job/75b037cd-2808-4778-a2a0-952721896aa1/run" <IP> https <User> form 47 (Rundeck API Java Client 21)
      [2020-12-24T09:04:29,522] INFO api.requests "GET /api/21/project/<Project>/jobs" <IP> https <User> form 1972 <Project> (Rundeck API Java Client 21)
      [2020-12-24T09:04:29,698] INFO api.requests "POST /api/21/job/dbd49d39-1006-4735-bb2c-0fbc94fea8ee/run" <IP> https <User> form 47 (Rundeck API Java Client 21)
      [2020-12-24T09:04:32,179] INFO api.requests "GET /api/21/execution/50370" <IP> https <User> form 19 (Rundeck API Java Client 21)
      [2020-12-24T09:04:34,879] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 17 (Rundeck API Java Client 21)
      [2020-12-24T09:04:37,334] INFO api.requests "GET /api/21/execution/50370" <IP> https <User> form 15 (Rundeck API Java Client 21)
      [2020-12-24T09:04:40,030] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 15 (Rundeck API Java Client 21)
      [2020-12-24T09:04:42,471] INFO api.requests "GET /api/21/execution/50370" <IP> https <User> form 16 (Rundeck API Java Client 21)
      [2020-12-24T09:04:45,176] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 15 (Rundeck API Java Client 21)
      [2020-12-24T09:04:47,622] INFO api.requests "GET /api/21/execution/50370" <IP> https <User> form 15 (Rundeck API Java Client 21)
      [2020-12-24T09:04:50,313] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 16 (Rundeck API Java Client 21)
      [2020-12-24T09:04:52,770] INFO api.requests "GET /api/21/execution/50370" <IP> https <User> form 16 (Rundeck API Java Client 21)
      [2020-12-24T09:04:52,932] INFO api.requests "GET /api/21/execution/50370/output" <IP> https <User> form 26 (Rundeck API Java Client 21)
      [2020-12-24T09:04:55,470] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 15 (Rundeck API Java Client 21)
      [2020-12-24T09:05:00,611] INFO api.requests "GET /api/21/execution/50371" <IP> https <User> form 16 (Rundeck API Java Client 21)
      [2020-12-24T09:05:00,898] INFO api.requests "GET /api/21/execution/50371/output" <IP> https <User> form 166 (Rundeck API Java Client 21)

       

          [JENKINS-64518] Rundeck plugin: Job tracking and log tailing not working after update to 3.6.9

          Jon-Paul Lindquist added a comment - - edited

          I did try changing the API version for the Rundeck plugin with no change as well.  Rolled back to 3.6.7 to restore functionality

          Jon-Paul Lindquist added a comment - - edited I did try changing the API version for the Rundeck plugin with no change as well.  Rolled back to 3.6.7 to restore functionality

          Kees added a comment -

          We have this problem too. Rolling back to 3.6.7 did not restore functionality.

          vbehar is there any workaround available to restore functionality? I know this may be volunteer work, but just for our info: do you have an expectation of when there comes a fix? If you have not planned it, that is also good for us to know.

          Best regards,

          Kees

          Kees added a comment - We have this problem too. Rolling back to 3.6.7 did not restore functionality. vbehar  is there any workaround available to restore functionality? I know this may be volunteer work, but just for our info: do you have an expectation of when there comes a fix? If you have not planned it, that is also good for us to know. Best regards, Kees

          Jon-Paul Lindquist added a comment - - edited

          vbehar A colleague of mine found a pending fix for this in https://github.com/jenkinsci/rundeck-plugin/pull/42 - He was able to build a custom plugin and tested it today, and it appears to resolve this issue for us.  Any ideas on if / when that might be merged and released?  Thanks!

          Jon-Paul Lindquist added a comment - - edited vbehar A colleague of mine found a pending fix for this in https://github.com/jenkinsci/rundeck-plugin/pull/42 - He was able to build a custom plugin and tested it today, and it appears to resolve this issue for us.  Any ideas on if / when that might be merged and released?  Thanks!

          vbehar: I can verify that the patch commented by jplindquist is working for us , I issued a `mvn clean package` from the pull request branch and updated the plugin in our jenkins instance with the generated `hpi` file. We were also on 3.6.7 and had issues with updating to 3.6.9.  

          Thanks. FYI keesvandieren

          Roy Sindre Norangshol added a comment - vbehar : I can verify that the patch commented by jplindquist  is working for us , I issued a `mvn clean package` from the pull request branch and updated the plugin in our jenkins instance with the generated `hpi` file. We were also on 3.6.7 and had issues with updating to 3.6.9.   Thanks. FYI keesvandieren

            vbehar Vincent Behar
            jplindquist Jon-Paul Lindquist
            Votes:
            2 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated: