Hi,
Currently I have upgraded to the latest version of the temporal service 1.14.4 and trying to deploy k8s with the existing the database(cockroach), and I have taken necessary steps on the database and clean up the cluster-metadata & cluster-membership tables. Please let me know what would be causing the issue?
clusterMetadata:
enableGlobalNamespace: false
failoverVersionIncrement: 10
masterClusterName: “active”
currentClusterName: “active”
clusterInformation:
active:
enabled: true
initialFailoverVersion: 1
rpcName: “frontend”
rpcAddress: “frontend:7233”
I am getting the below two errors in the frontend pod.
Error-1
{“level”:“error”,“ts”:“2022-02-01T18:09:34.181Z”,“msg”:“Supplied configuration key/value mismatches persisted cluster metadata. Continuing with the persisted value as this value cannot be changed once initialized.”,“component”:“metadata-initializer”,“key”:“clusterInformation.RPCAddress”,“ignored-value”:{“Enabled”:true,“InitialFailoverVersion”:1,“RPCAddress”:“100.127.24.223:7233”},“value”:{“Enabled”:true,“InitialFailoverVersion”:1,“RPCAddress”:“100.127.92.163:7233”},“logging-call-at”:“fx.go:713”,“stacktrace”:“go.temporal.io/server/common/log.(*zapLogger).Error\n\t/temporal/common/log/zap_logger.go:142\ngo.temporal.io/server/temporal.loadClusterInformationFromStore\n\t/temporal/temporal/fx.go:713\ngo.temporal.io/server/temporal.ApplyClusterMetadataConfigProvider\n\t/temporal/temporal/fx.go:669\nreflect.Value.call\n\t/usr/local/go/src/reflect/value.go:476\nreflect.Value.Call\n\t/usr/local/go/src/reflect/value.go:337\ngo.uber.org/dig.defaultInvoker\n\t/temporal/vendor/go.uber.org/dig/dig.go:439\ngo.uber.org/dig.(*node).Call\n\t/temporal/vendor/go.uber.org/dig/dig.go:912\ngo.uber.org/dig.paramSingle.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:240\ngo.uber.org/dig.paramObjectField.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:396\ngo.uber.org/dig.paramObject.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:323\ngo.uber.org/dig.paramList.BuildList\n\t/temporal/vendor/go.uber.org/dig/param.go:196\ngo.uber.org/dig.(*node).Call\n\t/temporal/vendor/go.uber.org/dig/dig.go:903\ngo.uber.org/dig.paramGroupedSlice.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:458\ngo.uber.org/dig.paramObjectField.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:396\ngo.uber.org/dig.paramObject.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:323\ngo.uber.org/dig.paramList.BuildList\n\t/temporal/vendor/go.uber.org/dig/param.go:196\ngo.uber.org/dig.(*node).Call\n\t/temporal/vendor/go.uber.org/dig/dig.go:903\ngo.uber.org/dig.paramSingle.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:240\ngo.uber.org/dig.paramList.BuildList\n\t/temporal/vendor/go.uber.org/dig/param.go:196\ngo.uber.org/dig.(*node).Call\n\t/temporal/vendor/go.uber.org/dig/dig.go:903\ngo.uber.org/dig.paramSingle.Build\n\t/temporal/vendor/go.uber.org/dig/param.go:240\ngo.uber.org/dig.paramList.BuildList\n\t/temporal/vendor/go.uber.org/dig/param.go:196\ngo.uber.org/dig.(*Container).Invoke\n\t/temporal/vendor/go.uber.org/dig/dig.go:587\ngo.uber.org/fx.(*App).executeInvoke\n\t/temporal/vendor/go.uber.org/fx/app.go:873\ngo.uber.org/fx.(*App).executeInvokes\n\t/temporal/vendor/go.uber.org/fx/app.go:846\ngo.uber.org/fx.New\n\t/temporal/vendor/go.uber.org/fx/app.go:594\ngo.temporal.io/server/temporal.NewServerFx\n\t/temporal/temporal/fx.go:97\ngo.temporal.io/server/temporal.NewServer\n\t/temporal/temporal/server.go:58\nmain.buildCLI.func2\n\t/temporal/cmd/server/main.go:163\ngithub.com/urfave/cli/v2.(*Command).Run\n\t/temporal/vendor/github.com/urfave/cli/v2/command.go:163\ngithub.com/urfave/cli/v2.(*App).RunContext\n\t/temporal/vendor/github.com/urfave/cli/v2/app.go:313\ngithub.com/urfave/cli/v2.(*App).Run\n\t/temporal/vendor/github.com/urfave/cli/v2/app.go:224\nmain.main\n\t/temporal/cmd/server/main.go:51\nruntime.main\n\t/usr/local/go/src/runtime/proc.go:225”}
Error-2
panic: runtime error: invalid memory address or nil pointer dereference
[signal SIGSEGV: segmentation violation code=0x1 addr=0x0 pc=0x1ce6034]
goroutine 1 [running]:
go.temporal.io/server/common/rpc/encryption.newServerTLSConfig(0x292f638, 0xc0006343f0, 0x291b970, 0xc000e4fb70, 0xc0000eaad0, 0x292f3f8, 0xc0009a73c0, 0x8, 0x2540be400, 0x0)
/temporal/common/rpc/encryption/localStoreTlsProvider.go:255 +0x134
go.temporal.io/server/common/rpc/encryption.(*localStoreTlsProvider).GetFrontendServerConfig.func1(0xc000258cc0, 0x252f671, 0xd)
/temporal/common/rpc/encryption/localStoreTlsProvider.go:162 +0x7a
go.temporal.io/server/common/rpc/encryption.(*localStoreTlsProvider).getOrCreateConfig(0xc000258cc0, 0xc000258d38, 0xc000d51de8, 0x254c001, 0x0, 0x0, 0x0)
/temporal/common/rpc/encryption/localStoreTlsProvider.go:232 +0xd3
go.temporal.io/server/common/rpc/encryption.(*localStoreTlsProvider).GetFrontendServerConfig(0xc000258cc0, 0xc00088eee8, 0x2341820, 0xc00088ef00)
/temporal/common/rpc/encryption/localStoreTlsProvider.go:159 +0x72
go.temporal.io/server/common/rpc.(*RPCFactory).GetFrontendGRPCServerOptions(0xc0001841e0, 0x0, 0x0, 0x2540be400, 0xc000d51ed0, 0x40375a)
/temporal/common/rpc/rpc.go:74 +0x67
go.temporal.io/server/service/frontend.GrpcServerOptionsProvider(0x292f3f8, 0xc0009a73c0, 0xc001001200, 0x29335c8, 0xc0001841e0, 0xc000d0a1e0, 0xc000d68750, 0xc000140500, 0xc000d68c30, 0xc000140600, …)
/temporal/service/frontend/fx.go:152 +0x1f0