EldoS | Feel safer!

Software components for data protection, secure storage and transfer

BizTalk SFTP adapter not writing file after signing on successfully

Also by EldoS: CallbackDisk
Create virtual disks backed by memory or custom location, expose disk images as disks and more.
#17354
Posted: 08/25/2011 10:34:04
by Brian Swenson (Standard support level)
Joined: 07/02/2009
Posts: 7

I have an issue were I'm attempting to send a file via SFTP to an external server. It looks like I'm able to sign on the server successfully and then BizTalk tries to write the file but for some reason it can't or doesn't. There is no error message returned. We are using version 7.2.0.171 of BizCrypto. The external vendor tells me it looks like our process is trying to write the file before actually getting signed on. Not sure I buy that line. I thought it might be a problem with the remote path value. They want the file written in the folder that the account signs into. So I have tried a ".", "/" or leaving the remote path blank and none of these options work. Can you tell anything from the log below that may help me?

[8/24/2011 3:49 PM] EldoS SFTP Adapter (send): __ctor()
[8/24/2011 3:49 PM] EldoS SFTP Adapter (send): TransmitMessage()
[8/24/2011 3:49 PM] EldoS SFTP Adapter (send): CreateProperties()
[8/24/2011 3:49 PM] AdapterProperties::UpdateUriForDynamicSend() Uri: bc-sftp://TestID@sftp.Testsite.com:22/TestFile.txt.pgp
[8/24/2011 3:49 PM] EldoS SFTP Adapter (send): ProcessMessage()
[8/24/2011 3:49 PM] AdapterProperties::LoadFromMessage()
[8/24/2011 3:49 PM] Searching for installed BizCrypto addons.
[8/24/2011 3:49 PM] BizCrypto.BizTalk.Addons library successfully loaded.
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Loading private key
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Loading trusted keys
[8/24/2011 3:49 PM] EldoS SFTP Adapter: 1 keys have been successfully loaded
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Opening connection to SFTP server
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Running key validation handler
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Server key was found in the local trusted keys database
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Authentication succeeded
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Server introduced himself as 1.82 sshlib: XroadsSftpServer
[8/24/2011 3:49 PM] EldoS SFTP Adapter: SFTP connection started
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Remote path is /TestFile.txt.pgp
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Uploading file to SFTP server
[8/24/2011 3:49 PM] EldoS SFTP Adapter: Failed to transfer file(s):


Stack:
at SBSftp.TElSftpClient.RequestAttributesSync(String Path, Boolean FollowSymLinks)
at SBSimpleSftp.TElSimpleSFTPClient.RequestAttributes(String Path, Boolean FollowSymLinks, TElSftpFileAttributes Attributes)
at SBSimpleSftp.TElSimpleSFTPClient.UploadStream(Stream LocalStream, String RemoteFileName, TSBSFTPFileTransferMode Mode, Int64 RestartFrom)
at SBSimpleSftp.TElSimpleSFTPClient.UploadStream(Stream LocalStream, String RemoteFileName, TSBSFTPFileTransferMode Mode)
at BizCrypto.BizTalk.Adapters.SFTP.SFTPCommon.DoSFTPOperation(IBaseMessage message, AdapterProperties props, Boolean upload, ArrayList fileList)
[8/24/2011 3:49 PM] EldoS SFTP Adapter (send): Error:
#17357
Posted: 08/25/2011 11:35:30
by Ken Ivanov (EldoS Corp.)

Thank you for contacting us.

According to the log, it's RequestAttributes() call that fails. Unfortunately, the server did not return an error code, so we can only guess about the reason. Yet, there are two common reasons for the RequestAttributes() request to fail:

1) Non-existing remote path. It doesn't appear to be the case, as you tried the "." path (which defaults to user's home directory).

2) The server might be configured to reject attribute requests. Please try to switch to overwrite mode (set Overwrite property to true); this will make the adapter skip the RequestAttributes() call.
#17358
Posted: 08/25/2011 14:55:40
by Brian Swenson (Standard support level)
Joined: 07/02/2009
Posts: 7

I changed the Overwrite property to Yes and it works now. Thanks for your help.

Reply

Statistics

Topic viewed 3188 times

Number of guests: 1, registered members: 0, in total hidden: 0




|

Back to top

As of July 15, 2016 EldoS Corporation will operate as a division of /n software inc. For more information, please read the announcement.

Got it!