This project has moved. For the latest updates, please go here.

Can't 'put' files

Jun 28, 2011 at 4:51 PM

I'm having trouble getting started with this adapter.

Followed the installation and set up WinSSHD, I have tested this using windscp to connect and drop files.  When BizTalk does the same thing I get the following error:

Method: Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put
Error: Unable write file to /Test/74667e22-6b85-4639-afcf-057c95ecd0a1.tmp

------------------------------
Information:
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target:
Message: Unable write file to /Test/74667e22-6b85-4639-afcf-057c95ecd0a1.tmp
Stacktrace:


------------------------------
Type: Tamir.SharpSsh.jsch.SftpException
Target: Void put(Tamir.SharpSsh.java.io.InputStream, Tamir.SharpSsh.java.String, Tamir.SharpSsh.jsch.SftpProgressMonitor, Int32)
Message: Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown.
Stacktrace:
   at Tamir.SharpSsh.jsch.ChannelSftp.put(InputStream src, String dst, SftpProgressMonitor monitor, Int32 mode)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.SshTransfer.PutStream(Stream memStream, String destination)
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put(Stream memStream, String destination)


 The debugview trace is:

[1280] [AsyncTransmitter] Enter
[1280] [SftpTransmitProperties] ReadLocationConfiguration called
[1280] [SftpTransmitProperties] Username/Password Authentication
[1280] [SftpConnectionPool] GetConnectionFromPool found a free connection in the pool
[1280] [SftpTransmitterEndpoint] Sftp.Put /Test/17b1ad02-e090-407a-9e6d-a2e761c1812f.tmp
[FFFFFA8003535720] WskProIRPGetAddrInfo is called.
[bind=FFFFFA8002A65DB0] Binding reference count++ = 2 (status = 00000000, impersonation= 2).
[FFFFFA80029EC170] Request reference count++ = 3.
[FFFFFA80029EC170] RPC method type = 1: rpc-method succeeded, queue to rpc-pending-list.
[FFFFFA80029EC170] Request reference count-- = 2.
[FFFFFA80029EC170] WskKnrRpcComplete: rpc calls back for completion.
[FFFFFA80029EC170] WskKnrCompletePending: complete pending request (rpc=1).
[FFFFFA80029EC170] Request reference count-- = 1.
[FFFFFA80029EC170] Request reference count-- = 0.
[FFFFFA80029EC170] WskKnrCompleteRequest: rpc completion return status = 00000000 (reply=c0000272).
[FFFFFA80029EC170] WskProAPIGetAddressInfo returned addrinfo: [addr=0000000000000000].
[bind=FFFFFA8002A65DB0] Binding reference count-- = 1.
[FFFFFA80029EC170] WskKnrCompleteRequest: complete irp with IO status = c0000272.
[1280] [SftpConnectionPool] Disconnecting from localhost
[1280] [SftpConnectionPool] Reconnecting to localhost
[1280] [SftpConnectionPool] Connecting to localhost
[1280] [SftpTransmitterEndpoint] Exception: [SftpTransmitterEndpoint] Unable to transmit file /Test/17b1ad02-e090-407a-9e6d-a2e761c1812f.tmp.
[1280] Inner Exception:
[1280] Unable write file to /Test/17b1ad02-e090-407a-9e6d-a2e761c1812f.tmp
[1280] Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown.. Changing any Send Port Transport properties might require the host to be restarted, as the connection pool might still have connections
[1280] [SftpConnectionPool] ReleaseConnectionToPool releasing connection to pool
[1280] [AsyncTransmitter] Leave
[FFFFFA80032CFD90] WskProIRPGetAddrInfo is called.
[bind=FFFFFA8002A65DB0] Binding reference count++ = 2 (status = 00000000, impersonation= 2).
[FFFFFA80036A1210] Request reference count++ = 3.
[FFFFFA80036A1210] RPC method type = 1: rpc-method succeeded, queue to rpc-pending-list.
[FFFFFA80036A1210] Request reference count-- = 2.
[FFFFFA80036A1210] WskKnrRpcComplete: rpc calls back for completion.
[FFFFFA80036A1210] WskKnrCompletePending: complete pending request (rpc=1).
[FFFFFA80036A1210] Request reference count-- = 1.
[FFFFFA80036A1210] Request reference count-- = 0.
[FFFFFA80036A1210] WskKnrCompleteRequest: rpc completion return status = 00000000 (reply=00000000).
[FFFFFA80036A1210] WskProAPIGetAddressInfo returned addrinfo: [addr=FFFFF8A0041CE860].
[bind=FFFFFA8002A65DB0] Binding reference count-- = 1.
[FFFFFA80036A1210] WskKnrCompleteRequest: complete irp with IO status = 00000000.
[addr=FFFFF8A0041CE860] WskProAPIFreeAddressInfo freed addrinfo.

I have tried this on 2 separate VM's and get the same behaviour.

Help!

I'm currently with a customer evaluating whether BizTalk is the right candidate for their middleware platform and struggling to convince them!

Thanks

Jun 30, 2011 at 1:05 PM

Thanks to Mikael for helping me resolve this issue directly.  As expected it was a configuration misunderstanding on my part.

In the port configuration box there is an SSH Remote path property.  I had configured winSSH to mount a virtual root path pointing to C:\FileDrop\SFTP and had left this property set to '/'

Using Tunelier it showed that the server location was actually:  '/C/FileDrop/SFTP/'  I set the SSH Remote path to this value and it worked :-)