Copying files from remote side failed - Can't open file

Advertisement

murrometz
Joined:
Posts:
4
Location:
Russia

Copying files from remote side failed - Can't open file

Hello! I'm trying to automate downloading backups from my server.
I use Task Scheduler in Windows 7.

Code of script
option batch on
option confirm off
open ftp://...
option transfer binary
get -resume bak.sh С:\backup\new\


What I get
< 2015-03-10 18:08:35.182 150 Here comes the directory listing.
. 2015-03-10 18:08:35.183 drwx------    4 1003     600          4096 Mar 10 03:18 .
. 2015-03-10 18:08:35.183 drwx------    4 1003     600          4096 Mar 10 03:18 ..
<...>
. 2015-03-10 18:08:35.184 -rw-------    1 1003     600          1342 Mar 08 21:46 bak.sh
<...>
< 2015-03-10 18:08:35.206 226 Directory send OK.
. 2015-03-10 18:08:35.206 Directory listing successful
. 2015-03-10 18:08:35.206 bak.sh;-;1342;2015-03-08T18:46:00.000Z;"1003" [0];"600" [0];rw-------;0
. 2015-03-10 18:08:35.207 File: '/bak.sh' [2015-03-08T18:46:00.000Z] [1342]
. 2015-03-10 18:08:35.207 Copying "/bak.sh" to local directory started.
. 2015-03-10 18:08:35.207 Binary transfer mode selected.
. 2015-03-10 18:08:35.207 Starting download of /bak.sh
> 2015-03-10 18:08:35.208 TYPE I
< 2015-03-10 18:08:35.236 200 Switching to Binary mode.
> 2015-03-10 18:08:35.236 PASV
< 2015-03-10 18:08:35.261 227 Entering Passive Mode (188,225,16,121,118,122).
. 2015-03-10 18:08:35.261 Can't open file 'С:\backup\new\bak.sh'.
. 2015-03-10 18:08:35.261 Copying files from remote side failed.
* 2015-03-10 18:08:35.261 (ExtException) **Can't open file 'С:\backup\new\bak.sh'.**
* 2015-03-10 18:08:35.261 Copying files from remote side failed.
. 2015-03-10 18:08:35.261 Asking user:
. 2015-03-10 18:08:35.261 Error transferring file '/bak.sh'. ("Can't open file 'С:\backup\new\bak.sh'.","Copying files from remote side failed.")
< 2015-03-10 18:08:35.261 Script: Error transferring file '/bak.sh'.
< 2015-03-10 18:08:35.262 Script: Can't open file 'С:\backup\new\bak.sh'.

< 2015-03-10 18:08:35.262 Copying files from remote side failed.
* 2015-03-10 18:08:35.263 (EScpSkipFile) Error transferring file '/bak.sh'.
* 2015-03-10 18:08:35.263 Can't open file 'С:\backup\new\bak.sh'.
* 2015-03-10 18:08:35.263 Copying files from remote side failed.
. 2015-03-10 18:08:35.263 Script: Failed
> 2015-03-10 18:08:35.263 Script: exit
. 2015-03-10 18:08:35.263 Script: Exit code: 1
. 2015-03-10 18:08:35.265 Disconnected from server

The script doesn't create any file.
Is it rights or what ...

Can you help me please! I'm new to winscp scripting and I don't get what's going wrong.
Thank you.

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
41,367
Location:
Prague, Czechia

Re: Copying files from remote side failed - Can't open file

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.

Reply with quote

murrometz
Joined:
Posts:
4
Location:
Russia

Re: Copying files from remote side failed - Can't open file

martin wrote:

Please attach a full log file showing the problem (using the latest version of WinSCP).

To generate log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.


ok.

Системе не удается найти указанный путь
is translated as
The system cannot find the path specified
  • log.txt (8.35 KB, Private file)

Reply with quote

martin
Site Admin
martin avatar

Re: Copying files from remote side failed - Can't open file

Does the target path С:\backup\new\ exist? Can the Scheduler account see/access it? Can you do lls С:\backup\new\ before the get?

Reply with quote

Advertisement

murrometz
Joined:
Posts:
4
Location:
Russia

Re: Copying files from remote side failed - Can't open file

martin wrote:

Does the target path С:\backup\new\ exist? Can the Scheduler account see/access it? Can you do lls С:\backup\new\ before the get?

Thank you for your help!

Yes, i confused cyrillic С and latin C. They are on the same key on the keyboard.

Thank you for your program!

Reply with quote

lkystar0729
Joined:
Posts:
1
Location:
HK

i have a same problem

. 2020-04-16 16:08:50.279 Directory listing successful
. 2020-04-16 16:08:50.279 ..;D;0;1899-12-30T08:00:00.000Z;0;"" [0];"" [0];---------;0
. 2020-04-16 16:08:50.279 Client statement_20191101.pdf;-;540777;2020-04-09T09:33:40.000Z;3;"admin" [0];"users" [0];rwxrwxrwx;1
. 2020-04-16 16:08:50.279 HSSECB_NANHUA_stockbalance_20191101.csv;-;677;2020-04-09T09:33:36.000Z;3;"admin" [0];"users" [0];rwxrwxrwx;1
. 2020-04-16 16:08:50.279 HSSEC_trade_20191101.txt;-;365;2020-04-09T09:33:26.000Z;3;"admin" [0];"users" [0];rwxrwxrwx;1
. 2020-04-16 16:08:50.279 ZCAI Client_statement_20191031.pdf;-;338769;2020-04-09T09:32:23.000Z;3;"admin" [0];"users" [0];rwxrwxrwx;1
. 2020-04-16 16:08:50.279 Copying 1 files/directories to local directory "Y:\HSS\CCASS\" - total size: 365
. 2020-04-16 16:08:50.279 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2020-04-16 16:08:50.279 TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; EncryptNewFiles: Yes; ExcludeHiddenFiles: No; ExcludeEmptyDirectories: No; InclM: ; ResumeL: 0
. 2020-04-16 16:08:50.279 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2020-04-16 16:08:50.279 File: '/CCASS/HSSEC_trade_20191101.txt' [2020-04-09T09:33:26.000Z] [365]
. 2020-04-16 16:08:50.279 Copying "/CCASS/HSSEC_trade_20191101.txt" to local directory started.
. 2020-04-16 16:08:50.279 Binary transfer mode selected.
. 2020-04-16 16:08:50.279 Starting download of /CCASS/HSSEC_trade_20191101.txt
> 2020-04-16 16:08:50.279 TYPE I
< 2020-04-16 16:08:50.279 200 Type set to I.
> 2020-04-16 16:08:50.279 PASV
< 2020-04-16 16:08:50.279 227 Entering Passive Mode (192,168,1,10,217,211)
. 2020-04-16 16:08:50.279 Can't open file 'Y:\HSS\CCASS\HSSEC_trade_20191101.txt'.
. 2020-04-16 16:08:50.279 System Error. Code: 3.

. 2020-04-16 16:08:50.279 The system cannot find the path specified
. 2020-04-16 16:08:50.279 Copying files from remote side failed.
* 2020-04-16 16:08:50.279 (ExtException) **Can't open file 'Y:\HSS\CCASS\HSSEC_trade_20191101.txt'.
* 2020-04-16 16:08:50.279 System Error. Code: 3.

* 2020-04-16 16:08:50.279 The system cannot find the path specified**
* 2020-04-16 16:08:50.279 Copying files from remote side failed.
. 2020-04-16 16:08:50.279 Asking user:
. 2020-04-16 16:08:50.279 Error transferring file '/CCASS/HSSEC_trade_20191101.txt'. ("Can't open file 'Y:\HSS\CCASS\HSSEC_trade_20191101.txt'.
. 2020-04-16 16:08:50.279 System Error. Code: 3.

. 2020-04-16 16:08:50.279 The system cannot find the path specified","Copying files from remote side failed.")
< 2020-04-16 16:08:50.279 Script: Error transferring file '/CCASS/HSSEC_trade_20191101.txt'.
< 2020-04-16 16:08:50.279 Script: Can't open file 'Y:\HSS\CCASS\HSSEC_trade_20191101.txt'.
< 2020-04-16 16:08:50.279 System Error. Code: 3.

< 2020-04-16 16:08:50.279 The system cannot find the path specified

< 2020-04-16 16:08:50.279 Copying files from remote side failed.
* 2020-04-16 16:08:50.279 (ESkipFile) Error transferring file '/CCASS/HSSEC_trade_20191101.txt'.
* 2020-04-16 16:08:50.279 Can't open file 'Y:\HSS\CCASS\HSSEC_trade_20191101.txt'.
* 2020-04-16 16:08:50.279 System Error. Code: 3.
* 2020-04-16 16:08:50.279 The system cannot find the path specified
* 2020-04-16 16:08:50.279 Copying files from remote side failed.
. 2020-04-16 16:08:50.279 Copying finished: Transferred: 0, Elapsed: 0:00:00, CPS: 0/s
. 2020-04-16 16:08:50.279 Script: Failed
. 2020-04-16 16:08:50.279 Script: Exit code: 1
. 2020-04-16 16:08:50.279 Disconnected from server

Reply with quote

Advertisement

You can post new topics in this forum