Topic "[5.7.1][FTP]Error "Real path and requested remote..""

Author Message
teledug

Guest


FTP protocol

I receive error, when usign winscp.com:


Code:
Connecting to server ...
Connected
Starting the session...
Session started.
Active session: [1] test@server
transfer        binary
Comparing...
Local 'C:\Users\user\Desktop\tmp\1E\7zEAAD0\bin' <= Remote '/home/7zEAAD0/bin'
Synchronizing...
Local 'C:\Users\user\Desktop\tmp\1E\7zEAAD0' <= Remote '/home/7zEAAD0'
etc                       |            0 B |    0,0 KB/s | binary |   0%
file.conf                 |            0 B |    0,0 KB/s | binary |   0%
Error transferring file '/home/7zEAAD0/etc/file.conf'.
Real path and requested remote path do not match: "/homes/test/7zEAAD0/etc/
"  "/home/7zEAAD0/etc/"
Copying files from remote side failed.
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort


And when I use gui version - everything works fine. What is the problem?
Advertisements
teledug

Guest


script file:
Code:

open   ftp://test:123456@server
option transfer binary
synchronize local C:\Users\user\Desktop\tmp\1E "/home"
exit
[/code]
teledug

Guest


Code:
. 2015-04-08 14:45:54.686 --------------------------------------------------------------------------
. 2015-04-08 14:45:54.686 WinSCP Version 5.7.1 (Build 5235) (OS 5.2.3790 Service Pack 2 - Microsoft Windows Server 2003)
. 2015-04-08 14:45:54.686 Configuration: C:\Program Files\IBM\Domino\data\ftpworkdir\Winscp.ini
. 2015-04-08 14:45:54.686 Log level: Debug 1
. 2015-04-08 14:45:54.686 Local account: mypc\user
. 2015-04-08 14:45:54.686 Working directory: C:\Program Files\IBM\Domino\data\ftpworkdir
. 2015-04-08 14:45:54.686 Process ID: 8724
. 2015-04-08 14:45:54.686 Command-line: "C:\Program Files\IBM\Domino\data\ftpworkdir\Winscp.exe" /console=571 /consoleinstance=_1772_472 "/script=C:\ftptempdir\1E.conf" "/log=C:\ftptempdir\1E.transferlog" "/loglevel=1"
. 2015-04-08 14:45:54.686 Switch:    /console=571
. 2015-04-08 14:45:54.686 Switch:    /consoleinstance=_1772_472
. 2015-04-08 14:45:54.686 Switch:    /script=C:\ftptempdir\1E.conf
. 2015-04-08 14:45:54.686 Switch:    /log=C:\ftptempdir\1E.transferlog
. 2015-04-08 14:45:54.686 Switch:    /loglevel=1
. 2015-04-08 14:45:54.686 Time zone: Current: GMT+4 (Russian Standard Time), No DST
. 2015-04-08 14:45:54.686 Login time: 8 Апрель 2015 г. 14:45:54
. 2015-04-08 14:45:54.686 --------------------------------------------------------------------------
. 2015-04-08 14:45:54.686 Script: Retrospectively logging previous script records:
> 2015-04-08 14:45:54.686 Script: open ftp://test:***@[SERVER]
> 2015-04-08 14:45:54.686 Script: Parameter: ftp://test:***@[SERVER]
. 2015-04-08 14:45:54.686 --------------------------------------------------------------------------
. 2015-04-08 14:45:54.686 Session name: test@[SERVER] (Ad-Hoc site)
. 2015-04-08 14:45:54.686 Host name: [SERVER] (Port: 21)
. 2015-04-08 14:45:54.686 User name: test (Password: Yes, Key file: No)
. 2015-04-08 14:45:54.686 Transfer Protocol: FTP
. 2015-04-08 14:45:54.686 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2015-04-08 14:45:54.686 Disable Nagle: No
. 2015-04-08 14:45:54.686 Proxy: none
. 2015-04-08 14:45:54.686 Send buffer: 262144
. 2015-04-08 14:45:54.686 UTF: 2
. 2015-04-08 14:45:54.686 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-04-08 14:45:54.686 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2015-04-08 14:45:54.686 Cache directory changes: Yes, Permanent: Yes
. 2015-04-08 14:45:54.686 Timezone offset: 0h 0m
. 2015-04-08 14:45:54.686 --------------------------------------------------------------------------
. 2015-04-08 14:45:54.696 Connecting to [SERVER] ...
. 2015-04-08 14:45:54.696 Connected with [SERVER]. Waiting for welcome message...
< 2015-04-08 14:45:54.706 220 NASFTPD Turbo station 1.3.2e Server (ProFTPD) [[SERVER]]
> 2015-04-08 14:45:54.706 USER test
< 2015-04-08 14:45:54.736 331 Password required for test
> 2015-04-08 14:45:54.736 PASS ******
< 2015-04-08 14:45:56.979 230 User test logged in
> 2015-04-08 14:45:56.979 SYST
< 2015-04-08 14:45:56.979 215 UNIX Type: L8
> 2015-04-08 14:45:56.979 FEAT
< 2015-04-08 14:45:56.989 211-Features:
< 2015-04-08 14:45:56.989  MDTM
< 2015-04-08 14:45:56.989  MFMT
< 2015-04-08 14:45:56.989  MFF modify;UNIX.group;UNIX.mode;
< 2015-04-08 14:45:56.989  MLST modify*;perm*;size*;type*;unique*;UNIX.group*;UNIX.mode*;UNIX.owner*;
< 2015-04-08 14:45:56.989  LANG en-US*
< 2015-04-08 14:45:56.989  REST STREAM
< 2015-04-08 14:45:56.989  SIZE
< 2015-04-08 14:45:56.989 211 End
. 2015-04-08 14:45:56.989 Connected
. 2015-04-08 14:45:56.989 Got reply 1 to the command 1
. 2015-04-08 14:45:56.989 --------------------------------------------------------------------------
. 2015-04-08 14:45:56.989 Using FTP protocol.
. 2015-04-08 14:45:56.989 Doing startup conversation with host.
> 2015-04-08 14:45:56.989 PWD
< 2015-04-08 14:45:56.989 257 "/" is the current directory
. 2015-04-08 14:45:56.989 Got reply 1 to the command 16
. 2015-04-08 14:45:56.989 Getting current directory name.
. 2015-04-08 14:45:56.989 Startup conversation with host finished.
< 2015-04-08 14:45:56.989 Script: Active session: [1] test@[SERVER]
. 2015-04-08 14:45:56.989 Session upkeep
> 2015-04-08 14:45:56.989 Script: option transfer binary
> 2015-04-08 14:45:56.989 Script: Parameter: transfer
> 2015-04-08 14:45:56.989 Script: Parameter: binary
< 2015-04-08 14:45:56.989 Script: transfer        binary   
. 2015-04-08 14:45:56.999 Session upkeep
> 2015-04-08 14:45:56.999 Script: synchronize local C:\ftptempdir\1E "/home"
> 2015-04-08 14:45:56.999 Script: Parameter: local
> 2015-04-08 14:45:56.999 Script: Parameter: C:\ftptempdir\1E
> 2015-04-08 14:45:56.999 Script: Parameter: /home
< 2015-04-08 14:45:56.999 Script: Comparing...
. 2015-04-08 14:45:56.999 Collecting synchronization list for local directory 'C:\ftptempdir\1E' and remote directory '/home', mode = Local, params = 0x2 (NoConfirmation)
. 2015-04-08 14:45:56.999 Local file 'C:\ftptempdir\1E\.' [2015-04-08T10:45:54.356Z] [0] excluded from synchronization
. 2015-04-08 14:45:56.999 Local file 'C:\ftptempdir\1E\..' [2015-04-08T10:45:54.356Z] [0] excluded from synchronization
. 2015-04-08 14:45:56.999 Retrieving directory listing...
> 2015-04-08 14:45:56.999 CWD /home/
< 2015-04-08 14:45:56.999 250 CWD command successful
> 2015-04-08 14:45:56.999 PWD
< 2015-04-08 14:45:57.009 257 "/homes/test" is the current directory
> 2015-04-08 14:45:57.009 TYPE A
< 2015-04-08 14:45:57.009 200 Type set to A
> 2015-04-08 14:45:57.009 PASV
< 2015-04-08 14:45:57.009 227 Entering Passive Mode ([SERVER],188).
> 2015-04-08 14:45:57.009 MLSD
. 2015-04-08 14:45:57.009 Connecting to [SERVER]:56508 ...
< 2015-04-08 14:45:57.029 150 Opening ASCII mode data connection for MLSD
. 2015-04-08 14:45:57.039 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F4;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; 7zEAAD0
. 2015-04-08 14:45:57.039 modify=20150408105946;perm=flcdmpe;type=dir;unique=900U136005F3;UNIX.group=100;UNIX.mode=0711;UNIX.owner=519; .
< 2015-04-08 14:45:57.039 226 Transfer complete
. 2015-04-08 14:45:57.039 Directory listing successful
. 2015-04-08 14:45:57.039 Got reply 1 to the command 2
. 2015-04-08 14:45:57.039 ..;D;0;1899-12-30T04:00:00.000Z;"" [0];"" [0];---------;0
. 2015-04-08 14:45:57.039 7zEAAD0;D;0;2015-04-07T16:12:41.000Z;"519" [0];"100" [0];rwxrwxrwx;1
. 2015-04-08 14:45:57.059 Remote file '/home/7zEAAD0' [2015-04-07T16:12:41.000Z] [0] is new
< 2015-04-08 14:45:57.059 Script: Synchronizing...
. 2015-04-08 14:45:57.059 Synchronizing local directory 'C:\ftptempdir\1E\' with remote directory '/home/', params = 0x2 (NoConfirmation)
. 2015-04-08 14:45:57.059 Copying 1 files/directories to local directory "C:\ftptempdir\1E\"
. 2015-04-08 14:45:57.059   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: *.*
. 2015-04-08 14:45:57.059   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2015-04-08 14:45:57.059   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2015-04-08 14:45:57.059 File: '/home/7zEAAD0' [2015-04-07T16:12:41.000Z] [0]
< 2015-04-08 14:45:57.059 Script: Local 'C:\ftptempdir\1E' <= Remote '/home'
. 2015-04-08 14:45:57.059 Retrieving directory listing...
> 2015-04-08 14:45:57.059 CWD /home/7zEAAD0/
< 2015-04-08 14:45:57.069 250 CWD command successful
> 2015-04-08 14:45:57.069 PWD
< 2015-04-08 14:45:57.079 257 "/homes/test/7zEAAD0" is the current directory
> 2015-04-08 14:45:57.079 TYPE A
< 2015-04-08 14:45:57.079 200 Type set to A
> 2015-04-08 14:45:57.079 PASV
< 2015-04-08 14:45:57.079 227 Entering Passive Mode ([SERVER],7).
> 2015-04-08 14:45:57.079 MLSD
. 2015-04-08 14:45:57.079 Connecting to [SERVER]:56327 ...
< 2015-04-08 14:45:57.089 150 Opening ASCII mode data connection for MLSD
. 2015-04-08 14:45:57.089 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F7;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; tmp
. 2015-04-08 14:45:57.089 modify=20150407161248;perm=flcdmpe;type=dir;unique=900U136005F5;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; bin
. 2015-04-08 14:45:57.089 modify=20150407161248;perm=flcdmpe;type=dir;unique=900U136005F6;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; etc
. 2015-04-08 14:45:57.089 modify=20150408105946;perm=flcdmpe;type=dir;unique=900U136005F3;UNIX.group=100;UNIX.mode=0711;UNIX.owner=519; ..
. 2015-04-08 14:45:57.089 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F4;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; .
< 2015-04-08 14:45:57.089 226 Transfer complete
. 2015-04-08 14:45:57.089 Directory listing successful
. 2015-04-08 14:45:57.089 Got reply 1 to the command 2
. 2015-04-08 14:45:57.089 ..;D;0;1899-12-30T04:00:00.000Z;"" [0];"" [0];---------;0
. 2015-04-08 14:45:57.089 tmp;D;0;2015-04-07T16:12:41.000Z;"519" [0];"100" [0];rwxrwxrwx;1
. 2015-04-08 14:45:57.089 bin;D;0;2015-04-07T16:12:48.000Z;"519" [0];"100" [0];rwxrwxrwx;1
. 2015-04-08 14:45:57.089 etc;D;0;2015-04-07T16:12:48.000Z;"519" [0];"100" [0];rwxrwxrwx;1
. 2015-04-08 14:45:57.089 File: '/home/7zEAAD0/tmp' [2015-04-07T16:12:41.000Z] [0]
. 2015-04-08 14:45:57.099 Retrieving directory listing...
> 2015-04-08 14:45:57.099 CWD /home/7zEAAD0/tmp/
< 2015-04-08 14:45:57.099 250 CWD command successful
> 2015-04-08 14:45:57.099 PWD
< 2015-04-08 14:45:57.109 257 "/homes/test/7zEAAD0/tmp" is the current directory
> 2015-04-08 14:45:57.109 TYPE A
< 2015-04-08 14:45:57.109 200 Type set to A
> 2015-04-08 14:45:57.109 PASV
< 2015-04-08 14:45:57.119 227 Entering Passive Mode ([SERVER],135).
> 2015-04-08 14:45:57.119 MLSD
. 2015-04-08 14:45:57.119 Connecting to [SERVER]:56455 ...
< 2015-04-08 14:45:57.140 150 Opening ASCII mode data connection for MLSD
. 2015-04-08 14:45:57.150 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F4;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; ..
. 2015-04-08 14:45:57.150 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F7;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; .
< 2015-04-08 14:45:57.150 226 Transfer complete
. 2015-04-08 14:45:57.150 Directory listing successful
. 2015-04-08 14:45:57.150 Got reply 1 to the command 2
. 2015-04-08 14:45:57.150 ..;D;0;1899-12-30T04:00:00.000Z;"" [0];"" [0];---------;0
. 2015-04-08 14:45:57.150 File: '/home/7zEAAD0/bin' [2015-04-07T16:12:48.000Z] [0]
. 2015-04-08 14:45:57.150 Retrieving directory listing...
> 2015-04-08 14:45:57.150 CWD /home/7zEAAD0/bin/
< 2015-04-08 14:45:57.160 250 CWD command successful
> 2015-04-08 14:45:57.160 PWD
< 2015-04-08 14:45:57.170 257 "/homes/test/7zEAAD0/bin" is the current directory
> 2015-04-08 14:45:57.170 TYPE A
< 2015-04-08 14:45:57.170 200 Type set to A
> 2015-04-08 14:45:57.170 PASV
< 2015-04-08 14:45:57.170 227 Entering Passive Mode ([SERVER],163).
> 2015-04-08 14:45:57.170 MLSD
. 2015-04-08 14:45:57.170 Connecting to [SERVER]:55715 ...
< 2015-04-08 14:45:57.190 150 Opening ASCII mode data connection for MLSD
. 2015-04-08 14:45:57.190 modify=20150407161244;perm=adfrw;size=1021971;type=file;unique=900U136005FC;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygiconv-2.dll
. 2015-04-08 14:45:57.190 modify=20150407161247;perm=adfrw;size=80915;type=file;unique=900U13600603;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygz.dll
. 2015-04-08 14:45:57.190 modify=20150407161241;perm=flcdmpe;type=dir;unique=900U136005F4;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; ..
. 2015-04-08 14:45:57.190 modify=20150407161248;perm=adfrw;size=1079808;type=file;unique=900U13600604;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; lftp.exe
. 2015-04-08 14:45:57.190 modify=20150407161244;perm=adfrw;size=38931;type=file;unique=900U136005FD;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygintl-8.dll
. 2015-04-08 14:45:57.190 modify=20150407161245;perm=adfrw;size=10771;type=file;unique=900U13600601;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygssp-0.dll
. 2015-04-08 14:45:57.190 modify=20150407161245;perm=adfrw;size=386048;type=file;unique=900U13600600;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygssl-1.0.0.dll
. 2015-04-08 14:45:57.190 modify=20150407161245;perm=adfrw;size=197139;type=file;unique=900U136005FF;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygreadline7.dll
. 2015-04-08 14:45:57.190 modify=20150407161243;perm=adfrw;size=1694720;type=file;unique=900U136005F9;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygcrypto-1.0.0.dll
. 2015-04-08 14:45:57.190 modify=20150407161248;perm=flcdmpe;type=dir;unique=900U136005F5;UNIX.group=100;UNIX.mode=0777;UNIX.owner=519; .
. 2015-04-08 14:45:57.190 modify=20150407161242;perm=adfrw;size=632851;type=file;unique=900U136005F8;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; bash.exe
. 2015-04-08 14:45:57.190 modify=20150407161243;perm=adfrw;size=68115;type=file;unique=900U136005FB;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cyggcc_s-seh-1.dll
. 2015-04-08 14:45:57.190 modify=20150407161243;perm=adfrw;size=150035;type=file;unique=900U136005FA;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygexpat-1.dll
. 2015-04-08 14:45:57.190 modify=20150407161248;perm=adfrw;size=388115;type=file;unique=900U13600605;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; ssh.exe
. 2015-04-08 14:45:57.190 modify=20150407161244;perm=adfrw;size=301587;type=file;unique=900U136005FE;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygncursesw-10.dll
. 2015-04-08 14:45:57.190 modify=20150407161247;perm=adfrw;size=3145043;type=file;unique=900U13600602;UNIX.group=100;UNIX.mode=0666;UNIX.owner=519; cygwin1.dll
< 2015-04-08 14:45:57.190 226 Transfer complete
. 2015-04-08 14:45:57.190 Directory listing successful
. 2015-04-08 14:45:57.190 Got reply 1 to the command 2
. 2015-04-08 14:45:57.190 ..;D;0;1899-12-30T04:00:00.000Z;"" [0];"" [0];---------;0
. 2015-04-08 14:45:57.190 cygiconv-2.dll;-;1021971;2015-04-07T16:12:44.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygz.dll;-;80915;2015-04-07T16:12:47.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 lftp.exe;-;1079808;2015-04-07T16:12:48.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygintl-8.dll;-;38931;2015-04-07T16:12:44.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygssp-0.dll;-;10771;2015-04-07T16:12:45.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygssl-1.0.0.dll;-;386048;2015-04-07T16:12:45.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygreadline7.dll;-;197139;2015-04-07T16:12:45.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygcrypto-1.0.0.dll;-;1694720;2015-04-07T16:12:43.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 bash.exe;-;632851;2015-04-07T16:12:42.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cyggcc_s-seh-1.dll;-;68115;2015-04-07T16:12:43.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygexpat-1.dll;-;150035;2015-04-07T16:12:43.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 ssh.exe;-;388115;2015-04-07T16:12:48.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygncursesw-10.dll;-;301587;2015-04-07T16:12:44.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 cygwin1.dll;-;3145043;2015-04-07T16:12:47.000Z;"519" [0];"100" [0];rw-rw-rw-;1
. 2015-04-08 14:45:57.190 File: '/home/7zEAAD0/bin/cygiconv-2.dll' [2015-04-07T16:12:44.000Z] [1021971]
. 2015-04-08 14:45:57.190 Copying "/home/7zEAAD0/bin/cygiconv-2.dll" to local directory started.
. 2015-04-08 14:45:57.190 Binary transfer mode selected.
. 2015-04-08 14:45:57.190 Starting download of /home/7zEAAD0/bin/cygiconv-2.dll
> 2015-04-08 14:45:57.190 CWD /home/7zEAAD0/bin/
< 2015-04-08 14:45:57.200 250 CWD command successful
> 2015-04-08 14:45:57.200 PWD
< 2015-04-08 14:45:57.200 257 "/homes/test/7zEAAD0/bin" is the current directory
. 2015-04-08 14:45:57.200 Real path and requested remote path do not match: "/homes/test/7zEAAD0/bin/"  "/home/7zEAAD0/bin/"
. 2015-04-08 14:45:57.200 Copying files from remote side failed.
. 2015-04-08 14:45:57.200 Got reply 2004 to the command 4
* 2015-04-08 14:45:57.200 (ExtException) **Real path and requested remote path do not match: "/homes/test/7zEAAD0/bin/"  "/home/7zEAAD0/bin/"**
* 2015-04-08 14:45:57.200 Copying files from remote side failed.
. 2015-04-08 14:45:57.200 Asking user:
. 2015-04-08 14:45:57.200 Error transferring file '/home/7zEAAD0/bin/cygiconv-2.dll'. ("Real path and requested remote path do not match: ""/homes/test/7zEAAD0/bin/""  ""/home/7zEAAD0/bin/""","Copying files from remote side failed.")
< 2015-04-08 14:45:57.200 Script: Error transferring file '/home/7zEAAD0/bin/cygiconv-2.dll'.
< 2015-04-08 14:45:57.200 Script: Real path and requested remote path do not match: "/homes/test/7zEAAD0/bin/"  "/home/7zEAAD0/bin/"

< 2015-04-08 14:45:57.200 Copying files from remote side failed.
* 2015-04-08 14:45:57.210 (EScpSkipFile) Error transferring file '/home/7zEAAD0/bin/cygiconv-2.dll'.
* 2015-04-08 14:45:57.210 Real path and requested remote path do not match: "/homes/test/7zEAAD0/bin/"  "/home/7zEAAD0/bin/"
* 2015-04-08 14:45:57.210 Copying files from remote side failed.
. 2015-04-08 14:45:57.210 Script: Failed
. 2015-04-08 14:45:57.210 Session upkeep
. 2015-04-08 14:45:57.210 Script: Exit code: 1
. 2015-04-08 14:45:57.210 Got reply 1004 to the command 4
. 2015-04-08 14:45:57.210 Disconnected from server
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
There's some symlink in the path. I'd say that in GUI you actually synchronize a the symlink points too.

If this does not help, please attach a full log file from GUI (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. 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.
_________________
Martin Prikryl
teledug

Guest


prikryl wrote:
There's some symlink in the path. I'd say that in GUI you actually synchronize a the symlink points too.

If this does not help, please attach a full log file from GUI (using the latest version of WinSCP).

To generate log file, enable logging, log in to your server and do the operation and only the operation that causes the error. 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.


Hello! Thank you for the answer. I have checked in GUI version, it changes path automatically:
I see in explorer /home, when I enter this dir I have /homes/test, but not /home. When I try to synchronize /home - I receive same error "Real path and requested remote path do not match" , like in a .com version.
Anyway, GUI version can synchronize directory correctly, but .com version gives me an error. Should I still post log from GUI?
"Resolve Symbolic links" is active in GUI by default and cannot be changed.

How can I make .com version behave like GUI version?
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
So just use /homes/test in the script.
_________________
Martin Prikryl
teledug

Guest


Sadly, but this is unacceptalbe. I use winscp.com version in script and as parameter it can receive root of ftp server. When it tries to sync I receive same error:

Real path and requested remote path do not match: "/homes/test/7zEAAD0/etc/" "/home/7zEAAD0/etc/"

Is there any way for the winscp.com to behave like GUI version? It can detect path in automatic way, but winscp.com - cannot.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
teledug wrote:
When it tries to sync I receive same error:

Real path and requested remote path do not match: "/homes/test/7zEAAD0/etc/" "/home/7zEAAD0/etc/"

I do not understand when do you get this error. Is this still the same scenario as before? Or does this happen when you use /homes/test in synchronize command?
_________________
Martin Prikryl
teledug

Guest


winscp.exe /console with same script gives me same result.

I'll try to clarify my problem.
When I try to list root of ftp server, I receive following:

/home
/Multimedia
/Public

When I do:
synchronize local C:\testdir "/home"

I get error.
I do not know about /homes/tester

When I enter /home directory in GUI version I see /homes/tester path, not /home
When I enter /home directory in Windows Explorer I see ftp://myserver/home/

I'm not sure, if that behavior is correct for winscp.com
In windows explorer
teledug

Guest


My steps:

1. Login ftp server and receive listing
2. Select required directory from listing (Let it be /home )
3. Make script:
Code:

open   ftp://test:123456@server
option transfer binary
synchronize local "C:\test" "/home"
exit

4. start winscp.com with this script.

So I receive this error when I try to sync directory which I see from listing.
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 25034
Location: Prague, Czechia
OK, I do not understand why you cannot use /homes/test with the synchronize command.
If you need to use the /home path explicitly, try this:

Code:
cd "/home"
synchronize local "C:\test" "."


This is what the GUI does.
teledug

Guest


prikryl wrote:
OK, I do not understand why you cannot use /homes/test with the synchronize command.
If you need to use the /home path explicitly, try this:

Code:
cd "/home"
synchronize local "C:\test" "."


This is what the GUI does.

Awesome! This works like a charm! Thank you!

I'm unable to use /homes/test because I dont see it when I make "ls /"
Advertisements

You can post new topics in this forum






Search Site

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