-
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
com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Connection reset #2335
Comments
Hi @devslam, I suspect a proxy or firewall issue. Can you follow these instructions to capture network calls? You should see logs like
Also, for diagnosis, I would try different things:
|
Thank you for your help. I tried using a different base image and I'm getting the same error. I'll be able to try this on a different network in several hours Are the logs supposed to be saved somewhere or printed out through the command line? I've followed those instructions to capture the network calls but don't see any log messages or files |
You should see the logs in the normal Gradle output on the command line. I forgot to say there are multiple reports that Gradle is unpredictable in generating the logs. See #1917 (comment). Try And have you tried |
I see. Okay I'll give that a try. Yes, I forgot to mention. I'm able to pull images from a private registry and I'm also able to pull the default image |
Correction: Any update? |
Thanks for following up. I'm not able to see network requests being made in the Gradle output on the command line. I'll spend some time today to see why I'm not able to capture the network calls I found some possibly interesting bits from my console output
|
I know the opencensus exceptions are harmless. I remember I got them too. But I am not sure if it is related to network logs not being generated by Google HTTP Client. |
I too have the problem getting logs. I did know it was unpredicatable, but I remember at least I could get it after trying several times. But now, I cannot seem to make it work with a sample project. Since there was a report that Gradle 4.10.3 always worked, I think there's something about newer Gradle versions. |
Oh, right after I left the command, I was able to obtain network logs. It was like after 15 build attempts. |
@devslam I've identified why Gradle fails to output network logs (#2356). That will be fixed in the next release. In the meantime, I've created a patched branch (
This will build 2.1.1-SNAPSHOT and install it into your local Maven repo ( The patched plugin will not even require you set
Please let me know once you get the logs. |
@devslam have you had a chance to try the patched branch to get network logs? |
Sorry I did not have access to machine. I'll be able to try the patched branch to get the network logs today |
I'm having some difficulty trying to install the patched branch
|
I think it's a temporary outage of the official Gradle Central Plugin Repository. Eventually, it should be available. But if the plugin doesn't become available, you can just remove the Google Java Format plugin from the root --- a/build.gradle
+++ b/build.gradle
@@ -1,6 +1,5 @@
// define all versioned plugins here and apply in subprojects as necessary without version
plugins {
- id 'com.github.sherter.google-java-format' version '0.8' apply false
id 'net.ltgt.apt' version '0.19' apply false
id 'net.ltgt.errorprone' version '0.6' apply false
id 'net.researchgate.release' version '2.7.0' apply false
@@ -30,7 +29,6 @@ subprojects {
apply plugin: 'java'
apply plugin: 'checkstyle'
- apply plugin: 'com.github.sherter.google-java-format'
apply plugin: 'net.ltgt.apt'
apply plugin: 'net.ltgt.errorprone'
@@ -110,13 +108,6 @@ subprojects {
}
/* NULLAWAY */
- /* GOOGLE JAVA FORMAT */
- googleJavaFormat {
- toolVersion = '1.6'
- }
- check.dependsOn verifyGoogleJavaFormat
- /* GOOGLE JAVA FORMAT */
-
/* CHECKSTYLE */
checkstyle {
toolVersion = '8.29' |
BTW, I believe the root cause is some network/proxy issue in your environment where you cannot connect to the Docker Hub registry endpoint through |
Closing due to inactivity. It is an issue on the user's environment and unrelated to Jib anyway. |
Environment:
Description of the issue:
I'm unable build my container with the
ibmjava:8-jre
base image. When I run the jibDockerBuild command, I get the following exception:com.google.cloud.tools.jib.plugins.common.BuildStepsExecutionException: Connection reset
Expected behavior:
To be able to build my containers using the IBM Java 8 base image that is available on docker hub, which is located here: https://hub.docker.com/_/ibmjava?tab=description
Steps to reproduce:
jib-gradle-plugin
Configuration:Log output:
The text was updated successfully, but these errors were encountered: