主机环境校验失败
misteruly opened this issue · 8 comments
Search before asking
- I had searched in the issues and found no similar issues.
What happened
[INFO] 2024-05-15 14:53:01 com.datasophon.api.master.HostConnectActor:[44] - or restart because org.apache.sshd.common.SshException: No more authentication methods available
[ERROR] [05/15/2024 14:53:01.810] [datasophon-akka.actor.default-dispatcher-4] [akka://datasophon/user/hostActor-ddp2] org.apache.sshd.common.SshException: No more authentication methods available
java.lang.RuntimeException: org.apache.sshd.common.SshException: No more authentication methods available
at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:67)
at com.datasophon.api.master.HostConnectActor.onReceive(HostConnectActor.java:55)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:127)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:39)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:32)
at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:43)
at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:62)
... 13 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
at org.apache.sshd.client.session.ClientUserAuthService.tryNext(ClientUserAuthService.java:379)
at org.apache.sshd.client.session.ClientUserAuthService.processUserAuth(ClientUserAuthService.java:315)
at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:252)
at org.apache.sshd.common.session.helpers.CurrentService.process(CurrentService.java:109)
at org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:591)
at org.apache.sshd.common.session.helpers.AbstractSession.lambda$handleMessage$0(AbstractSession.java:522)
at org.apache.sshd.common.util.threads.ThreadUtils.runAsInternal(ThreadUtils.java:68)
at org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:521)
at org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1639)
at org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:482)
at org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64)
at org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:407)
at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:380)
at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:375)
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker$2.run(Invoker.java:218)
at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
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)
[INFO] 2024-05-15 14:53:05 com.datasophon.api.master.ActorUtils:[122] - find actor hostActor-ddp3
[INFO] 2024-05-15 14:53:05 com.datasophon.api.master.HostConnectActor:[53] - start host check:ddp3
[INFO] 2024-05-15 14:53:05 com.datasophon.api.utils.ProcessUtils:[394] - update variable SSHUSER value root to root
[INFO] 2024-05-15 14:53:05 com.datasophon.api.service.impl.InstallServiceImpl:[127] - get host list from cache
[WARN] 2024-05-15 14:53:05 org.apache.sshd.client.keyverifier.AcceptAllServerKeyVerifier:[59] - Server at ddp3/192.168.4.182:22 presented unverified EC key: SHA256:T1df8JObdoKTaFEywQtT50DUtRjSi8kpZS5b8XruJX4
[ERROR] [05/15/2024 14:53:05.624] [datasophon-akka.actor.default-dispatcher-4] [akka://datasophon/user/hostActor-ddp3] org.apache.sshd.common.SshException: No more authentication methods available
java.lang.RuntimeException: org.apache.sshd.common.SshException: No more authentication methods available
at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:67)
at com.datasophon.api.master.HostConnectActor.onReceive(HostConnectActor.java:55)
at akka.actor.UntypedActor$$anonfun$receive$1.applyOrElse(UntypedActor.scala:165)
at akka.actor.Actor$class.aroundReceive(Actor.scala:502)
at akka.actor.UntypedActor.aroundReceive(UntypedActor.scala:95)
at akka.actor.ActorCell.receiveMessage(ActorCell.scala:526)
at akka.actor.ActorCell.invoke(ActorCell.scala:495)
at akka.dispatch.Mailbox.processMailbox(Mailbox.scala:257)
at akka.dispatch.Mailbox.run(Mailbox.scala:224)
at akka.dispatch.Mailbox.exec(Mailbox.scala:234)
at scala.concurrent.forkjoin.ForkJoinTask.doExec(ForkJoinTask.java:260)
at scala.concurrent.forkjoin.ForkJoinPool$WorkQueue.runTask(ForkJoinPool.java:1339)
at scala.concurrent.forkjoin.ForkJoinPool.runWorker(ForkJoinPool.java:1979)
at scala.concurrent.forkjoin.ForkJoinWorkerThread.run(ForkJoinWorkerThread.java:107)
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
at org.apache.sshd.common.future.AbstractSshFuture.verifyResult(AbstractSshFuture.java:127)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:39)
at org.apache.sshd.client.future.DefaultAuthFuture.verify(DefaultAuthFuture.java:32)
at org.apache.sshd.common.future.VerifiableFuture.verify(VerifiableFuture.java:43)
at com.datasophon.api.utils.MinaUtils.openConnection(MinaUtils.java:62)
... 13 more
Caused by: org.apache.sshd.common.SshException: No more authentication methods available
at org.apache.sshd.client.session.ClientUserAuthService.tryNext(ClientUserAuthService.java:379)
at org.apache.sshd.client.session.ClientUserAuthService.processUserAuth(ClientUserAuthService.java:315)
at org.apache.sshd.client.session.ClientUserAuthService.process(ClientUserAuthService.java:252)
at org.apache.sshd.common.session.helpers.CurrentService.process(CurrentService.java:109)
at org.apache.sshd.common.session.helpers.AbstractSession.doHandleMessage(AbstractSession.java:591)
at org.apache.sshd.common.session.helpers.AbstractSession.lambda$handleMessage$0(AbstractSession.java:522)
at org.apache.sshd.common.util.threads.ThreadUtils.runAsInternal(ThreadUtils.java:68)
at org.apache.sshd.common.session.helpers.AbstractSession.handleMessage(AbstractSession.java:521)
at org.apache.sshd.common.session.helpers.AbstractSession.decode(AbstractSession.java:1639)
at org.apache.sshd.common.session.helpers.AbstractSession.messageReceived(AbstractSession.java:482)
at org.apache.sshd.common.session.helpers.AbstractSessionIoHandler.messageReceived(AbstractSessionIoHandler.java:64)
at org.apache.sshd.common.io.nio2.Nio2Session.handleReadCycleCompletion(Nio2Session.java:407)
at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:380)
at org.apache.sshd.common.io.nio2.Nio2Session$1.onCompleted(Nio2Session.java:375)
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.lambda$completed$0(Nio2CompletionHandler.java:38)
at java.security.AccessController.doPrivileged(Native Method)
at org.apache.sshd.common.io.nio2.Nio2CompletionHandler.completed(Nio2CompletionHandler.java:37)
at sun.nio.ch.Invoker.invokeUnchecked(Invoker.java:126)
at sun.nio.ch.Invoker$2.run(Invoker.java:218)
at sun.nio.ch.AsynchronousChannelGroupImpl$1.run(AsynchronousChannelGroupImpl.java:112)
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)
What you expected to happen
主机校验成功
How to reproduce
Os: CentOS Linux release 7.9.2009 (Core)
Version:ddp-1.2.1
Mysql: 8.0.22
Anything else
No response
Version
dev
Are you willing to submit PR?
- Yes I am willing to submit a PR!
Code of Conduct
- I agree to follow this project's Code of Conduct
主机免密配置没?
主机免密配置没?
[root@ddp1 datasophon-manager-1.2.1]# ssh ddp2
Warning: Permanently added 'ddp2,192.168.4.181' (ECDSA) to the list of known hosts.
Last login: Thu May 16 11:44:14 2024 from ddp1
-bash: hadoop: command not found
[root@ddp2 ~]# logout
Connection to ddp2 closed.
[root@ddp1 datasophon-manager-1.2.1]# ssh ddp3
Warning: Permanently added 'ddp3,192.168.4.182' (ECDSA) to the list of known hosts.
Last login: Thu May 16 11:44:28 2024 from ddp1
-bash: hadoop: command not found
[root@ddp3 ~]# logout
Connection to ddp3 closed.
[root@ddp1 datasophon-manager-1.2.1]# ssh ddp4
Warning: Permanently added 'ddp4,192.168.4.179' (ECDSA) to the list of known hosts.
Authorized users only. All activities may be monitored and reported.
Authorized users only. All activities may be monitored and reported.
Web console: https://localhost:9090/
Last login: Thu May 16 11:46:50 2024 from 192.168.4.180
-bash: hadoop: command not found
[root@ddp4 ~]# logout
Connection to ddp4 closed.
嗯,都是做了免密的
org.apache.sshd.common.SshException: No more authentication methods available
[root@ddp3 ~]# ssh ddp1
Warning: Permanently added 'ddp1,192.168.4.180' (ECDSA) to the list of known hosts.
Last login: Thu May 16 14:33:24 2024 from 192.168.2.164
-bash: hadoop: command not found
[root@ddp1 ~]#
[root@ddp1 ~]# logout
Connection to ddp1 closed.
org.apache.sshd.common.SshException: No more authentication methods available
[root@ddp3 ~]# ssh ddp1 Warning: Permanently added 'ddp1,192.168.4.180' (ECDSA) to the list of known hosts. Last login: Thu May 16 14:33:24 2024 from 192.168.2.164 -bash: hadoop: command not found [root@ddp1 ~]# [root@ddp1 ~]# logout Connection to ddp1 closed.
那确实没遇到过。 看看 worker 资源分发到各个节点没, 每个节点的worker服务启起来没
org.apache.sshd.common.SshException: No more authentication methods available
[root@ddp3 ~]# ssh ddp1 Warning: Permanently added 'ddp1,192.168.4.180' (ECDSA) to the list of known hosts. Last login: Thu May 16 14:33:24 2024 from 192.168.2.164 -bash: hadoop: command not found [root@ddp1 ~]# [root@ddp1 ~]# logout Connection to ddp1 closed.
我做了ddp4,ddp3,ddp2到ddp1做了免密也是有问题那确实没遇到过。 看看 worker 资源分发到各个节点没, 每个节点的worker服务启起来没
worker部署应该是主机验证之后的步骤
org.apache.sshd.common.SshException: No more authentication methods available
[root@ddp3 ~]# ssh ddp1 Warning: Permanently added 'ddp1,192.168.4.180' (ECDSA) to the list of known hosts. Last login: Thu May 16 14:33:24 2024 from 192.168.2.164 -bash: hadoop: command not found [root@ddp1 ~]# [root@ddp1 ~]# logout Connection to ddp1 closed.
我做了ddp4,ddp3,ddp2到ddp1做了免密也是有问题那确实没遇到过。 看看 worker 资源分发到各个节点没, 每个节点的worker服务启起来没
worker部署应该是主机验证之后的步骤
我测试了是系统的问题,我重装下Centos7就可以了
centos7.9。部署在单机配了免密,也碰到这个问题无法解决