Real path and requested remote path do not match: ""/""

Advertisement

szpiegu
Guest

Real path and requested remote path do not match: ""/""

Hi guys i have problem with my script.. :roll:
 
. 2017-04-19 11:06:37.072 --------------------------------------------------------------------------
. 2017-04-19 11:06:37.073 WinSCP Wersja 5.9.4 (Build 7333) (OS 6.1.7601 Service Pack 1 - Windows 7 Home Premium)
. 2017-04-19 11:06:37.073 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2017-04-19 11:06:37.073 Log level: Normal
. 2017-04-19 11:06:37.073 Local account: PPI\Admin
. 2017-04-19 11:06:37.074 Working directory: C:\Windows\system32
. 2017-04-19 11:06:37.074 Process ID: 2704
. 2017-04-19 11:06:37.076 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /log=C:\Users\Admin\Desktop\logi_ppf.txt /command "open ftp://admin:***@192.168.1.48" "cd /backup/" "lcd C:\home" "put -delete *.tar ./" "exit"
. 2017-04-19 11:06:37.076 Time zone: Current: GMT+2, Standard: GMT+1 (Środkowoeuropejski czas stand.), DST: GMT+2 (Środkowoeuropejski czas letni), DST Start: 2017-03-26, DST End: 2017-10-29
. 2017-04-19 11:06:37.076 Login time: 19 kwiecień 2017 11:06:37
. 2017-04-19 11:06:37.076 --------------------------------------------------------------------------
. 2017-04-19 11:06:37.077 Script: Retrospectively logging previous script records:
> 2017-04-19 11:06:37.077 Script: open ftp://admin:***@192.168.1.48
. 2017-04-19 11:06:37.077 --------------------------------------------------------------------------
. 2017-04-19 11:06:37.077 Session name: admin@192.168.1.48 (Ad-Hoc site)
. 2017-04-19 11:06:37.077 Host name: 192.168.1.48 (Port: 21)
. 2017-04-19 11:06:37.077 User name: admin (Password: Yes, Key file: No, Passphrase: No)
. 2017-04-19 11:06:37.077 Transfer Protocol: FTP
. 2017-04-19 11:06:37.077 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
. 2017-04-19 11:06:37.077 Disable Nagle: No
. 2017-04-19 11:06:37.077 Proxy: None
. 2017-04-19 11:06:37.077 Send buffer: 262144
. 2017-04-19 11:06:37.077 UTF: Auto
. 2017-04-19 11:06:37.077 FTPS: None [Client certificate: No]
. 2017-04-19 11:06:37.077 FTP: Passive: Yes [Force IP: Auto]; MLSD: Auto [List all: Auto]; HOST: Auto
. 2017-04-19 11:06:37.077 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2017-04-19 11:06:37.077 Cache directory changes: Yes, Permanent: Yes
. 2017-04-19 11:06:37.077 Recycle bin: Delete to: No, Overwritten to: No, Bin path: 
. 2017-04-19 11:06:37.077 Timezone offset: 0h 0m
. 2017-04-19 11:06:37.077 --------------------------------------------------------------------------
. 2017-04-19 11:06:37.127 Połączanie do 192.168.1.48 ...
. 2017-04-19 11:06:37.138 Połączone z 192.168.1.48. Czekam na komunikat powitalny...
< 2017-04-19 11:06:37.141 220 Ready
> 2017-04-19 11:06:37.142 USER admin
< 2017-04-19 11:06:37.145 331 Password required
> 2017-04-19 11:06:37.145 PASS *****
< 2017-04-19 11:06:37.145 230 Logged in
> 2017-04-19 11:06:37.145 SYST
< 2017-04-19 11:06:37.146 215 UNIX Type: L8
> 2017-04-19 11:06:37.146 FEAT
< 2017-04-19 11:06:37.148 502 Not implemented
. 2017-04-19 11:06:37.148 Połączone
. 2017-04-19 11:06:37.154 --------------------------------------------------------------------------
. 2017-04-19 11:06:37.155 Using FTP protocol.
. 2017-04-19 11:06:37.156 Doing startup conversation with host.
> 2017-04-19 11:06:37.157 PWD
< 2017-04-19 11:06:37.198 257 "/" is current directory!!
. 2017-04-19 11:06:37.204 Getting current directory name.
. 2017-04-19 11:06:37.204 Startup conversation with host finished.
< 2017-04-19 11:06:37.204 Script: Aktywna sesja: [1] admin@192.168.1.48
> 2017-04-19 11:06:37.204 Script: cd /backup/
. 2017-04-19 11:06:37.204 Cached directory change via "/backup/" to "/backup".
. 2017-04-19 11:06:37.204 Getting current directory name.
< 2017-04-19 11:06:37.204 Script: /backup
> 2017-04-19 11:06:37.204 Script: lcd C:\home
< 2017-04-19 11:06:37.204 Script: C:\home
> 2017-04-19 11:06:37.205 Script: put -delete *.tar ./
. 2017-04-19 11:06:37.213 Copying 2 files/directories to remote directory "./"
. 2017-04-19 11:06:37.214   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask: 
. 2017-04-19 11:06:37.215   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2017-04-19 11:06:37.215   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2017-04-19 11:06:37.224 File: '2017-04-19T10_38_20.478+02_00.tar' [2017-04-19T08:38:20.000Z] [20480]
. 2017-04-19 11:06:37.224 Copying "2017-04-19T10_38_20.478+02_00.tar" to remote directory started.
. 2017-04-19 11:06:37.224 Binary transfer mode selected.
. 2017-04-19 11:06:37.228 Zaczęcie wysyłania 2017-04-19T10_38_20.478+02_00.tar
> 2017-04-19 11:06:37.230 CWD /backup/
< 2017-04-19 11:06:37.234 250 Okay
> 2017-04-19 11:06:37.235 PWD
< 2017-04-19 11:06:37.236 257 "/" is current directory!!
. 2017-04-19 11:06:37.236 Real path and requested remote path do not match: "/"  "/backup/"
. 2017-04-19 11:06:37.236 Nie powiodło się kopiowanie plików do maszyny odległej.
* 2017-04-19 11:06:37.249 (ExtException) **Real path and requested remote path do not match: "/"  "/backup/"**
* 2017-04-19 11:06:37.249 Nie powiodło się kopiowanie plików do maszyny odległej.
. 2017-04-19 11:06:37.250 Asking user:
. 2017-04-19 11:06:37.250 Błąd transferu pliku '2017-04-19T10_38_20.478+02_00.tar'. ("Real path and requested remote path do not match: ""/""  ""/backup/""","Nie powiodło się kopiowanie plików do maszyny odległej.")
< 2017-04-19 11:06:37.250 Script: Błąd transferu pliku '2017-04-19T10_38_20.478+02_00.tar'.
< 2017-04-19 11:06:37.251 Script: Real path and requested remote path do not match: "/"  "/backup/"

