Why the Jenkins Client reports failure though the build succeeds

Solution Verified - Updated -


  • When deploying an application via git push it fails with below error when Jenkins is enabled for the application.The Jenkins build actually succeeds when checking the logs and accessing the application.
  • Error that is reported at client side is as below:
Counting objects: 5, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 291 bytes, done.
Total 3 (delta 2), reused 0 (delta 0)
remote: Executing Jenkins build.
remote: You can track your build at <JENKINS-SERVER-URL>/job/medium-build
remote: Waiting for build to schedule......../opt/rh/ruby193/root/usr/share/ruby/json/common.rb:155:in `parse': 757: unexpected token at '<!DOCTYPE HTML
"-//IETF//DTD HTML 2.0//EN"> (JSON::ParserError)
remote: <html><head>
remote: <title>502 Proxy Error</title>
remote: </head><body>
remote: <h1>Proxy Error</h1>
remote: <p>The proxy server received an invalid
remote: response from an upstream server.<br />
remote: The proxy server could not handle the request <em><a href="/job/medium-build/api/json">GET&nbsp;/job/medium-build/api/json</a></em>.<p>
remote: Reason: <strong>Error reading from remote server</strong></p></p>
remote: <hr>
remote: <address>Apache/2.2.26 (Red Hat Enterprise Web Server) Server at <JENKINS-SERVER-URL> Port 443</address>
remote: </body></html>'
remote:         from /opt/rh/ruby193/root/usr/share/ruby/json/common.rb:155:in `parse'
remote:         from /var/lib/openshift/<JENKINS-GEAR-UUID>/jenkins-client//bin/jenkins_build:25:in `get_jobs_info'
remote:         from /var/lib/openshift/<JENKINS-GEAR-UUID>/jenkins-client//bin/jenkins_build:44:in `is_cancelled'
remote:         from /var/lib/openshift/<JENKINSGEAR-UUID>/jenkins-client//bin/jenkins_build:68:in `<main>'
remote: !!!!!!!!
remote: Deployment Halted!
remote: If the build failed before the deploy step, your previous
remote: build is still running.  Otherwise, your application may be
remote: partially deployed or inaccessible.
remote: Fix the build and try again.
remote: !!!!!!!!
remote: An error occurred executing 'gear postreceive' (exit code: 1)
remote: Error message: CLIENT_ERROR: Failed to execute: 'control post-receive' for /var/lib/openshift/<>/jenkins-client


  • Openshift Enterprise
    • 2.2
  • Openshift Online

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In