SFTP Download Failure with apiRemoteFile.vb Error - VisualCron - Forum

Community forum

Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

Options
View
Go to last post Go to first unread
Offline PeterW  
#1 Posted : Wednesday, September 19, 2018 2:34:14 PM(UTC)
PeterW

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 103
United States
Location: Minneapolis, MN, United States

Thanks: 3 times
Was thanked: 3 time(s) in 2 post(s)
Hello!

I have received errors for a couple of jobs that download files from an sftp site. In both cases the error message references a specific line of code within the apiRemoteFile.vb file. Sometimes the job is successful and other times it will fail to download the files on the site but later executions will retrieve them.

Job 1: I am not sure why the error message says the specified path is invalid because sometimes the files get downloaded fine.

Exception in Task: Failed to download file: /<remote_path>/<remote_file> to C:\<local_path>\<local_file>, err: SBSftpCommon.EElSFTPError: Specified file path is invalid.
at SBSftp.TElSftpClient.RemoveFileSync(String Filename)
at SBSimpleSftp.TElSimpleSFTPClient.RemoveFile(String Filename)
at VisualCronService.RemoteFileAPI.<long_id>(<long_id> , ConnectionClientClass , ConnectionHandlerClass , String , List`1 <long_id>, String , FTPDownloadCommandClass , Int32& , Boolean& , VariableReplacerClass , TaskProcessClass ) in C:\sourcefiles\code\VisualCronService\Connection\apiRemoteFile.vb:line 1273

Job 2: Here it appears the file download starts but then stops, leaving behind a 0kb file. The remote file does not get deleted and when the job runs again it will download the file successfully the second time.

Exception in Task: Failed to download file: /<remote_path>/<remote_file> to C:\<local_path>\<local_file>, err: SBSftpCommon.EElSFTPError: Cannot find message [/<remote_path>/<remote_file>]
at VisualCronService.RemoteFileAPI.<long_id>(<long_id , ConnectionClientClass , ConnectionHandlerClass , String , List`1 <long_id>, String , FTPDownloadCommandClass , Int32& , Boolean& , VariableReplacerClass , TaskProcessClass ) in C:\sourcefiles\code\VisualCronService\Connection\apiRemoteFile.vb:line 1263

We are using version 8.3.5. Does anyone know what these messages mean and why we get them some of the time?

Edited by moderator Wednesday, February 12, 2020 11:29:12 AM(UTC)  | Reason: Not specified

Offline Support  
#2 Posted : Tuesday, October 9, 2018 9:37:32 AM(UTC)
Support

Rank: Official support

Joined: 2/23/2008(UTC)
Posts: 11,273

Thanks: 878 times
Was thanked: 451 time(s) in 428 post(s)
As we have not seen this error before we would like to see this in action. We would appreciate if we could connect and reproduce this with your Job. Please send any details to support@visualcron.com
Henrik
Support
http://www.visualcron.com
Please like VisualCron on facebook!
Offline PeterW  
#3 Posted : Thursday, October 25, 2018 8:01:08 PM(UTC)
PeterW

Rank: Paid support

Joined: 2/26/2008(UTC)
Posts: 103
United States
Location: Minneapolis, MN, United States

Thanks: 3 times
Was thanked: 3 time(s) in 2 post(s)
Originally Posted by: Support Go to Quoted Post
As we have not seen this error before we would like to see this in action. We would appreciate if we could connect and reproduce this with your Job. Please send any details to support@visualcron.com


Unfortunately this issue is intermittent so I cannot reproduce it easily. If I can find a way to reliably get this error to appear on demand I will provide an update in this thread and we can connect.

Thanks,

Peter
Offline blm-vc  
#4 Posted : Monday, February 10, 2020 3:10:24 PM(UTC)
blm-vc

Rank: Paid support

Joined: 8/23/2018(UTC)
Posts: 6
Germany
Location: Berlin, Berlin

Was thanked: 1 time(s) in 1 post(s)
May i hijack this...
We have to change a server in a get file-process. Connection and file listing within the dialog is ok. If the task is startet we get the exeption.

Exception in Task: Failed to download file: "quiet, dont tell anybody, this is secret"
err: SBSftpCommon.EElSFTPError: SFTP component not connected
bei VisualCronService.RemoteFileAPI.DownloadSFTPFiles(TaskFoundationClass tf, ConnectionClientClass cc, ConnectionHandlerClass ch, String strConnectionId, List`1 files, String originalSaveFolder, FTPDownloadCommandClass downloadCommand, Int32& intTotalFiles, Boolean& active, VariableReplacerClass VR, TaskProcessClass tpc) in C:\sourcefiles\code\VisualCronService\Connection\apiRemoteFile.vb:Zeile 1263.

Download from unix stock sftp client without problems.

(Pssst: Our VC Version is kinda out of, im afraid: 8.4.0 21465)

Edited by user Monday, February 10, 2020 3:12:16 PM(UTC)  | Reason: Not specified

Offline Support  
#5 Posted : Tuesday, February 11, 2020 1:12:48 PM(UTC)
Support

Rank: Official support

Joined: 12/1/2015(UTC)
Posts: 299

Thanks: 44 times
Was thanked: 15 time(s) in 14 post(s)
Originally Posted by: blm-vc Go to Quoted Post
May i hijack this...
We have to change a server in a get file-process. Connection and file listing within the dialog is ok. If the task is startet we get the exeption.

Exception in Task: Failed to download file: "quiet, dont tell anybody, this is secret"
err: SBSftpCommon.EElSFTPError: SFTP component not connected
bei VisualCronService.RemoteFileAPI.DownloadSFTPFiles(TaskFoundationClass tf, ConnectionClientClass cc, ConnectionHandlerClass ch, String strConnectionId, List`1 files, String originalSaveFolder, FTPDownloadCommandClass downloadCommand, Int32& intTotalFiles, Boolean& active, VariableReplacerClass VR, TaskProcessClass tpc) in C:\sourcefiles\code\VisualCronService\Connection\apiRemoteFile.vb:Zeile 1263.

Download from unix stock sftp client without problems.

(Pssst: Our VC Version is kinda out of, im afraid: 8.4.0 21465)


try setting one SFTP version at a time, starting from 2, ending at 6.

If that doesn't work, please send an email to support@visualcron.com and we'll go through the next steps of troubleshooting
Michael
Support
http://www.visualcron.com

Please like VisualCron on facebook!
Offline blm-vc  
#6 Posted : Wednesday, February 12, 2020 9:07:29 AM(UTC)
blm-vc

Rank: Paid support

Joined: 8/23/2018(UTC)
Posts: 6
Germany
Location: Berlin, Berlin

Was thanked: 1 time(s) in 1 post(s)
That worked out, Thank you!
All good things starting at 3.
thanks 1 user thanked blm-vc for this useful post.
Support on 2/12/2020(UTC)
Users browsing this topic
Guest
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Scroll to Top