ocp 添加主机报错

ocp最新版本

2024-06-21 14:10:25.470 WARN 18139 — [pool-manual-subtask-executor8,559e6b4d6c7c49d7,5a151b3c4d0a] c.o.ocp.core.task.util.ClockDiff : Clock-diff failed. args=[10.9.12.10], exception={}. Please try other ocp.host.check.clock-diff.mode in System Parameters

org.apache.commons.exec.ExecuteException: Process exited with an error: 1 (Exit value: 1)
at org.apache.commons.exec.DefaultExecutor.executeInternal(DefaultExecutor.java:404)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:166)
at org.apache.commons.exec.DefaultExecutor.execute(DefaultExecutor.java:153)
at com.oceanbase.ocp.core.util.LocalCommandExecutor.exec(LocalCommandExecutor.java:50)
at com.oceanbase.ocp.core.task.util.ClockDiff.execute(ClockDiff.java:95)
at com.oceanbase.ocp.core.task.util.ClockDiff.diffWithIcmpTimestamp(ClockDiff.java:52)
at com.oceanbase.ocp.core.task.util.ClockDiff$ClockDiffMode.doRun(ClockDiff.java:172)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.checkIsRemoteClockDiffAcceptable(PreCreateHostCheckTask.java:107)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.run(PreCreateHostCheckTask.java:68)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.retry(PreCreateHostCheckTask.java:75)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.retry(JavaSubtaskRunner.java:76)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.doRun(JavaSubtaskRunner.java:35)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.run(JavaSubtaskRunner.java:26)
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.doRun(RunnerFactory.java:76)
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.doRun(SubtaskExecutor.java:203)
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.redirectConsoleOutput(SubtaskExecutor.java:197)
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.lambda$submit$2(SubtaskExecutor.java:134)
at jav
a.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)

2024-06-21 14:10:25.484 ERROR 18139 — [pool-manual-subtask-executor8,559e6b4d6c7c49d7,5a151b3c4d0a] c.o.ocp.core.util.ExceptionUtils : Checked Exception: com.oceanbase.ocp.core.exception.UnexpectedException occurred with code error.common.unexpected, and args [Execute clock diff failed., 10.9.12.10]

2024-06-21 14:10:25.491 ERROR 18139 — [pool-manual-subtask-executor8,559e6b4d6c7c49d7,5a151b3c4d0a] c.o.o.c.t.e.c.w.subtask.SubtaskExecutor : An unknown error has occurred. Cause: Execute clock diff failed… Error message: 10.9.12.10. Contact the administrator.

com.oceanbase.ocp.core.exception.UnexpectedException: [OCP UnexpectedException]: status=500 INTERNAL_SERVER_ERROR, errorCode=COMMON_UNEXPECTED, args=Execute clock diff failed.,10.9.12.10
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:423)
at com.oceanbase.ocp.core.util.ExceptionUtils.newException(ExceptionUtils.java:96)
at com.oceanbase.ocp.core.util.ExceptionUtils.throwException(ExceptionUtils.java:90)
at com.oceanbase.ocp.core.util.ExceptionUtils.unExpected(ExceptionUtils.java:77)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.checkIsRemoteClockDiffAcceptable(PreCreateHostCheckTask.java:108)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.run(PreCreateHostCheckTask.java:68)
at com.oceanbase.ocp.service.task.business.host.PreCreateHostCheckTask.retry(PreCreateHostCheckTask.java:75)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.retry(JavaSubtaskRunner.java:76)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.doRun(JavaSubtaskRunner.java:35)
at com.oceanbase.ocp.core.task.engine.runner.JavaSubtaskRunner.run(JavaSubtaskRunner.java:26)
at com.oceanbase.ocp.core.task.engine.runner.RunnerFactory.doRun(RunnerFactory.java:76)
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.doRun(SubtaskExecutor.java:203)
at com.oceanbase.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.redirectConsoleOutput(SubtaskExecutor.java:197)
at com.oceanba
se.ocp.core.task.engine.coordinator.worker.subtask.SubtaskExecutor.lambda$submit$2(SubtaskExecutor.java:134)
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)

Set state for subtask: 1743, operation:RETRY, state: FAILED

1 个赞


时钟有问题没 ?

没有问题 ,我看网上有些也说是时间问题,但是我调了没有用

你是怎么调的??

  1. ntpdate ntp1.aliyun.com

可以所有的机器都试下。

ntpdate ntp1.aliyun.com
21 Jun 15:04:46 ntpdate[1569]: the NTP socket is in use, exiting

21 Jun 15:10:06 ntpdate[1765]: adjust time server 120.25.115.20 offset 0.000359 sec

我这些机器之前还有安装过集群。后面卸载了,重新安装就不行,软件都是一样

后面卸载后有清理干净环境嘛?如部署过得目录路径。

提个下完整得日志吧(右上角得下载日志)和observer.log)

log_task_2024623.zip (3.5 KB)

https://www.oceanbase.com/knowledge-base/ocp-ee-1000000000346969

你按照这篇文档 搞过没 ?? 有可能是防火墙导致的不 ?

不是防火墙的问题,我安装系统就会关了
而且我这些机器都安装过了

社区版ocp 4.0.3 bp1 添加主机失败 - #5,来自 洪波 可以参考下这个帖子的解决方式是否可以。

不知道什么问题,跳过就可以了。时间本来就正确的