Pipeline Image Build fails with buildah: "lchown [..]: invalid argument"

Solution Verified - Updated -

Issue

  • When using Tekton and buildah bud, the build fails with the following error message

    error creating build container: Error committing the finished image: error adding layer with blob "sha256:6c85ac87d44df4b64d7c273886fc5aed55a28422df33dcb641884ffa419db218": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 192:192 for /run/systemd/netif): lchown /run/systemd/netif: invalid argument level=error msg="exit status 1"
    
  • Other images may show the following similar error message when buildah bud is used:

    error creating build container: Error committing the finished image: error adding layer with blob "sha256:8559a31e96f442f2c7b6da49d6c84705f98a39d8be10b3f5f14821d0ee8417df": Error processing tar file(exit status 1): there might not be enough IDs available in the namespace (requested 0:42 for /etc/gshadow): lchown /etc/gshadow: invalid argument level=error msg="exit status 1"
    

Environment

  • OpenShift Container Platform (OCP) 4.4

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