Skip to content

Image building fails during cleanup when bind mount has read-only content #40760

@wilkinsona

Description

@wilkinsona

We're seeing failures like this on CI:

Caused by: java.nio.file.AccessDeniedException: /tmp/junit-image-pack-gradle-10097551270091885690-work-layers/spring-boot_test-info	at org.springframework.util.FileSystemUtils$1.postVisitDirectory(FileSystemUtils.java:95)	at org.springframework.util.FileSystemUtils$1.postVisitDirectory(FileSystemUtils.java:87)	at org.springframework.util.FileSystemUtils.deleteRecursively(FileSystemUtils.java:87)	at org.springframework.boot.buildpack.platform.build.Lifecycle.deleteBind(Lifecycle.java:324)	... 120 more 

spring-boot_test-info is read-only which prevents it from being deleted.

Metadata

Metadata

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions