-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
argocd-server panics with concurrent map read and write #19913
Comments
This may be fixed in later versions of k8s.io/apimachinery. |
Try upgrading to 2.13 or 2.12 and see if it fixes the issue. |
I am on 2.12 now but 2.10 is still a supported version. |
2.10.18 uses |
I've checked and 2.10 is not supported anymore per https://github.com/argoproj/argo-cd/security/policy#supported-versions. |
Though latest 2.11 has the same library version https://github.com/argoproj/argo-cd/blob/v2.11.12/go.mod#L314. |
Does 2.12 have the same issue? |
I will check through our logs today to see if it happened.
“We currently support the last 3 minor versions of Argo CD with security and bug fixes.” Isn’t 2.13 the latest version which would mean 2.10 is within 3 minor versions? |
It's 2.11, 2.12 and 2.13 |
Still happening in
|
What I think is happening is the informers to get or list secrets / config maps return a read only pointer and either we or the informer are editing the underlying struct. i will try to create a unit test reproducing and then submit a PR. |
I am seeing this happen in two places.
argocd-server-11-2.txt |
This seems to be also be the case with the |
All the thread dumps have the running thread accessing secrets. |
…rmers #19913 (#20805) * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rmers argoproj#19913 (argoproj#20805) * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com>
…rmers argoproj#19913 (argoproj#20805) * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> Signed-off-by: Adrian Aneci <aneci@adobe.com>
…rmers argoproj#19913 (argoproj#20805) * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * fix(server): make a copy of secret objects when listing from the informers Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> * e2e Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> --------- Signed-off-by: rumstead <37445536+rumstead@users.noreply.github.com> Signed-off-by: Alexandre Gaudreault <alexandre_gaudreault@intuit.com>
Checklist:
argocd version
.Describe the bug
Server is panicking from reading and writing to a map concurrently. I believe it is happening from
github.com/argoproj/argo-cd/v2/util/settings.(*SettingsManager).GetSettings
To Reproduce
Expected behavior
Screenshots
Version
Logs
argocd-server.log
The text was updated successfully, but these errors were encountered: