Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

rabbit-test JSchException: Auth fail #79

Closed
bogdando opened this issue Sep 21, 2015 · 2 comments
Closed

rabbit-test JSchException: Auth fail #79

bogdando opened this issue Sep 21, 2015 · 2 comments
Labels

Comments

@bogdando
Copy link

lein test :only jepsen.rabbitmq-test/rabbit-test

ERROR in (rabbit-test) (Session.java:512)
Uncaught exception, not in assertion.
expected: nil
actual: com.jcraft.jsch.JSchException: Auth fail
at com.jcraft.jsch.Session.connect (Session.java:512)
com.jcraft.jsch.Session.connect (Session.java:183)
clj_ssh.ssh$eval5931$fn__5938.invoke (ssh.clj:118)
clj_ssh.ssh.protocols$eval5857$fn__5880$G__5848__5889.invoke (protocols.clj:4)
clj_ssh.ssh$connect.invoke (ssh.clj:401)
jepsen.control$session.invoke (control.clj:197)
clojure.lang.AFn.applyToHelper (AFn.java:154)
clojure.lang.AFn.applyTo (AFn.java:144)
clojure.core$apply.invoke (core.clj:624)
clojure.core$with_bindings_STAR_.doInvoke (core.clj:1862)
clojure.lang.RestFn.applyTo (RestFn.java:142)
clojure.core$apply.invoke (core.clj:628)
clojure.core$bound_fn_STAR_$fn__4140.doInvoke (core.clj:1884)
clojure.lang.RestFn.applyTo (RestFn.java:137)
clojure.core$apply.invoke (core.clj:624)
jepsen.core$fcatch$wrapper__7445.doInvoke (core.clj:53)
clojure.lang.RestFn.invoke (RestFn.java:408)
clojure.core$pmap$fn__6328$fn__6329.invoke (core.clj:6466)
clojure.core$binding_conveyor_fn$fn__4145.invoke (core.clj:1910)
clojure.lang.AFn.call (AFn.java:18)
java.util.concurrent.FutureTask.run (FutureTask.java:266)
java.util.concurrent.ThreadPoolExecutor.runWorker (ThreadPoolExecutor.java:1142)
java.util.concurrent.ThreadPoolExecutor$Worker.run (ThreadPoolExecutor.java:617)
java.lang.Thread.run (Thread.java:745)

Note:
The ssh test passes though (lein test :only jepsen.core-test/ssh-test)

@bogdando
Copy link
Author

To troubleshoot things down, I enabled debug logs by this guide http://www.bahmanm.com/blogs/how-to-add-logging-to-a-clojure-project (with a little change made to fix the stdout settings, see http://stackoverflow.com/questions/23281667/error-cannot-log-with-log4j).

After that the logs for passed ssh-test look like:
19:22:39,746 DEBUG ssh:272 - Authentications that can continue: publickey,keyboard-interactive,password
19:22:39,746 DEBUG ssh:272 - Next authentication method: publickey
19:22:39,775 DEBUG ssh:272 - Authentication succeeded (publickey).

And the logs for failed rabbit-test look like:
19:22:42,247 DEBUG ssh:270 - Authentications that can continue: publickey,keyboard-interactive,password
19:22:42,248 DEBUG ssh:270 - Next authentication method: publickey
19:22:42,248 DEBUG ssh:270 - Disconnecting from n4 port 22

Now I will try to feed that nasty jsch with my publickey as appropriate and provide a feedback here.

@bogdando
Copy link
Author

Strange things, jsch fails even by the password auth. While I can ssh to the node by console using the same creds. Probably this is some issue specific only to my environment.

@mkcp mkcp added the question label Feb 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants