Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

Exhausted available authentication methods

avatar
Contributor

Hi All,

 

While adding cluster through cloud manager(CDH 4) i got installation failed error. When i checked the logs i got this:-

 

2015-02-10 08:32:02,613  INFO [NodeConfiguratorThread-15-0:node.NodeConfiguratorProgress@512] vc2cmmkb035851n.fmr.com: Transitioning from CONNECT (PT0.105S) to AUTHENTICATE
2015-02-10 08:32:02,652  INFO [NodeConfiguratorThread-15-0:transport.TransportImpl@302] Setting active service to ssh-userauth
2015-02-10 08:32:02,652  INFO [NodeConfiguratorThread-15-0:userauth.UserAuthImpl@85] Trying `password` auth...
2015-02-10 08:32:02,652  INFO [NodeConfiguratorThread-15-0:method.AuthPassword@40] Requesting password for [AccountResource] root@vc2cmmkb035851n.fmr.com
2015-02-10 08:32:04,641 ERROR [NodeConfiguratorThread-15-0:concurrent.Promise@171] <<authenticated>> woke to: net.schmizz.sshj.userauth.UserAuthException: password auth failed
2015-02-10 08:32:04,641  INFO [NodeConfiguratorThread-15-0:userauth.UserAuthImpl@96] `password` auth failed
2015-02-10 08:32:04,642  WARN [NodeConfiguratorThread-15-0:node.NodeConfigurator@303] Could not authenticate to vc2cmmkb035851n.fmr.com
net.schmizz.sshj.userauth.UserAuthException: Exhausted available authentication methods
        at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:114)
        at net.schmizz.sshj.SSHClient.auth(SSHClient.java:205)
        at net.schmizz.sshj.SSHClient.auth(SSHClient.java:190)
        at com.cloudera.server.cmf.node.NodeConfigurator.connect(NodeConfigurator.java:293)
        at com.cloudera.server.cmf.node.NodeConfigurator.configure(NodeConfigurator.java:759)
        at com.cloudera.server.cmf.node.NodeConfigurator.run(NodeConfigurator.java:805)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
        at java.util.concurrent.FutureTask.run(FutureTask.java:138)
        at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
        at java.lang.Thread.run(Thread.java:662)
Caused by: net.schmizz.sshj.userauth.UserAuthException: keyboard-interactive auth not allowed by server
        at net.schmizz.sshj.userauth.UserAuthImpl.authenticate(UserAuthImpl.java:81)
        ... 11 more
2015-02-10 08:32:04,642  INFO [NodeConfiguratorThread-15-0:node.NodeConfiguratorProgress@533] vc2cmmkb035851n.fmr.com: Setting AUTHENTICATE as failed and done state

 

Please help me . I have been googling since 4 days and i'm not able to resolve this issue yet.

Thanks,

Pankaj

1 ACCEPTED SOLUTION

avatar
Contributor

@cjervis this issues have been killing me big time. After so much of investigation i found out that we have to edit the file "10-perfmgmt" under "/etc/sudoers.d"( I am using rhel 5) by adding the below lines:-

 

root  ALL=(ALL:ALL) ALL

%admin  ALL=(ALL) ALL

%sudo   ALL=(ALL:ALL) ALL

userid   ALL=(ALL)NOPASSWD:ALL

 

Note - userid is the id through which you are logging to your linux box

 

id.JPG

 

You have to login as "another user" by giving your id and password and yes you are done. It won't fail again with the error "Exhausted available......" . I mean that's what happened with me.

 

Give a try..

 

 

Thanks!

 

View solution in original post

20 REPLIES 20

avatar
Contributor

Finally solved this issue... pheww!!

avatar
Community Manager

Wow! That must have been a tough one @Pankaj.1207. How did you resolve it?


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
Contributor

@cjervis this issues have been killing me big time. After so much of investigation i found out that we have to edit the file "10-perfmgmt" under "/etc/sudoers.d"( I am using rhel 5) by adding the below lines:-

 

root  ALL=(ALL:ALL) ALL

%admin  ALL=(ALL) ALL

%sudo   ALL=(ALL:ALL) ALL

userid   ALL=(ALL)NOPASSWD:ALL

 

Note - userid is the id through which you are logging to your linux box

 

id.JPG

 

You have to login as "another user" by giving your id and password and yes you are done. It won't fail again with the error "Exhausted available......" . I mean that's what happened with me.

 

Give a try..

 

 

Thanks!

 

avatar
Community Manager

Happy to see it works. Hopefully it will help others who may run into the same issue. Thanks for sharing. 🙂


Cy Jervis, Manager, Community Program
Was your question answered? Make sure to mark the answer as the accepted solution.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
New Contributor

Hi, i have the same problem, but cannot find the file "10-perfmgmt" on the "/etc/sudoers.d". Can you tell the steps to solve this?

 

thank you

avatar
New Contributor
Done, used nano editor

avatar
New Contributor

I could not find the file "10-perfmgmt" under "/etc/sudoers.d"

So created a new one and added lines below

 

root ALL=(ALL:ALL) ALL

%admin ALL=(ALL) ALL

%sudo ALL=(ALL:ALL) ALL

userid ALL=(ALL)NOPASSWD:ALL

 

But i still could not figure it out..any help will be greatly appreciated

avatar
Contributor

You need to enter the "userid" through which you are logging in your linux box. You can try editing /etc/sudoers also with the above parameteres.

 

Thanks.

avatar
New Contributor

Extremely Helpful....Thanks a lot