-
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
improve error message when http timeout #1895
Comments
tag was missing, since I am on corporate network default base image is not accessible. |
Hi @prary, Seems like you found a cause and the issue is resolved. Aside, the timeout error (I assume an exception stack trace) should already be fairly obvious in that a network call timed out. What error message do you see exactly and why do you think it is not descriptive enough? Is it the part that the Jib connecting to Google Container Registry to use the default base image |
Hi @chanseokoh it did not show it is trying to connect to gcr/distr...... I have tried with - X flag, only thing it showed was timeout and a traceback of java classes. On reading documentation I got to know about default case image, hence I was able to troubleshoot. |
Ah, we'll look into this. We should show the endpoint (or the image reference) that timed out in the error. |
Things to consider: From #1917, Jib 1.5.0 using the new version of Google HTTP Client seems to treat timeout as |
Also from #1917 (comment), apparently the default connection timeout of 20 seconds at the socket level isn't enforced or effective. I'd like to figure out why. |
Did some digging, and I think it's a bug in the new Google HTTP Client. Filed googleapis/google-http-java-client#799.
And I think this is a bug in Apache HttpClient (not Google HTTP Client). Filed HTTPCLIENT-2013. |
On my machine with OpenJDK 8 and Oracle JDK 12, So, it wasn't that the newer Apache library in 1.5.0 made a breaking behavioral change to throw a different exception when a timeout happens. Rather, it was that the timeout was not set at all due to the bug in Google HTTP Client, which made the JDK throw a different exception. In any case, I think it is unlikely that JDK will fix this bug soon (if it is a bug), probably not at all for Java 8, so I think it is better for us to try to identify the timeout case by examining the exception message as best as we can. I also intend to streamline the Jib behavior so that timeout does not trigger the HTTP-fallback, but we can revisit this later. Perhaps the whole HTTP-fallback magic. |
They've done the internal review, and the bug is now posted: JDK-8230528 Their first comment is kind of what I anticipated. |
Environment:
Description of the issue:
While running mvn compile jib:build, mvn timesout it pushes 50% of the built image.
Below is the screenshot of the build failure.
timeout in 28 second
only image is placeholder is modified, user and password are supplied in m2 settins file
Expected behavior:
It should push the build image
Steps to reproduce:
The text was updated successfully, but these errors were encountered: