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

HTTP error 405 when trying to restart ssh host

    XMLWordPrintable

    Details

    • Similar Issues:

      Description

      I upgraded my jenkins machine from 1.559 to 1.563 on Saturday and as always some of the Linux machines connected via ssh did not start
      After selecting the machine I tried to launch it again which normally works, however with Jenkins 1.563 I get http error 405
      I had to revert back to the old version to use it properly

        Attachments

          Issue Links

            Activity

            Hide
            rkarbas Reinhard Karbas added a comment -

            This is still broken with 1.564!

            Show
            rkarbas Reinhard Karbas added a comment - This is still broken with 1.564!
            Hide
            rkarbas Reinhard Karbas added a comment -

            I just tried with the latest version (1.565) and it is still now working
            When trying it with Firefox instead of IE I see following message on the screen:
            POST is required for hudson.slaves.SlaveComputer.doLaunchSlaveAgent
            When I push the button to try to post again it works, but only on Firefox
            When will someone look at this to fix it?
            Until it is fixed I will have to stay on version 1.559!

            Show
            rkarbas Reinhard Karbas added a comment - I just tried with the latest version (1.565) and it is still now working When trying it with Firefox instead of IE I see following message on the screen: POST is required for hudson.slaves.SlaveComputer.doLaunchSlaveAgent When I push the button to try to post again it works, but only on Firefox When will someone look at this to fix it? Until it is fixed I will have to stay on version 1.559!
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            It could be a compatibility issue between core and ssh-slaves.
            @Reinhard, please provide Jenkins logs at least. Slave logs would be useful as well

            Show
            oleg_nenashev Oleg Nenashev added a comment - It could be a compatibility issue between core and ssh-slaves. @Reinhard, please provide Jenkins logs at least. Slave logs would be useful as well
            Hide
            rkarbas Reinhard Karbas added a comment -

            The problem is there is nothing in the log files I can see

            The only output I have is the one already stored in here
            The best output is the one I got from Mozilla with the Post error and the try Posting button which then makes it possible to restart the client

            I have the Server on a SLES 11 SP2 machine and for this test I am working with an Ubuntu client
            I manually disconnect the session and then push the launch slave agent button which leads to the error shown here
            If there is any additional logging I could turn on or some other file I could check please let me know

            Show
            rkarbas Reinhard Karbas added a comment - The problem is there is nothing in the log files I can see The only output I have is the one already stored in here The best output is the one I got from Mozilla with the Post error and the try Posting button which then makes it possible to restart the client I have the Server on a SLES 11 SP2 machine and for this test I am working with an Ubuntu client I manually disconnect the session and then push the launch slave agent button which leads to the error shown here If there is any additional logging I could turn on or some other file I could check please let me know
            Show
            danielbeck Daniel Beck added a comment - - edited Likely introduced in 1.561 by https://github.com/jenkinsci/jenkins/pull/877/files#diff-a5d5dbfd01aa9be491143dc82df503a6R559
            Hide
            rkarbas Reinhard Karbas added a comment -

            When can I expect a fix for this and who can fix it?

            Show
            rkarbas Reinhard Karbas added a comment - When can I expect a fix for this and who can fix it?
            Hide
            jglick Jesse Glick added a comment -

            Could comment out the @RequirePOST but better would be to fix the calling page, wherever that is, to use POST.

            Show
            jglick Jesse Glick added a comment - Could comment out the @RequirePOST but better would be to fix the calling page, wherever that is, to use POST.
            Hide
            oleg_nenashev Oleg Nenashev added a comment -

            Nothing to do in SSH Slaves...

            Show
            oleg_nenashev Oleg Nenashev added a comment - Nothing to do in SSH Slaves...
            Hide
            danielbeck Daniel Beck added a comment -

            Words fail me.

            Show
            danielbeck Daniel Beck added a comment - Words fail me.
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly
            http://jenkins-ci.org/commit/jenkins/90337f06087ae0ff23f39310a5e07a2775d3d230
            Log:
            [FIXED JENKINS-23094] Use POST to start slave agent

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly http://jenkins-ci.org/commit/jenkins/90337f06087ae0ff23f39310a5e07a2775d3d230 Log: [FIXED JENKINS-23094] Use POST to start slave agent
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Oliver Gondža
            Path:
            core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly
            http://jenkins-ci.org/commit/jenkins/d743dd6cbe824b53a9ca02675196c5904052938e
            Log:
            Merge pull request #1281 from daniel-beck/JENKINS-23094

            [FIXED JENKINS-23094] Use POST to start slave agent

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Oliver Gondža Path: core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly http://jenkins-ci.org/commit/jenkins/d743dd6cbe824b53a9ca02675196c5904052938e Log: Merge pull request #1281 from daniel-beck/ JENKINS-23094 [FIXED JENKINS-23094] Use POST to start slave agent
            Hide
            dogfood dogfood added a comment -

            Integrated in jenkins_main_trunk #3469
            [FIXED JENKINS-23094] Use POST to start slave agent (Revision 90337f06087ae0ff23f39310a5e07a2775d3d230)

            Result = SUCCESS
            daniel-beck : 90337f06087ae0ff23f39310a5e07a2775d3d230
            Files :

            • core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly
            Show
            dogfood dogfood added a comment - Integrated in jenkins_main_trunk #3469 [FIXED JENKINS-23094] Use POST to start slave agent (Revision 90337f06087ae0ff23f39310a5e07a2775d3d230) Result = SUCCESS daniel-beck : 90337f06087ae0ff23f39310a5e07a2775d3d230 Files : core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly
            Hide
            ljohnston Lance Johnston added a comment -

            So what LTS will this appear in? Wouldn't this warrant a patch to the current 1.565 LTS version?

            Show
            ljohnston Lance Johnston added a comment - So what LTS will this appear in? Wouldn't this warrant a patch to the current 1.565 LTS version?
            Hide
            scm_issue_link SCM/JIRA link daemon added a comment -

            Code changed in jenkins
            User: Daniel Beck
            Path:
            core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly
            http://jenkins-ci.org/commit/jenkins/ee1d6ab0020f2fec13e5212f4168a22f8433a17c
            Log:
            [FIXED JENKINS-23094] Use POST to start slave agent

            (cherry picked from commit 90337f06087ae0ff23f39310a5e07a2775d3d230)

            Show
            scm_issue_link SCM/JIRA link daemon added a comment - Code changed in jenkins User: Daniel Beck Path: core/src/main/resources/hudson/slaves/ComputerLauncher/main.jelly http://jenkins-ci.org/commit/jenkins/ee1d6ab0020f2fec13e5212f4168a22f8433a17c Log: [FIXED JENKINS-23094] Use POST to start slave agent (cherry picked from commit 90337f06087ae0ff23f39310a5e07a2775d3d230)

              People

              Assignee:
              danielbeck Daniel Beck
              Reporter:
              rkarbas Reinhard Karbas
              Votes:
              1 Vote for this issue
              Watchers:
              9 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: