Skip to content

Image Building with custom buildpacks fails with permission denied on Arch Linux #26658

@bala-striva

Description

@bala-striva

When trying to configure buildpacks for the bootBuildImage target (from: #25561 (comment))

bootBuildImage {
	buildpacks = [
	        'gcr.io/paketo-buildpacks/eclipse-openj9:latest',
			'paketo-buildpacks/java'
	]
}

will result in an error

> Task :bootBuildImage
Building image 'demo:latest'

 > Pulling builder image 'docker.io/paketobuildpacks/builder:base' ..................................................
 > Pulled builder image 'paketobuildpacks/builder@sha256:148282212248cd49988c0cdddff19ee7091f02b03b2b4bce52e5d68640e7b0c5'
 > Pulling run image 'docker.io/paketobuildpacks/run:base-cnb' ..................................................
 > Pulled run image 'paketobuildpacks/run@sha256:956341a43edf4029b29114502f7deb185527aed63e2a5ab94d86cd33abb34e56'
 > Pulling buildpack image 'gcr.io/paketo-buildpacks/eclipse-openj9:latest' ..................................................
 > Pulled buildpack image 'gcr.io/paketo-buildpacks/eclipse-openj9@sha256:9ec7ecf806716d1416b6f9030dea08a33cf1ed2d35dff5c2c4cab0d7f46cd4d1'
 > Executing lifecycle version v0.11.3
 > Using build cache volume 'pack-cache-877d4fc3db41.build'

 > Running creator
    [creator]     ===> DETECTING
    [creator]     ERROR: failed to lookup buildpack.toml for buildpack 'paketo-buildpacks/eclipse-openj9@8.0.0': open /cnb/buildpacks/paketo-buildpacks_eclipse-openj9/8.0.0/buildpack.toml: permission denied

> Task :bootBuildImage FAILED

FAILURE: Build failed with an exception.

Without custom buildpacks everything works fine and the image is created.

Checking the docker image gcr.io/paketo-buildpacks/eclipse-openj9:latest it seems that the buildpack.toml is in place with read all rights.

  • Spring boot 2.5
  • Gradle 7.0

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions