Uploaded image for project: 'Nuxeo ECM Build/Test Environment'
  1. Nuxeo ECM Build/Test Environment
  2. NXBT-3333

Fix intermittent JX error: Expected HTTP 101 response but was '500 Internal Server Error'

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Cannot Reproduce
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: Jenkins X

      Description

      The error below happens randomly, though not frequently.

      21:52:29  [INFO] ------------------------------------------------------------------------
      21:52:29  [INFO] BUILD SUCCESS
      21:52:29  [INFO] ------------------------------------------------------------------------
      21:52:29  [INFO] Total time:  02:16 min
      21:52:29  [INFO] Finished at: 2020-05-29T19:52:29Z
      21:52:29  [INFO] ------------------------------------------------------------------------
      21:52:29  [Pipeline] sh
      21:52:29  java.net.ProtocolException: Expected HTTP 101 response but was '500 Internal Server Error'
      21:52:29  	at okhttp3.internal.ws.RealWebSocket.checkResponse(RealWebSocket.java:229)
      21:52:29  	at okhttp3.internal.ws.RealWebSocket$2.onResponse(RealWebSocket.java:196)
      21:52:29  	at okhttp3.RealCall$AsyncCall.execute(RealCall.java:203)
      21:52:29  	at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
      21:52:29  	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      21:52:29  	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      21:52:29  	at java.lang.Thread.run(Thread.java:748)
      21:52:29  [Pipeline] }
      21:52:29  [Pipeline] // container
      21:52:29  Post stage
      

      See for instance:
      https://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/nuxeo/job/master/487/console, happening at

      sh "kubectl --namespace platform get secret kubernetes-docker-cfg -ojsonpath='{.data.\\.dockerconfigjson}' | base64 --decode > /tmp/config.json"
      

      https://jenkins.platform.dev.nuxeo.com/job/nuxeo/job/nuxeo/job/master/506/console,
      happening at

      sh "mvn -B -nsu -Dnuxeo.skip.enforcer=false -Prelease -Dnuxeo.skip.enforcer=false -f packages/pom.xml -DskipTests install"
      

      https://github.com/jenkins-x/jx/issues/4674 is suggesting a Kubernetes upgrade to v1.13, yet the cluster is in v1.14.10-gke.36:

      kubectl version
      Client Version: version.Info{Major:"1", Minor:"17", GitVersion:"v1.17.0", GitCommit:"70132b0f130acc0bed193d9ba59dd186f0e634cf", GitTreeState:"clean", BuildDate:"2019-12-07T21:20:10Z", GoVersion:"go1.13.4", Compiler:"gc", Platform:"linux/amd64"}
      Server Version: version.Info{Major:"1", Minor:"14+", GitVersion:"v1.14.10-gke.36", GitCommit:"34a615f32e9a0c9e97cdb9f749adb392758349a6", GitTreeState:"clean", BuildDate:"2020-04-06T16:33:17Z", GoVersion:"go1.12.12b4", Compiler:"gc", Platform:"linux/amd64"}
      

      and the nodes running the nuxeo build are in v1.14.10-gke.27.

        Attachments

          Activity

            People

            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: