OCP部署OceanBase

telnet 2881有应答,telnet 62888返回400

麻烦在这里看下ocp_agent的状态,如果不是正常运行麻烦下载日志发下,然后点击右上角的重启OCP Agent 再试下

1 个赞

是正常的

1 个赞

操作系统用户是root,我用的是admin用户创建的,这个有关系吗?

1 个赞

没有关系,下载62888这个日志发下,然后重启下OCP Agent试下

1 个赞

HOST_LOG_host_192.168.10.151_20250313160017_20250313170017.zip (415.7 KB)

1 个赞

重启下OCP Agent后再重试还是不行,仍然是连接超时

1 个赞
2025-03-13T16:04:50.62765+08:00 ERROR [2229539,600957da5cf46f25] caller=config/config_notify.go:133:NotifyRemoteModuleConfig: notify config err:Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers) fields: notify address=api/v1/module/config/notify, module=__version_compatibility_test, process=ocp_monagent

2025-03-13T16:04:50.62787+08:00 ERROR [2229539,600957da5cf46f25] caller=config/config_notify.go:87:notifyModuleConfigs: notify module __version_compatibility_test err:Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2025-03-13T16:05:00.63263+08:00 ERROR [2229539,600957da5cf46f25] caller=config/config_notify.go:133:NotifyRemoteModuleConfig: notify config err:Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers) fields: module=monitor.node.host, process=ocp_monagent, notify address=api/v1/module/config/notify

2025-03-13T16:05:00.63277+08:00 ERROR [2229539,600957da5cf46f25] caller=config/config_notify.go:87:notifyModuleConfigs: notify module monitor.node.host err:Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers)

2025-03-13T16:05:00.63312+08:00 ERROR [2229539,600957da5cf46f25] caller=config/config_verify_save.go:98:UpdateConfig: update module config failed, config version:2025-03-13T16:04:29.3684+08:00, changed modules length:17, err:notify modules err:Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers),Module=api/client, kind=INTERNAL, code=api_request_failed; [api/v1/module/config/notify]
cause:
Post "http://socket/api/v1/module/config/notify": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
github.com/oceanbase/obagent/config.notifyModuleConfigs
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/config/config_notify.go:92
github.com/oceanbase/obagent/config.UpdateConfig
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/config/config_verify_save.go:96
github.com/oceanbase/obagent/api/common.UpdateConfigPropertiesHandler
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/config_handler.go:23
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/oceanbase/obagent/api/common.PostHandlers.func1
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/middleware.go:130
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/oceanbase/obagent/api/common.SetContentType
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/middleware.go:81
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/oceanbase/obagent/api/common.PreHandlers.func1
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/middleware.go:64
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.CustomRecoveryWithWriter.func1
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/recovery.go:102
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/oceanbase/obagent/api/common.HttpStatMiddleware
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/middleware.go:195
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/oceanbase/obagent/api/common.AuthorizeMiddleware
	/workspace/code-repo/rpm/.rpm_create/SOURCES/ocp-agent-ce/api/common/middleware_auth.go:135
github.com/gin-gonic/gin.(*Context).Next
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/context.go:174
github.com/gin-gonic/gin.(*Engine).handleHTTPRequest
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:620
github.com/gin-gonic/gin.(*Engine).ServeHTTP
	/home/admin/goworkspace/pkg/mod/github.com/gin-gonic/gin@v1.9.1/gin.go:576
net/http.serverHandler.ServeHTTP
	/home/admin/go/src/net/http/server.go:2947
net/http.(*conn).serve
	/home/admin/go/src/net/http/server.go:1991
runtime.goexit
	/home/admin/go/src/runtime/asm_amd64.s:1594
1 个赞

没看明白什么意思,是需要联网github?下的包不是离线安装吗

1 个赞

不是的,麻烦在151本机 telnet 127.0.0.1 62888 看下

1 个赞

151本机也连不上

1 个赞

ocp可以通过java命令重启,安装了OceanBase和OBProxy的机器关机后怎么重启呢?obd是通过指令停止集群的

1 个赞

不知道是不是通的,telnet 2881会有响应字符,telnet 62888一直在等待

1 个赞

这是153上telnet 151

1 个赞

:+1: :+1: :+1: :+1:

重装了OB集群,本机可以连接OBProxy,DBEaver连接不上


root@proxysys 是obproxy的管理用户,这样是连接不了的,可以使用业务用户试下,

重装后昨天那个问题还在吗?

可以通过OCP启动

都是经验啊

学习助手这个吧