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

Unable to write file

Mar 12, 2010 at 10:53 PM

I am getting an unable to write file exception when appempting to send file to sftp server. I am using password authentication and can connect fine, it is the put that is failing. Here is the error messge:

I can send files fine with /n software's SFTP adapter, but company can't spend the money it so I need to find another sloution.

Thank you for you help!

This is the trace output....

[8012] [AsyncTransmitter] Enter
[8012] [SftpTransmitProperties] ReadLocationConfiguration called
[8012] [SftpTransmitProperties] Username/Password Authentication
[8012] [SftpConnectionPool] GetConnectionFromPool found a free connection in the pool
[8012] [SftpTransmitterEndpoint] Sftp.Put /201002242046_458_dd9ff524-da15-43da-8829-1aa89b3e34a4.gz
[8012] [SftpConnectionPool] Connection has timed out
[8012] [SftpReceiverEndpoint] Reconnecting to ftp.abcdefg.com
[8012] [SftpConnectionPool] ReleaseConnectionToPool releasing connection to pool
[8012] [AsyncTransmitter] Leave

Event Log...

Event Type: Error
Event Source: SFTPAdapter
Event Category: None
Event ID: 0
Date:  3/12/2010
Time:  3:30:58 PM
User:  N/A
Computer: XXXXXXXX.XXXX.XXXXXXX
Description:
Method: Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessage
Error: Unable to transmit file /201002242046_457_5e70578f-f131-422f-97c8-7608768ff626.gz.
Inner Exception:
Unable write file to /201002242046_457_5e70578f-f131-422f-97c8-7608768ff626.gz
Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown.

------------------------------
Information:
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target: Microsoft.BizTalk.Message.Interop.IBaseMessage ProcessMessageInternal(Microsoft.BizTalk.Message.Interop.IBaseMessage, Blogical.Shared.Adapters.Sftp.ISftp)
Message: Unable to transmit file /201002242046_457_5e70578f-f131-422f-97c8-7608768ff626.gz.
Inner Exception:
Unable write file to /201002242046_457_5e70578f-f131-422f-97c8-7608768ff626.gz
Exception of type 'Tamir.SharpSsh.jsch.SftpException' was thrown.
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessageInternal(IBaseMessage message, ISftp sftp)
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessage(IBaseMessage message)

------------------------------
Type: Blogical.Shared.Adapters.Sftp.SftpException
Target: Void Put(System.IO.Stream, System.String)
Message: Unable write file to /201002242046_457_5e70578f-f131-422f-97c8-7608768ff626.gz
Stacktrace:
   at Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put(Stream memStream, String destination)
   at Blogical.Shared.Adapters.Sftp.SftpTransmitterEndpoint.ProcessMessageInternal(IBaseMessage message, ISftp sftp)


------------------------------
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 Tamir.SharpSsh.jsch.ChannelSftp.put(InputStream src, String dst)
   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)

 


For more information, see Help and Support Center at http://go.microsoft.com/fwlink/events.asp.

Coordinator
Mar 16, 2010 at 8:43 AM

Try using it without loadbalancing, I'm not sure, but the exception might be missleading.

If that is not the issue, please have a look at the log file on the sftp server.

If you still have a problem, get in contact with me using Messenger through my blog: http://blogical.se/blogs/mikael

HTH

//Mikael

Mar 16, 2010 at 3:00 PM

Mikael,

I am using the adapter to send files, I do not see setting to disable load balancing. I am told, from the receiving location, that they are seceiving a generic error that is not of much help.

Thanks, Michael

Aug 8, 2011 at 1:40 PM

Hi Mikael,

I'm also having the problem above mentioned. Trying to do some test uploading files to an Sftp Server, If use filzilla sftp then i works fine. but when I through a biztalk send port tries to upload the same file. I get "Method: Blogical.Shared.Adapters.Sftp.SharpSsh.Sftp.Put
Error: Unable write file to /021K97/WLSLYFTPIN/*XML/test.xml".

Any ideas?

Thanks.

Sep 22, 2011 at 11:46 AM

Hi,

Has anybody solved this problem??

Any idea??

Thanks.

Sep 29, 2011 at 1:34 PM

Hi,

I solved this setting the SSH Remote temp file name. I hope this help.