Very often (especially during nighly builds) pushing to my private repository fails the first time but consequently succeeds during the same push.
Now to be clear this is not urgent as it’s an automated build at night and the wasted 5 minutes at night don’t matter. And when it happens in manual builds it’s annoying at worst. Though I’d like to have this fixed at some point.
Now all I’m doing is take the debian-slim library container(/layer?) and add one additional layer. That layer is about 650MB in size and this issue only ever happens to that layer/build process and didn’t start until it surpassed about 400MB so I’m guessing it has to do with the size or time it takes to upload.
The push pretty much always looks like that:
The push refers to repository [my.docker.repository.com/company/debian-base] 6e97bfdf959b: Preparing b67d19e65ef6: Preparing b67d19e65ef6: Layer already exists 6e97bfdf959b: Retrying in 5 seconds 6e97bfdf959b: Retrying in 4 seconds 6e97bfdf959b: Retrying in 3 seconds 6e97bfdf959b: Retrying in 2 seconds 6e97bfdf959b: Retrying in 1 second 6e97bfdf959b: Pushed master-nightly: digest: sha256:9ec8d55d366a226627b0cda0653eb759673278afcfc9acdf2203daca11ecbeab size: 743
Now as mentioned before the private repo is a Nexus repository. I am fairly confident that it is not the issue, as the logs don’t show anything unusual.
I sadly don’t have any additional logs regarding the push. Quite frankly I don’t know how or where I could get more detailed logs of this attempt to push to the repository. So any pointers on how to get more logs are highly apprechiated!