Skip to content

Instantly share code, notes, and snippets.

@aphyr aphyr/download.txt
Last active Jan 9, 2020

Embed
What would you like to do?
clj-ssh errors
java.lang.IllegalArgumentException: No matching clause: 
at clj_ssh.ssh$scp_sink.invokeStatic(ssh.clj:981) ~[classes/:na]
at clj_ssh.ssh$scp_sink.invoke(ssh.clj:977) ~[classes/:na]
at clj_ssh.ssh$scp_from.invokeStatic(ssh.clj:1094) ~[classes/:na]
at clj_ssh.ssh$scp_from.doInvoke(ssh.clj:1044) ~[classes/:na]
java.io.IOException: Pipe closed
at java.io.PipedInputStream.checkStateForReceive(PipedInputStream.java:260) ~[na:1.8.0_232]
at java.io.PipedInputStream.receive(PipedInputStream.java:226) ~[na:1.8.0_232]
at java.io.PipedOutputStream.write(PipedOutputStream.java:149) ~[na:1.8.0_232]
at java.io.OutputStream.write(OutputStream.java:75) ~[na:1.8.0_232]
at clj_ssh.ssh$scp_send_ack.invokeStatic(ssh.clj:836) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_send_ack.invoke(ssh.clj:832) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_send_ack.invokeStatic(ssh.clj:834) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_send_ack.invoke(ssh.clj:832) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_receive_command.invokeStatic(ssh.clj:878) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_receive_command.invoke(ssh.clj:864) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_sink.invokeStatic(ssh.clj:980) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_sink.invoke(ssh.clj:977) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_from.invokeStatic(ssh.clj:1094) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_from.doInvoke(ssh.clj:1044) ~[jepsen-0.1.16.jar:na]
; I wind up having to catch these errors *constantly*
(catch com.jcraft.jsch.JSchException e
(if (and (pos? tries)
(or (= "session is down" (.getMessage e))
(= "Packet corrupt" (.getMessage e))))
com.jcraft.jsch.JSchException: Packet corrupt
at com.jcraft.jsch.Session.start_discard(Session.java:1059) ~[jsch-0.1.53.jar:na]
at com.jcraft.jsch.Session.read(Session.java:929) ~[jsch-0.1.53.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:309) ~[jsch-0.1.53.jar:na]
at com.jcraft.jsch.Session.connect(Session.java:183) ~[jsch-0.1.53.jar:na]
at clj_ssh.ssh$fn__2452.invokeStatic(ssh.clj:118) ~[classes/:na]
at clj_ssh.ssh$fn__2452.invoke(ssh.clj:115) ~[classes/:na]
at clj_ssh.ssh.protocols$fn__2410$G__2377__2419.invoke(protocols.clj:4) ~[classes/:na]
at clj_ssh.ssh$connect.invokeStatic(ssh.clj:401) ~[classes/:na]
at clj_ssh.ssh$connect.invoke(ssh.clj:397) ~[classes/:na]
at clj_ssh.ssh$ssh.invokeStatic(ssh.clj:721) ~[classes/:na]
at clj_ssh.ssh$ssh.invoke(ssh.clj:699) ~[classes/:na]
clojure.lang.ExceptionInfo: clj-ssh scp failure: scp error
at clj_ssh.ssh$scp_receive_ack.invokeStatic(ssh.clj:845) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_receive_ack.invoke(ssh.clj:839) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_send_command.invokeStatic(ssh.clj:861) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_send_command.invoke(ssh.clj:855) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_copy_file.invokeStatic(ssh.clj:891) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_copy_file.invoke(ssh.clj:882) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_to.invokeStatic(ssh.clj:1037) ~[jepsen-0.1.16.jar:na]
at clj_ssh.ssh$scp_to.doInvoke(ssh.clj:1002) ~[jepsen-0.1.16.jar:na]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.