The S2I builds are failing with the latest OpenJDK ubi8:1.19-1/ubi9:1.18-1 images Operation not permitted

Solution Verified - Updated -

Issue

Failure with Operation not permitted as below in images OpenJDK 8, 11, 17 images ubi8:1.19-1/ubi9:1.18-1 Operation not permitted:

STEP 7/9: RUN /usr/local/s2i/assemble
INFO S2I source build with plain binaries detected
INFO Copying binaries from /tmp/src to /deployments ...
./example.jar
rsync: failed to set times on "/deployments/.": Operation not permitted (1)
agents/
rsync error: some files/attrs were not transferred (see previous errors) (code 23) at main.c(1189) [sender=3.1.3]
subprocess exited with status 23
subprocess exited with status 23
error building at STEP "RUN /usr/local/s2i/assemble": exit status 23
time="2024-02-28T18:34:45Z" level=error msg="exit status 23" 

Environment

  • Red Hat build of OpenJDK 8, 11, 17, 21 ubi8:1.19-1/ubi9:1.18-1
  • Red hat OpenShift Container Platform (OCP)
    • 4.x

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