-
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
jib:build Remaining allocation units less than 0 #1512
Comments
Traefik is completely new to us. I'm curious to check a few things. What if you 1) remove
Just trying to by-pass with minimal restrictions. I also think there should be some log on the Traefik side when Jib requests don't go through to reach the Nexus registry? |
Another possibility we've been thinking is that traefik is somehow manipulating/ignoring/tampering transferring correct Could you obtain a network trace and upload the full log? |
(Don't forget to add |
#1512 (comment) #1512 (comment) All test case made with enabled compression: Traefik Compression |
@mecseid your log did not capture network traces. With correct configuration, the log should capture all HTTP requests/responses as shown in this example trace such as
Please set the network configuration in a Anyways, now you mentioned that this happens only when turning on Traefik compression, I think it further supports our conjecture that Traefik routing results in dropping or messing with (As a side note, I see jib-1.0.1-https is able to communicate over HTTPS (albeit insecure HTTP). Why do you want to use HTTP for what?) |
For this, I noticed we've upgraded the Google HTTP Client in v1.0.1, and this seems to be the cause. Filed #1517. This HTTP-failover issue will be fixed separately. |
Sorry for wrong log files, I created another two: I don't want to use HTTP connection at all (I was happy about that v1.0.1 don't accept HTTP connections), but we have some very awful policy about ingress network and communication (I hope we will delete these). Thanks for #1517 . |
Thanks for the logs. (In hindsight, Traefik is completely invisible as a proxy, of course.) In any case, it is obvious that Jib crashed on inaccurate/incomplete progress usage, and I think this is a likely cause of the issue. #1521 should fix it, and hopefully, your issue will be gone. |
@mecseid v1.0.2 released that will prevent crashing when enabling compression. v1.0.2 also fixes the regression that may fail to try HTTP. |
Description of the issue:
The jib-maven-plugin failed with this error message:
org.apache.maven.lifecycle.LifecycleExecutionException: Failed to execute goal com.google.cloud.tools:jib-maven-plugin:1.0.1:build (default-cli) on project backend: Remaining allocation units less than 0 for 'pull container configuration sha256:0ea51d9f12788eb9ab2fad601aeda6fd2d444fde75b1cfb853994913ed88243d': -1
I use Nexus 3 as a local Docker repository for my images, and as a proxy to Docker Hub.
In front of Nexus, I have a Traefik, which setup itself from Docker labels.
The docker labels of the Nexus repository:
With this configuration, the
docker pull nexus.192.168.100.101.nip.io/alpine:latest
and others work as expected, but jib cannot pull docker layers.If a publish the port 5050, 5055, and configure jib to pull and push from/to these ports, then jib works as expected.
Environment:
Build from Jenkins Pipeline with Docker Maven container (maven:3-jdk-11-slim)
jib-maven-plugin
Configuration (relevant section):Additional Information:
The jib-maven-plugin:1.0.0 can use HTTP, but the jib-maven-plugin:1.0.1 works with only HTTPS connection.
The text was updated successfully, but these errors were encountered: