Hi Team,

I'm trying to upload files using mina sshd SCP connection. 
After uploading some of the files scp starts failing with the below
exception, but If I see the logs from mina sshd it showing me a WARNING as
"WARN  (ScpHelper.java:820) -
readAck(ScpHelper[ClientSessionImpl[david@/192.168.33.23:22]])[EOF=false] -
Received warning: scp: /tmp/testcase4//36.bdf: No space left on device"


But the exception I'm getting is different
 org.apache.sshd.common.channel.exception.SshChannelClosedException:
write(ChannelOutputStream[ChannelExec[id=196,
recipient=1]-ClientSessionImpl[david@/192.168.33.23:22]]
SSH_MSG_CHANNEL_DATA) len=8192 - channel already closed
        at
org.apache.sshd.common.channel.ChannelOutputStream.write(ChannelOutputStream.java:110)
        at org.apache.sshd.common.util.io.IoUtils.copy(IoUtils.java:128)Channel
initialized: 198

        at org.apache.sshd.common.scp.ScpHelper.sendStream(ScpHelper.java:552)
        at org.apache.sshd.common.scp.ScpHelper.sendFile(ScpHelper.java:483)
        at org.apache.sshd.common.scp.ScpHelper.send(ScpHelper.java:442)
        at org.apache.sshd.common.scp.ScpHelper.send(ScpHelper.java:420)
        at
org.apache.sshd.client.scp.AbstractScpClient.lambda$upload$0(AbstractScpClient.java:151)
        at
org.apache.sshd.client.scp.DefaultScpClient.runUpload(DefaultScpClient.java:142)
        at
org.apache.sshd.client.scp.AbstractScpClient.upload(AbstractScpClient.java:150)
        at org.apache.sshd.client.scp.ScpClient.upload(ScpClient.java:108)
        at org.apache.sshd.client.scp.ScpClient.upload(ScpClient.java:104)
        at org.altair.sshd.UploadFile.call(UploadFile.java:16)
        at java.util.concurrent.FutureTask.run(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)


How to handle this situation so that I can inform to the user about the "No
space left on the device"??



--
Sent from: 
http://apache-mina.10907.n7.nabble.com/Apache-MINA-Developer-Forum-f6809.html

Reply via email to