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

HTTP error 405 when trying to restart ssh host

    XMLWordPrintable

Details

    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

            rkarbas Reinhard Karbas created issue -

            This is still broken with 1.564!

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

            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!

            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!
            rkarbas Reinhard Karbas made changes -
            Field Original Value New Value
            Priority Major [ 3 ] Blocker [ 1 ]
            rkarbas Reinhard Karbas made changes -
            Component/s master-slave [ 15489 ]
            Component/s http_request [ 17539 ]
            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

            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
            oleg_nenashev Oleg Nenashev made changes -
            Component/s core [ 15593 ]
            Component/s ssh-slaves [ 15578 ]

            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

            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
            danielbeck Daniel Beck added a comment - - edited Likely introduced in 1.561 by https://github.com/jenkinsci/jenkins/pull/877/files#diff-a5d5dbfd01aa9be491143dc82df503a6R559

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

            rkarbas Reinhard Karbas added a comment - When can I expect a fix for this and who can fix it?
            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.

            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.
            oleg_nenashev Oleg Nenashev added a comment -

            Nothing to do in SSH Slaves...

            oleg_nenashev Oleg Nenashev added a comment - Nothing to do in SSH Slaves...
            oleg_nenashev Oleg Nenashev made changes -
            Component/s ssh-slaves [ 15578 ]
            danielbeck Daniel Beck made changes -
            Assignee Daniel Beck [ danielbeck ]
            danielbeck Daniel Beck made changes -
            Status Open [ 1 ] In Progress [ 3 ]
            danielbeck Daniel Beck made changes -
            Remote Link This issue links to "PR (Web Link)" [ 11000 ]
            danielbeck Daniel Beck added a comment -

            Words fail me.

            danielbeck Daniel Beck added a comment - Words fail me.

            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

            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
            scm_issue_link SCM/JIRA link daemon made changes -
            Resolution Fixed [ 1 ]
            Status In Progress [ 3 ] Resolved [ 5 ]

            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

            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
            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
            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

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

            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?
            jglick Jesse Glick made changes -
            Labels configuration jenkins slave configuration lts-candidate slave

            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)

            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)
            olivergondza Oliver Gondža made changes -
            Labels configuration lts-candidate slave 1.565.2-fixed configuration slave
            rtyler R. Tyler Croy made changes -
            Workflow JNJira [ 155423 ] JNJira + In-Review [ 195199 ]

            People

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

              Dates

                Created:
                Updated:
                Resolved: