Not able to download a file even though it is available

Advertisement

gakyrf14
Joined:
Posts:
2
Location:
South San Francisco

Not able to download a file even though it is available

Hi,
I am seeing a weird issue when working with WinSCP tool. The problem is, when I am trying to download a file from a particular directory in SFTP Server, it is failing. I am using WinSCP Version 5.13.3 (Build 8565).

Below is the error which I am getting:

No such file or directory.
Error code: 2
Error message from server: /A/B/C/RequiredFile.csv: Specified file path is invalid.

Even though I went to required directory for required file through WinSCP, the error is showing that “No such file or directory”. It is very funny.

Below is the log to give you a clear picture on the error:

. 2018-06-21 15:03:30.285 Copying 1 files/directories to local directory "C:\Users\ANIL\Documents\" - total size: 22,047
. 2018-06-21 15:03:30.285 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: Yes; Mask: *.*
. 2018-06-21 15:03:30.285 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2018-06-21 15:03:30.285 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2018-06-21 15:03:30.285 File: '/A/B/C/RequiredFile.csv' [2018-06-20T22:54:00.000Z] [22047]
. 2018-06-21 15:03:30.301 Copying "/A/B/C/RequiredFile.csv" to local directory started.
. 2018-06-21 15:03:30.301 Binary transfer mode selected.
. 2018-06-21 15:03:30.301 Opening remote file.
> 2018-06-21 15:03:30.301 Type: SSH_FXP_OPEN, Size: 82, Number: 15619
< 2018-06-21 15:03:30.301 Type: SSH_FXP_STATUS, Size: 40, Number: 15364
. 2018-06-21 15:03:30.301 Discarding reserved response
< 2018-06-21 15:03:30.481 Type: SSH_FXP_STATUS, Size: 115, Number: 15619
< 2018-06-21 15:03:30.481 Status code: 2, Message: 15619, Server: /A/B/C/RequiredFile.csv: Specified file path is invalid., Language:
* 2018-06-21 15:03:30.481 (ETerminal) No such file or directory.
* 2018-06-21 15:03:30.481 Error code: 2
* 2018-06-21 15:03:30.481 Error message from server: /A/B/C/RequiredFile.csv: Specified file path is invalid.
. 2018-06-21 15:03:30.481 Asking user:
. 2018-06-21 15:03:30.481 Cannot open remote file '/A/B/C/RequiredFile.csv'. ("No such file or directory.
. 2018-06-21 15:03:30.481 Error code: 2
. 2018-06-21 15:03:30.481 Error message from server: /A/B/C/RequiredFile.csv: Specified file path is invalid.")

Please help me to get away with this issue. I need to download that file.

Reply with quote

Advertisement

gakyrf14
Joined:
Posts:
2
Location:
South San Francisco

Re: Not able to download a file even though it is available

martin wrote:

Can you download the file using any other SFTP client?

Hi Martin,
Thanks for your reply.
I have tried with FileZilla but it also does not work out.
Below is the log from FileZilla:

Status: Starting download of /A/B/C/RequiredFile.csv
Command: cd "/A/B/C"
Response: New directory is: "/A/B/C"
Command: get "RequiredFile.csv" "C:\Users\ANIL\Desktop\RequiredFile.csv"
Error: /A/B/C/RequiredFile.csv: open for read: no such file or directory
Error: File transfer failed

I wonder how I am not able to download the file even though it is available.

Reply with quote

Advertisement

You can post new topics in this forum