< 2017-04-19 11:06:37.251 Nie powiodło się kopiowanie plików do maszyny odległej.
* 2017-04-19 11:06:37.265 (EScpSkipFile) Błąd transferu pliku '2017-04-19T10_38_20.478+02_00.tar'.
* 2017-04-19 11:06:37.265 Real path and requested remote path do not match: "/"  "/backup/"
* 2017-04-19 11:06:37.265 Nie powiodło się kopiowanie plików do maszyny odległej.
. 2017-04-19 11:06:37.265 Script: Failed
. 2017-04-19 11:06:37.265 Script: Exit code: 1
. 2017-04-19 11:06:37.266 Rozłączono z serwerem

/log=C:\Users\Admin\Desktop\log.txt 
/command "open ftp://admin:admin@192.168.1.48" 
"cd /backup/" 
"lcd C:\home" "put -delete *.tar ./" 
"exit"

in my opinion script syntax is correct.. :?

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
40,556
Location:
Prague, Czechia

Re: Real path and requested remote path do not match: ""/""

This is the problem:

szpiegu wrote:

> 2017-04-19 11:06:37.230 CWD /backup/
< 2017-04-19 11:06:37.234 250 Okay
> 2017-04-19 11:06:37.235 PWD
< 2017-04-19 11:06:37.236 257 "/" is current directory!!

Why does your server report the working directory as / after entering /backup/ folder?

Can you enter the /backup folder in WinSCP GUI?

Reply with quote

Advertisement

You can post new topics in this forum