Skip to content
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.
This repository has been archived by the owner on Dec 4, 2023. It is now read-only.

fatal error: concurrent map writes on startup of console. #5314

Open
k-wall opened this issue Sep 22, 2021 · 0 comments
Open

fatal error: concurrent map writes on startup of console. #5314

k-wall opened this issue Sep 22, 2021 · 0 comments
Labels

Comments

@k-wall
Copy link
Member

k-wall commented Sep 22, 2021

Describe the bug

kwall@Oslo amq-online-images % oc logs -p console-796685c5b6-vczd2 -c console-server
2021-09-22T09:00:22.367Z console-server starting
2021-09-22T09:00:22.367Z Namespace: amq-online-infra
fatal error: concurrent map writes

goroutine 44 [running]:
runtime.throw(0x1ae13a0, 0x15)
/usr/local/go/src/runtime/panic.go:774 +0x72 fp=0xc0009a7088 sp=0xc0009a7058 pc=0x42ff22
runtime.mapassign_faststr(0x1869560, 0xc0002906c0, 0xc000046440, 0x1f, 0x1)
/usr/local/go/src/runtime/map_faststr.go:211 +0x417 fp=0xc0009a70f0 sp=0xc0009a7088 pc=0x414c97
github.com/enmasseproject/enmasse/pkg/util.HasApi(0x1adb803, 0x11, 0x1ac8194, 0x2, 0x1ac8d7f, 0x4, 0x10)
/tmp/amq-online-1.7/pkg/util/openshift.go:71 +0x254 fp=0xc0009a71f0 sp=0xc0009a70f0 pc=0x11aefc4
github.com/enmasseproject/enmasse/pkg/consolegraphql/server/query.getLoggedOnUser(0xc000463400, 0x1e450a0, 0xc000304390, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, 0x0, ...)
/tmp/amq-online-1.7/pkg/consolegraphql/server/query/handler.go:273 +0x88 fp=0xc0009a7520 sp=0xc0009a71f0 pc=0x16cc468
github.com/enmasseproject/enmasse/pkg/consolegraphql/server/query.AuthHandler.func1(0x1e273e0, 0xc00051d8c0, 0xc000463400)
/tmp/amq-online-1.7/pkg/consolegraphql/server/query/handler.go:156 +0xdfd fp=0xc0009a7ac0 sp=0xc0009a7520 pc=0x16cdeed
net/http.HandlerFunc.ServeHTTP(0xc000652b10, 0x1e273e0, 0xc00051d8c0, 0xc000463400)
/usr/local/go/src/net/http/server.go:2007 +0x44 fp=0xc0009a7ae8 sp=0xc0009a7ac0 pc=0x7bff44
net/http.(*ServeMux).ServeHTTP(0xc000319040, 0x1e273e0, 0xc00051d8c0, 0xc000463400)
/usr/local/go/src/net/http/server.go:2387 +0x1bd fp=0xc0009a7b48 sp=0xc0009a7ae8 pc=0x7c1e1d
github.com/alexedwards/scs/v2.(*SessionManager).LoadAndSave.func1(0x1e37d20, 0xc000644000, 0xc000463300)
/tmp/amq-online-1.7/vendor/github.com/alexedwards/scs/v2/session.go:136 +0x205 fp=0xc0009a7bf0 sp=0xc0009a7b48 pc=0x15d66a5
net/http.HandlerFunc.ServeHTTP(0xc000566000, 0x1e37d20, 0xc000644000, 0xc000463300)
/usr/local/go/src/net/http/server.go:2007 +0x44 fp=0xc0009a7c18 sp=0xc0009a7bf0 pc=0x7bff44
net/http.serverHandler.ServeHTTP(0xc00016c540, 0x1e37d20, 0xc000644000, 0xc000463300)
/usr/local/go/src/net/http/server.go:2802 +0xa4 fp=0xc0009a7c48 sp=0xc0009a7c18 pc=0x7c3394
net/http.(*conn).serve(0xc000136640, 0x1e3d3e0, 0xc00051d380)
/usr/local/go/src/net/http/server.go:1890 +0x875 fp=0xc0009a7fc8 sp=0xc0009a7c48 pc=0x7bed35
runtime.goexit()
/usr/local/go/src/runtime/asm_amd64.s:1357 +0x1 fp=0xc0009a7fd0 sp=0xc0009a7fc8 pc=0x45d1e1
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:2927 +0x38e

To Reproduce
Steps to reproduce the behavior:

  1. Go to '...'
  2. Click on '....'
  3. Scroll down to '....'
  4. See error

Expected behavior
A clear and concise description of what you expected to happen.

Screenshots
If applicable, add screenshots to help explain your problem.

Additional context
Add any other context about the problem here.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant