I checked and found that a runtime error occurred in the graphql server.
When I try to process the litmusctl command with the password of the admin account as the initial password 'litmus' and a random string created by the password generator, I get the same error.
{"body_size":109,"client_ip":"111.222.333.444","error":"","file":"/gql-server/api/middleware/logger.go:60","func":"github.com/litmuschaos/litmus/chaoscenter/graphql/server/api/middleware.Structure
runtime error: invalid memory address or nil pointer dereference
goroutine 591 [running]:
runtime/debug.Stack()
/usr/local/go/src/runtime/debug/stack.go:24 +0x65
runtime/debug.PrintStack()
/usr/local/go/src/runtime/debug/stack.go:16 +0x19
github.com/99designs/gqlgen/graphql.DefaultRecover({0xafd5c6?, 0x0?}, {0x1be0400?, 0x3040f00?})
/go/pkg/mod/github.com/99designs/[email protected]/graphql/recovery.go:16 +0x71
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executionContext)._Query_getServerVersion.func1()
/gql-server/graph/generated/generated.go:23220 +0x71
panic({0x1be0400, 0x3040f00})
/usr/local/go/src/runtime/panic.go:884 +0x213
github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/chaos_infrastructure.(*infraService).QueryServerVersion(0x1a0c665?, {0x21e8370?, 0xc007b5f770?})
/gql-server/pkg/chaos_infrastructure/service.go:925 +0x49
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph.(*queryResolver).GetServerVersion(0xc0004678c0?, {0x21e8370?, 0xc007b5f770?})
/gql-server/graph/chaos_infrastructure.resolvers.go:197 +0x31
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executionContext)._Query_getServerVersion.func2({0x21e8370?, 0xc007b5f770})
/gql-server/graph/generated/generated.go:23234 +0x77
github.com/99designs/gqlgen/graphql/executor.processExtensions.func3({0x21e8370?, 0xc007b5f770?}, 0xc000bb89c0?)
/go/pkg/mod/github.com/99designs/[email protected]/graphql/executor/extensions.go:62 +0x26
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executionContext)._Query_getServerVersion(0xc0005b47c0, {0x21e8370, 0xc007b5f740}, {0xc0006ca680?, {0xc00071e660?, 0x10?,
/gql-server/graph/generated/generated.go:23232 +0x243
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executionContext)._Query.func13()
/gql-server/graph/generated/generated.go:32706 +0x90
github.com/99designs/gqlgen/graphql.(*FieldSet).Dispatch(0xc0003847d0)
/go/pkg/mod/github.com/99designs/[email protected]/graphql/fieldset.go:34 +0x8e
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executionContext)._Query(0xc0005b47c0, {0x21e8370, 0xc007b5f710}, {0xc0005b4570, 0x1, 0x1})
/gql-server/graph/generated/generated.go:32963 +0x41e7
github.com/litmuschaos/litmus/chaoscenter/graphql/server/graph/generated.(*executableSchema).Exec.func1({0x21e8370?, 0xc007b5f710?})
/gql-server/graph/generated/generated.go:4340 +0x5b
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1.1({0x21e8370, 0xc007b5f710})
/go/pkg/mod/github.com/99designs/[email protected]/graphql/executor/executor.go:105 +0x2b
github.com/99designs/gqlgen/graphql/executor.processExtensions.func2({0x21e8370?, 0xc007b5f710?}, 0x1b33b60?)
/go/pkg/mod/github.com/99designs/[email protected]/graphql/executor/extensions.go:59 +0x26
github.com/99designs/gqlgen/graphql/executor.(*Executor).DispatchOperation.func1.1({0x21e8370, 0xc007b5f6b0})
/go/pkg/mod/github.com/99designs/[email protected]/graphql/executor/executor.go:104 +0x110
github.com/99designs/gqlgen/graphql/handler/transport.POST.Do({}, {0x7efde0f59178, 0xc0001bee00}, 0xc000aa6300, {0x21daf70, 0xc0005b6240})
/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/transport/http_post.go:52 +0x308
github.com/99designs/gqlgen/graphql/handler.(*Server).ServeHTTP(0xc0007bc220, {0x7efde0f59178, 0xc0001bee00}, 0xc000aa6300)
/go/pkg/mod/github.com/99designs/[email protected]/graphql/handler/server.go:115 +0x273
github.com/litmuschaos/litmus/chaoscenter/graphql/server/pkg/authorization.Middleware.func1(0xc0001bee00)
/gql-server/pkg/authorization/middleware.go:39 +0x2a5
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1(0xc0001bee00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/recovery.go:102 +0x82
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
github.com/litmuschaos/litmus/chaoscenter/graphql/server/api/middleware.StructuredLogger.func1(0xc0001bee00)
/gql-server/api/middleware/logger.go:26 +0x9a
github.com/gin-gonic/gin.(*Context).Next(...)
/go/pkg/mod/github.com/gin-gonic/[email protected]/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest(0xc000449d40, 0xc0001bee00)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:620 +0x66b
github.com/gin-gonic/gin.(*Engine).ServeHTTP(0xc000449d40, {0x21e71e0?, 0xc0009247e0}, 0xc0001bf600)
/go/pkg/mod/github.com/gin-gonic/[email protected]/gin.go:576 +0x1dd
net/http.serverHandler.ServeHTTP({0x21d9178?}, {0x21e71e0, 0xc0009247e0}, 0xc0001bf600)
/usr/local/go/src/net/http/server.go:2936 +0x316
net/http.(*conn).serve(0xc000530cf0, {0x21e8370, 0xc0002a1d70})
/usr/local/go/src/net/http/server.go:1995 +0x612
created by net/http.(*Server).Serve
/usr/local/go/src/net/http/server.go:3089 +0x5ed
$ litmusctl version
Litmusctl version: 1.4.0
Compatible ChaosCenter versions:
[ '3.0.0' '3.1.0' '3.2.0' '3.3.0' '3.4.0' '3.5.0' ]
$ helm list -n litmus
NAME NAMESPACE REVISION UPDATED STATUS CHART APP VERSION
chaos litmus 1 2024-03-25 14:56:51.308193 +0900 KST deployed litmus-3.1.0 3.1.0