部署玩ocp和添加完主机,想要连接集群却是失败连接集群zhutang失败, 请检查该集群sys租户root用户凭据是否正确,sys租户白名单设置是否正确,以及网络是否连通
凭证正确,白名单没有设置,网络也是通的,不知道什么原因,现在报这个错误Unhandled exception, type=NullPointerException
部署玩ocp和添加完主机,想要连接集群却是失败连接集群zhutang失败, 请检查该集群sys租户root用户凭据是否正确,sys租户白名单设置是否正确,以及网络是否连通
查一下对应报错时间范围的obproxy_error.log 日志,应该有报错详情信息
路径是?
发下OCP版本
以及包含报错时间的完整ocp-server.log
服务器搜下
find / -name "ocp-server.log"
OBServer状态是正常的吗?是用的2881端口吗?
2025-09-12 17:22:02.275 WARN 6621 --- [takeover-obs-process-check-executor3,,] c.o.o.o.i.c.ClusterOperationServiceImpl : doObsProcessCheck.createAgentExecutor failed! ObServer ip: 192.168.2.181
com.oceanbase.ocp.executor.exception.HttpRequestFailedException: [AgentClient]:http request is failed, response:Cannot get process info of can not found process observer listening on 2881, reason: %!v(MISSING)
at com.oceanbase.ocp.executor.internal.template.HttpTemplate.checkSuccess(HttpTemplate.java:479)
at com.oceanbase.ocp.executor.internal.template.HttpTemplate.doPost(HttpTemplate.java:289)
at com.oceanbase.ocp.executor.internal.template.HttpTemplate.post(HttpTemplate.java:117)
at com.oceanbase.ocp.executor.executor.AgentExecutor.getObProcessInfo(AgentExecutor.java:454)
at com.oceanbase.ocp.obops.internal.cluster.ClusterOperationServiceImpl.doObsProcessCheck(ClusterOperationServiceImpl.java:1596)
at com.oceanbase.ocp.obops.internal.cluster.ClusterOperationServiceImpl.lambda$obsProcessCheck$20(ClusterOperationServiceImpl.java:1552)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:750)
2025-09-12 17:22:02.330 ERROR 6621 --- [http-nio-0.0.0.0-8080-exec-2,ed709dd52646aa43,d575b1ea2279a768] c.o.o.s.c.trace.RequestTracingAspect : Unexpected API Error: [POST /api/v2/ob/clusters/takeOverPreCheck client=10.10.1.248, traceId=ed709dd52646aa43, args=TakeOverClusterPreCheckParam(connectionMode=proxy, clusterName=zhutang, vpcName=null, vpcId=1, obClusterId=null, rootSyspassword=xxx proxyropassword=xxx saveToCredential=true, address=192.168.2.171, port=2883),, duration=968 ms]
java.lang.NullPointerException: null
另外ocp server机器和observer机器时间同步吗?
都正常,时间也是同步的Unhandled exception, type=NullPointerException就是这个提示
看日志你ocp server服务器时间比标准时间快啊?
包含报错时间段的 完整mgragent.log也压缩发下
服务器之间有防火墙吗?
通过obclient黑屏从ocp机器能连上集群每台机器2881端口不
学习了
学习~