-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
After upgrading to 1.5.0 I get 403 on from image retrieval #1914
Comments
This is easily reproducible. Affects every build goal. Looking into it now. |
A log shows that the following request returns 403. But what is strange is that running the curl command as shown in the log on the command line succeeds and returns 200. (It will eventually fail when the time-limited temporary redirect URL expires.)
Another anomaly is that the version of the Google HTTP Client in the user agent is 1.30.0, which is supposed to be 1.31.0 that we use.
In any case, I suspect this is due to our upgrading the Google HTTP Client. |
Verified that it works after reverting #1882 (that upgrades Google HTTP Client to 1.31.0) to use the previous 1.27.0. |
It could be a bug in google-http-client 1.31.0. Filed googleapis/google-http-java-client#795. Let's see what they say. I'll keep digging in in the meantime. |
I suspect that google-http-client 1.31.0 has a bug and fails to capture and try the correct temporary redirect URL from the 307 response. The server is probably working correctly by returning "time-limited URL validation failure" for non-existing or incorrect URLs. It is very unfortunate but I think we should revert back to 1.27.0 and be stuck with it for some time. Also, from the example code in googleapis/google-http-java-client#795, it seems like a bug that the wrong version is reported. Filed googleapis/google-http-java-client#796. |
@m86194 Jib 1.5.1 is released and should now work with Microsoft ACR. |
Environment:
Description of the issue:
After upgrading from 1.4.0 to 1.5.0 I get the following error when trying to create a docker build,
Downgrading to 1.4.0 again runs as before.
Expected behavior:
Build executes normally.
Steps to reproduce:
mvn jib:dockerBuild
with image mcr.microsoft.com/dotnet/core/aspnet:2.1-stretch-slimjib-maven-plugin
Configuration:Log output:
Additional Information:
The text was updated successfully, but these errors were encountered: