Builds with Secrets in Openshift 3.9+ fail with the error "Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data"

Solution Verified - Updated -

Issue

Unable to execute builds with secrets as part of the configuration. Builds fail with the following error:

error: Uploading to container failed: Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data" -> "..2019_08_06_22_44_01.875817706"
ERROR: Error occurred during injecting "/var/run/secrets/openshift.io/build/secret" to "/opt/app-root/src": Error response from daemon: Error processing tar file(exit status 1): invalid symlink "/opt/app-root/src/..data" -> "..2019_08_06_22_44_01.875817706"

Environment

  • Red Hat OpenShift Container Platform (OCP)
    • 3.9+

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.

Current Customers and Partners

Log in for full access

Log In

New to Red Hat?

Learn more about Red Hat subscriptions

Using a Red Hat product through a public cloud?

How to access this content