• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • core
    • Jenkins 2.150.3 on CentOS 7

      When sending HTTP post request to http://127.0.0.1:8080/restart to call the restart API, it responses 302 Found which redirects to http://127.0.0.1:8080/ . 

      HTTP/1.1 302 Found
      Date: Fri, 15 Mar 2019 05:48:53 GMT
      X-Content-Type-Options: nosniff
      Location: http://127.0.0.1:8080/
      Content-Length: 0
      Server: Jetty(9.4.z-SNAPSHOT)
      

      Then it will response a 503 Service Unavailable because Jenkins is restarting.

      HTTP/1.1 503 Service Unavailable
      Date: Fri, 15 Mar 2019 05:48:54 GMT
      X-Content-Type-Options: nosniff
      Expires: 0
      Cache-Control: no-cache,no-store,must-revalidate
      Content-Type: text/html;charset=utf-8
      Server: Jetty(9.4.z-SNAPSHOT)
      

          [JENKINS-56575] Jenkins REST API restart() responses 503

          Yudong Li created issue -
          Yudong Li made changes -
          Assignee New: Yudong Li [ p01son ]
          Yudong Li made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Yudong Li made changes -

          Yudong Li added a comment - - edited

          Yudong Li added a comment - - edited https://github.com/jenkinsci/jenkins/pull/3937
          Yudong Li made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Wadeck Follonier made changes -
          Remote Link New: This issue links to "#3972 in core (alternative using Accept header) (Web Link)" [ 22572 ]
          Wadeck Follonier made changes -
          Remote Link New: This issue links to "#4030 in core (using different endpoints) (Web Link)" [ 22921 ]

            p01son Yudong Li
            p01son Yudong Li
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: