-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Gradle + quarkus-container-image-jib: AccessDeniedException on second run on Windows #11900
Comments
This is really weird indeed... Unfortunately I don't have a Windows machine so I can't reproduce it |
This seems to be a Windows problem... See: https://bugs.openjdk.java.net/browse/JDK-8029608 The only way I see around it is for us to sleep and re-attempt creating the directory when this happens... |
In Windows it seems like AccessDeniedException can be thrown when a directory is deleted and then immediately recreated. The problem can be mitigated by retrying the operation as is mentioned in https://bugs.openjdk.java.net/browse/JDK-8029608 Fixes: quarkusio#11900
Would you be willing to give #11922 a try and see if it fixes your issue? |
Attempt to get around AccessDeniedException in Windows
@geoand: Unfortunately, this does not seem to fix the issue. I still get the same error. Furthermore, I don't think this is a timing issue only, since I can only fix it by stopping the gradle deamons. Therefore it looks to me like the gradle deamons seem to keep some file lock on the directories or something like that. Please reopen this issue. |
I see. I'll reopen the issue then and ask @glefloch if he has any ideas |
@geoand I will access to a windows machine tonight. I will give a try to those two issues. |
In Windows it seems like AccessDeniedException can be thrown when a directory is deleted and then immediately recreated. The problem can be mitigated by retrying the operation as is mentioned in https://bugs.openjdk.java.net/browse/JDK-8029608 Fixes: quarkusio#11900
In Windows it seems like AccessDeniedException can be thrown when a directory is deleted and then immediately recreated. The problem can be mitigated by retrying the operation as is mentioned in https://bugs.openjdk.java.net/browse/JDK-8029608 Fixes: quarkusio#11900
I can reproduce the error. I tried using the latest version of gradle but I still have the issue. This looks like a known issue (gradle/gradle#937) ... |
So I guess we should close this as it's not a Quarkus issue? |
Well I don't think we can do much more in Quarkus |
Describe the bug
I try to build a container image with the
quarkus-container-image-jib
extension in my Quarkus (gradle, Kotlin) project on my Windows 10 PC. The first run works (./gradlew assemble -Dquarkus.container-image.build=true
). On the second and any further runs l I always getAccessDeniedException
s. When I stop the gradle deamons (./gradlew --stop
) or kill them via the TaskManager, it works again for one run but then I end up with the same issue.Full exception:
To Reproduce
Steps to reproduce the behavior:
2020-09-04_jib-problems.zip
./gradlew assemble -Dquarkus.container-image.build=true
ExampleResource
)./gradlew assemble -Dquarkus.container-image.build=true
again (now it should crash with theAccessDeniedException
)Environment (please complete the following information):
The text was updated successfully, but these errors were encountered: