【 TiDB 使用环境】生产环境
【 TiDB 版本】7.5.0
【复现路径】没有
【遇到的问题:问题现象及影响】使用k8s+kubesphere+operator的方式部署tidb 有天打开发现有个tikv启动失败
【资源配置】
【附件:截图/日志/监控】
还有一个问题是 默认部署的tidb集群是UTC时区 我想改成上海时区 需要 kv pd tidb都重新启动吗? 重启的顺序是什么呢?
好的👌 感谢回复🙏 关于上面tikv启动失败的问题我可以怎么解决一下呢 部署好之后没有手动重启过 应该是k8s自己调度启动的 之前一直是3个kv节点
修改时区配置不需要重启组件,使用
SET GLOBAL time_zone = timezone;
参考:https://docs.pingcap.com/zh/tidb/stable/configure-time-zone#时区支持
如果没有部署tiflash 和 drainer 和 tidc的话可以跳过的吗
感谢感谢🙏
tikv报错看上去是配置文件的问题。建议检查一下节点下的配置文件和其他节点下的配置文件是否不同。
是的,可以跳过。
好的 我看游戏i啊配置文件和其他的kv是否有不同的地方
麻烦您了 还有一个问题是 集群里自带的dashboard面板因为部署了三个节点 有时候调度到其他的节点面板就打不开了 然后我手动部署了独立的 dashboard 但是打开网页提示这个
{
“error”: true,
“message”: “Invalid Semantic Version”,
“code”: “common.internal”,
“full_text”: “Invalid Semantic Version\n at github.com/pingcap/tidb-dashboard/util/rest.Error()\n\t/go/src/github.com/pingcap/tidb-dashboard/util/rest/context_helpers.go:19\n at github.com/pingcap/tidb-dashboard/pkg/apiserver/info.(*Service).infoHandler()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/apiserver/info/info.go:86\n at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n at github.com/pingcap/tidb-dashboard/util/rest.ErrorHandlerFn.func1()\n\t/go/src/github.com/pingcap/tidb-dashboard/util/rest/error.go:70\n at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n at github.com/gin-contrib/gzip.Gzip.func2()\n\t/go/pkg/mod/github.com/gin-contrib/gzip@v0.0.1/gzip.go:47\n at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n at github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99\n at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n at github.com/gin-gonic/gin.(*Engine).handleHTTPRequest()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489\n at github.com/gin-gonic/gin.(*Engine).ServeHTTP()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445\n at github.com/pingcap/tidb-dashboard/pkg/apiserver.(*Service).handler()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/apiserver/apiserver.go:244\n at net/http.HandlerFunc.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2109\n at github.com/pingcap/tidb-dashboard/pkg/utils.(*ServiceStatus).NewStatusAwareHandler.func1()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/utils/service_status.go:67\n at net/http.HandlerFunc.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2109\n at net/http.(*ServeMux).ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2487\n at net/http.serverHandler.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2947\n at net/http.(*conn).serve()\n\t/usr/local/go/src/net/http/server.go:1991\n at runtime.goexit()\n\t/usr/local/go/src/runtime/asm_amd64.s:1594”
}
这个报错还真没遇到过,看看其他同学有没有遇到过吧。
哈哈好的 感谢感谢
不知道是不是我部署的配置没有配置对
调了一下报错格式
{
"error": true,
"message": "Invalid Semantic Version",
"code": "common.internal",
"full_text": "Invalid Semantic Version\n
at github.com/pingcap/tidb-dashboard/util/rest.Error()\n\t/go/src/github.com/pingcap/tidb-dashboard/util/rest/context_helpers.go:19\n
at github.com/pingcap/tidb-dashboard/pkg/apiserver/info.(*Service).infoHandler()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/apiserver/info/info.go:86\n
at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n
at github.com/pingcap/tidb-dashboard/util/rest.ErrorHandlerFn.func1()\n\t/go/src/github.com/pingcap/tidb-dashboard/util/rest/error.go:70\n
at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n
at github.com/gin-contrib/gzip.Gzip.func2()\n\t/go/pkg/mod/github.com/gin-contrib/gzip@v0.0.1/gzip.go:47\n
at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n
at github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/recovery.go:99\n
at github.com/gin-gonic/gin.(*Context).Next()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/context.go:165\n
at github.com/gin-gonic/gin.(*Engine).handleHTTPRequest()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:489\n
at github.com/gin-gonic/gin.(*Engine).ServeHTTP()\n\t/go/pkg/mod/github.com/gin-gonic/gin@v1.7.4/gin.go:445\n
at github.com/pingcap/tidb-dashboard/pkg/apiserver.(*Service).handler()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/apiserver/apiserver.go:244\n
at net/http.HandlerFunc.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2109\n
at github.com/pingcap/tidb-dashboard/pkg/utils.(*ServiceStatus).NewStatusAwareHandler.func1()\n\t/go/src/github.com/pingcap/tidb-dashboard/pkg/utils/service_status.go:67\n
at net/http.HandlerFunc.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2109\n at net/http.(*ServeMux).ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2487\n
at net/http.serverHandler.ServeHTTP()\n\t/usr/local/go/src/net/http/server.go:2947\n at net/http.(*conn).serve()\n\t/usr/local/go/src/net/http/server.go:1991\n
at runtime.goexit()\n\t/usr/local/go/src/runtime/asm_amd64.s:1594"
}
看起来是没正确取到版本信息
https://github.com/pingcap/tidb-dashboard/blob/release-7.5/pkg/apiserver/info/info.go#L86
kubesphere 的配置可以确认下?所有pod都是互通的么,端口也都放开了?
感谢回复🙏 我查看一下pod节点 ping一下试试 端口也检查一下