-
Notifications
You must be signed in to change notification settings - Fork 41.2k
build-image fails sometimes with ArrayIndexOutOfBoundsException #29307
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
Comments
From the stacktrace it looks like this is in the low level code that reads Docker log messages. It looks like we're reading an incorrect stream type value somehow. It's going to be hard to replicate, but we can at least guard against the failure and continue. @nils-christian Do the logs look correct on failed builds? |
@nils-christian Can you provide any additional details about the environment the image build runs in, like the operating system, whether you are using Docker Engine or another Docker daemon, etc? |
Hi @philwebb, Currently we do not save the log files. We changed that so that we can check them the next time the issue occures. Best regards, Nils |
Hello @scottfrederick,
If you need any more information, please feel free to ask. Best regards |
@gutschet Thanks for the additional info. I was curious if you were running something other than Docker Engine, or an older Docker Engine, or something else that might cause the daemon to give responses that are different from what we see in our testing. Docker Engine 20.10.5 is close to what we use, so that's not likely to be part of the root cause. As @philwebb said, this is difficult for us to reproduce to come up with a fix. If it is possible to provide logs as @nils-christian stated above that would be helpful. |
If you would like us to look at this issue, please provide the requested information. If the information is not provided within the next 7 days this issue will be closed. |
Closing due to lack of requested feedback. If you would like us to look at this issue, please provide the requested information and we will re-open the issue. |
Reopening because even without the sample it’s probably worth guarding against the exception. |
I submitted a PR which ignores events with an invalid stream type: #29675 |
Thanks @mhalbritter. Closing in favor of PR #29675 |
Hi,
We are experiencing an ArrayIndexOutOfBoundsException in some very rare cases while building our image with the spring-boot-maven-plugin. We are using Spring Boot 2.4.6. Unfortunately we cannot provide an example project, because the error cannot be reproduced. It happens in something like 1 of 50 builds. Can we somehow do something for a better analysis? Is there a possible root cause?
Best regards
Nils
The text was updated successfully, but these errors were encountered: