Topic "Error Code 2 File Not Found"

Author Message
ITGuy1024

Guest


We had been running this automated job for a while now and only recently started to have error messages come up.
It seems to fail after 100 file downloads.

< 2014-04-30 10:39:09.386 Status code: 1
. 2014-04-30 10:39:09.386 3 skipped SSH_FXP_WRITE, SSH_FXP_READ, SSH_FXP_DATA and SSH_FXP_STATUS packets.
> 2014-04-30 10:39:09.386 Type: SSH_FXP_CLOSE, Size: 10, Number: 150788
. 2014-04-30 10:39:09.386 File: "/Download/140422h00403com0000.835"
. 2014-04-30 10:39:09.386 Copying "/Download/140422h00403com0000.835" to local directory started.
. 2014-04-30 10:39:09.386 Binary transfer mode selected.
. 2014-04-30 10:39:09.386 Opening remote file.
> 2014-04-30 10:39:09.386 Type: SSH_FXP_OPEN, Size: 50, Number: 151043
< 2014-04-30 10:39:09.433 Type: SSH_FXP_STATUS, Size: 21, Number: 150788
. 2014-04-30 10:39:09.433 Discarding reserved response
< 2014-04-30 10:39:09.495 Type: SSH_FXP_STATUS, Size: 33, Number: 151043
< 2014-04-30 10:39:09.495 Status code: 2, Message: 151043, Server: File not found, Language: en
* 2014-04-30 10:39:09.495 (ETerminal) No such file or directory.
* 2014-04-30 10:39:09.495 Error code: 2
* 2014-04-30 10:39:09.495 Error message from server (en): File not found
* 2014-04-30 10:39:09.495 Request code: 3
. 2014-04-30 10:39:09.495 Asking user:
. 2014-04-30 10:39:09.495 Cannot open remote file '/Download/140422h00403com0000.835'. ("No such file or directory.
. 2014-04-30 10:39:09.495 Error code: 2
. 2014-04-30 10:39:09.495 Error message from server (en): File not found
. 2014-04-30 10:39:09.495 Request code: 3")

Running WinSCP 4.3.8
Connecting to: Server version: SSH-2.0-1.36_sshlib GlobalSCAPE
Advertisements
ITGuy1024

Guest


Any ideas?
martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26754
Location: Prague, Czechia
Did you check server's log file to see a reason it rejected file opening?
ITGuy1024

Guest


The server we connect to is a 3rd party company. I do not think we have access to server logs unless you know a way to retrieve them?
Madhusmita

Guest


Hi ,
I am also facing the same problem when i download the file from remote server using SFTP Protocol in C# . error 2 (Cannot open remote file).


Below is the error....

WinSCP.SessionRemoteException was caught
Message=Cannot open remote file '/Spectrometer_ClosingPrice_191115.csv'.
Source=WinSCPnet
StackTrace:
at WinSCP.OperationResultBase.Check()
at WinScpTest.Form1.button1_Click(Object sender, EventArgs e) in D:\WinScpTest\WinScpTest\WinScpTest\Form1.cs:line 76
InnerException: WinSCP.SessionRemoteException
Message=No such file or directory.
Error code: 2
Error message from server (en): File not found
InnerException:


Please suggest me to solve the issue.
downloadfile.txt (1.93 KB) [Download]

Description: (none)

martin◆
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 26754
Location: Prague, Czechia
Madhusmita wrote:
I am also facing the same problem when i download the file from remote server using SFTP Protocol in C# . error 2 (Cannot open remote file).

Can you download the same file from WinSCP GUI?
Madhusmita

Guest


Thanks Prikryl,
I don't had permission in the server so that issue was showing..Now the problem was solved....
Advertisements

You can post new topics in this forum

Search

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License