OceanBase 加入小组

15个成员 14个话题 创建时间:2021-02-09

【故障处理】obproxy部署时提示版本不匹配的问题

发表于2021-04-21 2303次查看

【故障描述】

OB集群的基本情况:

 

OB集群的告警信息:

 

创建Obproxy集群时失败

 

 

 

报错的具体任务如下:

 

查看任务的日志信息:

2021-04-10 16:32:19.479  INFO 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.c.metadb.task.TaskInstanceEntity   : task 1002844 run with context Context(parallelIdx=2, stringMap={root_proxy_sys_password=, cluster_name=testproxy, package_version=1.9.1.2-1919592, target_obproxy_status=RUNNING, service_name=testproxy, package_name=obproxy, target_operate_status=NORMAL, task_operation=execute, obproxy_parameter_version=1, obproxy_cluster_id=2}, listMap={commands_to_check=[nc], obproxy_server_ids=[4, 5, 6], host_ids=[3, 4, 2]})


2021-04-10 16:32:19.486  INFO 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.c.metadb.task.TaskInstanceEntity   : executor node ip:96.0.212.94


2021-04-10 16:32:19.500  INFO 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.s.o.o.SystemOdpOperatorFactory     : Failed to obtain password from system vault, return default password []


2021-04-10 16:32:19.505  WARN 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.ocp.core.odpsdk.OdpDrizzleOperator   : Failed to check odp connection DrizzleConnection {driverClassName ='org.drizzle.jdbc.DrizzleDriver', connectionProperties ='[user=root@proxysys, url=jdbc:mysql:thin://96.0.212.95:2883/]'}, error is Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not connect: Incomplete read! Expected 4, got -1


2021-04-10 16:32:19.508  INFO 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.s.o.o.SystemOdpOperatorFactory     : odp operator not usable, try use default password


2021-04-10 16:32:19.511  WARN 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.ocp.core.odpsdk.OdpDrizzleOperator   : Failed to check odp connection DrizzleConnection {driverClassName ='org.drizzle.jdbc.DrizzleDriver', connectionProperties ='[user=root@proxysys, url=jdbc:mysql:thin://96.0.212.95:2883/]'}, error is Failed to obtain JDBC Connection; nested exception is java.sql.SQLNonTransientConnectionException: Could not connect: Incomplete read! Expected 4, got -1


2021-04-10 16:32:19.514 ERROR 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] com.alipay.ocp.core.util.ExceptionUtils  : Checked Exception: com.alipay.ocp.core.exception.UnexpectedException occurred with code error.common.unexpected, and args [odp operator not usable, check odp server process, port and root@proxysys password]


2021-04-10 16:32:19.517 ERROR 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.core.task.manager.TaskManagerImpl  : got exception while execute task:


com.alipay.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=COMMON_UNEXPECTED, args=odp operator not usable, check odp server process, port and root@proxysys password
	at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) ~[na:1.8.0_275]
	at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:80) ~[na:1.8.0_275]
	at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) ~[na:1.8.0_275]
	at java.lang.reflect.Constructor.newInstance(Constructor.java:423) ~[na:1.8.0_275]
	at com.alipay.ocp.core.util.ExceptionUtils.newException(ExceptionUtils.java:96) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.util.ExceptionUtils.throwException(ExceptionUtils.java:90) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:71) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.service.operation.obproxy.SystemOdpOperatorFactory.createOdpOperator(SystemOdpOperatorFactory.java:64) ~[ocp-service-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.service.task.business.obproxy.SetObproxyRootPasswordTask.run(SetObproxyRootPasswordTask.java:45) ~[ocp-service-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.metadb.task.TaskInstanceEntity.run(TaskInstanceEntity.java:192) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.task.manager.TaskManagerImpl.lambda$null$1(TaskManagerImpl.java:186) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.task.manager.TaskManagerImpl.redirectOutputIfNotSysSchedule(TaskManagerImpl.java:241) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at com.alipay.ocp.core.task.manager.TaskManagerImpl.lambda$executeTask$2(TaskManager
Impl.java:159) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) ~[na:1.8.0_275]
	at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[na:1.8.0_275]
	at com.alipay.ocp.core.thread.TraceDecorator.lambda$decorate$0(TraceDecorator.java:28) ~[ocp-core-2.5.1-20210220.jar!/:2.5.1-20210220]
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) ~[na:1.8.0_275]
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) ~[na:1.8.0_275]
	at java.lang.Thread.run(Thread.java:874) ~[na:1.8.0_275]



2021-04-10 16:32:19.526  INFO 53 --- [operation-task-3,82709e0218c24ede,b92cc1e8030e] c.a.o.c.metadb.task.TaskInstanceEntity   : set state failed for task: 1002844

 

部署proxy集群的基本情况:

 

显示OB proxy的配置版本和集群版本不一致,请刷新配置。

 

【解决方法】

在安装obproxy时,在OCP界面上设置一个参数启动参数位置,设置

skip_proxy_sys_private_checked = true

发表回复
你还没有登录,请先 登录或 注册!