question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Jib-gradle-plugin jib.httpTimeout not taken into account

See original GitHub issue

Environment:

  • Jib version: 2.6.0
  • Build tool: gradle 6.7

Description of the issue:

Getting the following error when building:

15:27:50 Container entrypoint set to [java, -XX:MaxMetaspaceSize=512m, -Djava.security.egd=file:/dev/./urandom, -javaagent:/app/WEB-INF/lib/otel-javaagent.jar, -Dotel.instrumentation.jdbc-datasource.enabled=false, -Dotel.instrumentation.servlet-filter.enabled=true, -Dotel.instrumentation.servlet-service.enabled=true, -cp, /app/resources:/app/classes:/app/libs/*, ...] 15:28:22 I/O error for image [docker-staging.repository.collibra.io/arch/dgc-aggregator]: 15:28:22  java.net.SocketTimeoutException 15:28:22  Read timed out

gradle.properties contain the following property

jib.httpTimeout=0

Never the less from the logs you can see it times out after ±20 seconds.

It seems the property doesn’t have any effect.

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:11 (7 by maintainers)

github_iconTop GitHub Comments

1reaction
chanseokohcommented, Mar 4, 2021

Oh, I see the confusion. They are system properties.

0reactions
GianniGigliocommented, Mar 4, 2021

Yeah correct, just a bit odd to use jvm properties. The Gradle way would be to use project properties instead that’s why am confused 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

google/jib - Gitter
Hello, I'm investigating Jib right now. In my current java project we build its docker image using multi-stage Dockerfile. Recently we started to...
Read more >
Re: [Jib Users] Build image failed: Read timed out
when I run mvn package jib:build ,it throws read time out but i can docker login in locally, how to resolve it.
Read more >
Create images using Jib Gradle plugin
Use our new image. Log in to your gitlab registry by the following command. This command will prompt username and password to our...
Read more >
jib gradle plugin + static docker client: cannot build image due ...
It is solved when I run cmd as admin and cd to project dir and do gradlew jibDockerBuild . Image built and loaded...
Read more >
Building Java containers with Jib - Google Cloud
Jib handles all steps of packaging your application into a container image. You don't need to know best practices for creating Dockerfiles or...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found