BuildStepsExecutionException when running jibDockerBuild
See original GitHub issueEnvironment:
- Jib version: 3.2.1 (jib-gradle)
- Build tool: gradle 7.5
- OS: Windows 10 x64
- JDK: temurin-jdk-17.0.4+8
Description of the issue:
When running the following command ./gradlew jibDockerBuild
, it throws the following error
BuildStepsExecutionException: unable to move: %APPDATA%\Local\Google\Jib\Cache\tmp\12345 to %APPDATA%\Local\Google\Jib\Cache\layers\54321; such failures are often caused by interference from antivirus (#3127), or rarely if the operation is not supported by the file system (for example: special non-local file system)
Expected behavior:
Running the command should build a local image using the local Docker Daemon
Steps to reproduce:
- run
./gradlew jibDockerBuild
jib-gradle-plugin
Configuration:
jib {
from {
image = 'eclipse-temurin:17.0.4_8-jdk'
}
to {
image = 'my-image/built-with-jib'
tags = ['tag2', 'latest']
}
container {
jvmFlags = ['-Xms512m', '-Xdebug']
ports = ['8080']
}
}
Log output:
Additional Information:
The error message points me to this https://github.com/GoogleContainerTools/jib/issues/1635#issuecomment-484199610 where it did mentioned about anti-virus affecting it. My research also brings me to #3127 and #1438, similarly, my machine is installed with mcafee endpoint security 10.7
but I have no control over it.
I have tried to run with the following command ./gradlew jibDockerBuild -Djib.applicationCache=D:\cache -Djib.seralize=true
based on some suggestion I saw over the different issues, but it does not seem to work as well.
Note: I should probably also mention that it used to work when I last ran it a few months back. I did a trace, but I don’t see any major upgrade in between this period for gradle/jib
but I’m not sure about anti-virus though.
I am unable to provide a full log as I’m working on an air-gapped environment. Let me know if anything else is required, and I will try to provide
Thanks
Issue Analytics
- State:
- Created a year ago
- Comments:13 (6 by maintainers)
Top GitHub Comments
The base image cache is to cache images. Note that an image is basically comprised of layers (tar files in reality) and some metadata files. So, whenever it needs to download and save new images or layers, those will be created under the cache directory with some hierarchy. Directories and files will continue to be created, as you keep downloading new images.
Basically,
%LOCALAPPDATA%\Google\Jib\Cache
, by default.Yup, I added the directories as mentioned, but the exclusion didn’t work. So was wondering if it could have other directory that I did not include. But if those are the only ones, then it might be something wrong with the exclusion feature from the AV, and I will treat it as such.
Otherwise, I think we can close this issue, and thank you so much for your assistance. Appreciate it!