helidon icon indicating copy to clipboard operation
helidon copied to clipboard

4.x: tests: DockerClientException: Could not build image: toomanyrequests

Open barchetta opened this issue 4 months ago • 0 comments

Occasionally test image based tests are failing with:

[INFO] Running io.helidon.tests.integration.dbclient.pgsql.PostgreSQLSimpleRemoteTestIT
Error:  Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 30.86 s <<< FAILURE! -- in io.helidon.tests.integration.dbclient.pgsql.PostgreSQLSimpleRemoteTestIT
Error:  io.helidon.tests.integration.dbclient.pgsql.PostgreSQLSimpleRemoteTestIT -- Time elapsed: 30.86 s <<< ERROR!
org.testcontainers.containers.ContainerLaunchException: Container startup failed for image pgsql:latest

. . .

Caused by: com.github.dockerjava.api.exception.DockerClientException: Could not build image: toomanyrequests: You have reached your pull rate limit. You may increase the limit by authenticating and upgrading: https://www.docker.com/increase-rate-limit
	at com.github.dockerjava.api.command.BuildImageResultCallback.getImageId(BuildImageResultCallback.java:78)
	at com.github.dockerjava.api.command.BuildImageResultCallback.awaitImageId(BuildImageResultCallback.java:50)
	at org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:159)
	at org.testcontainers.images.builder.ImageFromDockerfile.resolve(ImageFromDockerfile.java:40)
	at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
	at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
	at org.testcontainers.shaded.com.google.common.util.concurrent.Futures$1.get(Futures.java:536)
	at org.testcontainers.images.RemoteDockerImage.getImageName(RemoteDockerImage.java:130)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:67)
	at org.testcontainers.images.RemoteDockerImage.resolve(RemoteDockerImage.java:28)
	at org.testcontainers.utility.LazyFuture.getResolvedValue(LazyFuture.java:20)
	at org.testcontainers.utility.LazyFuture.get(LazyFuture.java:41)
	at org.testcontainers.containers.GenericContainer.getDockerImageName(GenericContainer.java:1365)

barchetta avatar Oct 14 '24 16:10 barchetta