-
Notifications
You must be signed in to change notification settings - Fork 217
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
Stacktrace when scanning k8s containers and no info about the problem #2101
Comments
I forgot to say that the pod running the operator is stable, up&running for days. No issue there. The stacktrace I mention is not in the operator but probably in the pod that runs the vulnerability scan. And the fix for issue 2101 (this issue) is probably just returning something else than a stacktrace in the logs because Trivy-operator is stable and working. Something that helps to find why the pod running the vulnerability scan failed (I have its name in the log, but only its name). |
@ymettier is it happen on specific image ? every time ? can you share it (if it public) ? |
I fixed my initial problem. I was switch from one private registry to another. Both are "insecure" but I forgot to add the new one in the configuration. My first problem is fixed. About this issue, it happened on all images that were on my private registry. Every time of course. In fact, the problem should appear at least every time that Trivy fails to retrieve an image. You can reproduce my problem by creating a deployment/statefulset with some broken image :
How can you troubleshoot the problem with only the log with the stacktrace ? |
@ymettier can you please elaborate on problems:
|
I was able to reproduce the same stacktrace with a minimal example as described in #2095 (comment). |
When the private registries are correctly configured : it works. However, with the above deployment that helps to reproduce the problem, I guess that bad-configured private registries are just another way to reproduce the problem. |
Hello, I did encounter the same issue as, from your discussion i understand that the issue seems to came from my private registry configuration. But where ? I don't know (even after a lot of research / test)... |
I share @urcus 's comments as it was my "first problem" in the description of the issue. However, this issue is expliciteliy not about this and it is solved and closed. A new issue should be open to get more explicit information when trivy fails. (and thanks @chen-keinan for the fix! ) |
Using
I have 2 problems. The first one, I cannot investigate because of the second one. So this issue is not about the first problem but about the second one.
How I reproduce the problem
Here is the second problem.
To make it easier to read, let's show the above message with
printf
:In the source code I understand that
The issue
The issue is that I have a problem when the operator scans a container. I know it in the logs, but
I will try to investigate on my first problem, but for this one, could you make the logs more explicite please ?
my helm values
The text was updated successfully, but these errors were encountered: