Error Code 2 File Not Found

Advertisement

ITGuy1024
Guest

Error Code 2 File Not Found

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

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,459
Location:
Prague, Czechia

Re: Error Code 2 File Not Found

Did you check server's log file to see a reason it rejected file opening?

Reply with quote

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?

Reply with quote

Madhusmita
Guest

Re: Error Code 2 File Not Found

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.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,459
Location:
Prague, Czechia

Re: Error Code 2 File Not Found

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?

Reply with quote

Madhusmita
Guest

Re: Error Code 2 File Not Found

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

Reply with quote

Advertisement

You can post new topics in this forum