Application build fails with error "Failed to push image: file integrity checksum failed" on OpenShift Container Platform.

Solution Verified - Updated -

Issue

  • Even though docker-registry, registry-console and router pods are running fine, initial deployment of simple Ruby application using default code from git repository failed with error error: build error: Failed to push image: file integrity checksum failed for "opt/app-root/src/bundle/ruby/gems/rack-2.0.3/contrib/rack.png"
# oc get pods
NAME               READY     STATUS    RESTARTS   AGE
ruby-ocp-1-build   0/1       Error     0          27m

# oc logs ruby-ocp-1-build
Cloning "https://github.com/openshift/ruby-ex.git" ...
[...]
Pushed 0/6 layers, 2% complete
Pushed 1/6 layers, 21% complete
Pushed 2/6 layers, 39% complete
Pushed 3/6 layers, 64% complete
Pushed 3/6 layers, 100% complete
Pushed 4/6 layers, 100% complete
Pushed 5/6 layers, 95% complete
Registry server Address:
Registry server User Name: serviceaccount
Registry server Email: serviceaccount@example.org
Registry server Password: <<non-empty>>
error: build error: Failed to push image: file integrity checksum failed for "opt/app-root/src/bundle/ruby/gems/rack-2.0.3/contrib/rack.png"

Environment

  • OpenShift Container Platform 3.x

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
Close

Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.