-
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
Pushing to registry is timing out #582
Comments
@alexanderzimmer Thanks for reporting this issue! We'll look into using the timeout from the |
@coollog Thanks for your reply! I've tried both and ended up using:
But it still does not work. |
@alexanderzimmer Yea it will not work in the current state because we do not read timeout configuration from Maven settings. We might support the format in your comment. @GoogleContainerTools/java-tools Any ideas on other ways of solving this issue? |
I'm not convinced that the maven http setting configuration should be
applied to the container registry interactions. Perhaps we should provide
our own configuration for this?
…On Thu, Jul 12, 2018 at 10:56 AM Q Chen ***@***.***> wrote:
@alexanderzimmer <https://github.com/alexanderzimmer> Yea it will not
work in the current state because we do not read timeout configuration from
Maven settings. We might support the format in your comment.
@GoogleContainerTools/java-tools
<https://github.com/orgs/GoogleContainerTools/teams/java-tools> Any ideas
on other ways of solving this issue?
—
You are receiving this because you are on a team that was mentioned.
Reply to this email directly, view it on GitHub
<#582 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AHf5HSAozSNJMqV5Pp0CMZkvhQQ3iKPTks5uF2OxgaJpZM4VMfvO>
.
|
I think it makes sense, because we read the |
We do have to think about what to do on the Gradle side too to keep the experience consistent. Another option is just to have a much higher timeout (like 60s) globally without configuration. |
@coollog what's it set to now? So the container registry urls are specified in in settings.xml? Are we using an http wagon implementation for our http client? |
Since we use the Google HTTP client, the default timeout is 20 seconds. |
Not really, but in some sense yes. AFAIK (correct me if I'm wrong), we read |
@chanseokoh |
I think we should probably provide a system property to override the default timeout for now, and consider adding configuration/maven settings support later. So with Maven you would have something like |
I guess that will work. Just wondering if there are some guides/policies for reading various configuration/settings from where, like through |
@chanseokoh I'm not aware of any community-standard guides/policies regarding this, but I think that we should generally avoid adding additional configuration to build files for configuration that is not closely related to image builds (and especially for edge case uses). We can reconsider |
My 2¢ is that we should support the native frontend approach as much as possible. But for projects to require contributors to apply tweaks to their |
@briandealwis Do you think having |
You're right @coollog, setting a large timeout shouldn't have any effect for fast registries. |
Is there a reason to target only the connection timeout and not care about the read timeout? I think in the OP's situation, timeout can happen in both connection and read, and the log says it's the read time out.
|
@chanseokoh Ah right, we should just have it as |
The |
Hi, @alexanderzimmer we've just release version For example: mvn compile jib:build -Djib.httpTimeout=60000 |
@coollog Hey, thanks for your support. This helped me a lot and is running now! |
I encountered this on OpenShift, which has a concept of ImageStream which is a representation of a container image, roughly speaking. Deleting the ImageStream solved the issue for me. ✔️ oc delete imagestream <name> -n <namespace> |
this works for me |
Description of the issue:
Our docker-registry is sometimes a little bit slow, so the building-process inside our CI-pipeline fails with the message
Build image failed: Read timed out
. The timeout i selected inside my settings.xml for this server is not respected.Expected behavior:
Respecting the Timeout inside the servers-tag in settings.xml
Steps to reproduce:
Try to push an image to an slow docker-registry. Then set the timeout for this registry inside your settings.xml and test ist again. You will see that the timeout is not respected.
Tested with version 0.9.6
The text was updated successfully, but these errors were encountered: