Post a reply

Before posting, please read how to report bug or request support effectively.

Bug reports without an attached log file are usually useless.

Options
Add an Attachment

If you do not want to add an Attachment to your Post, please leave the Fields blank.

(maximum 10 MB; please compress large files; only common media, archive, text and programming file formats are allowed)

Options

Topic review

velsitech

please tell me, now WINSCP supports Mainframe server ???

Hi all,

What's the current status on this bug ? please tell me, whether winscp supports Mainframe server as well?
martin

Re: CWD Directory Changes failing with duplication of subfolder names

@smosley: Your problem does not seem to be related to this thread.
In your case, the problem is that the server uses backslashes in the paths, what WinSCP does not support.
See Issue 49 – Support for non-Unix-like systems with FTP
smosley

CWD Directory Changes failing with duplication of subfolder names

Are there any updates on this issue or things I can try to get WinSCP working?

I have an FTPS server running on Windows 2008 R2 using Implicit TLS/SSL over port 22.

I can connect using FileZilla without issue but I am being directed by my management to use WinSCP instead.

WinSCP connects to the FTPS server and lists the three subfolders at the root level without issue.

When attempting to CWD into any of the subdirectories, however, I am seeing the same issue where the subdirectory name is being duplicated and the CWD fails because the invalid duplicate directory name does not exist.

Any advise would be very helpful.

Thanks!
. 2015-11-19 15:41:46.051 --------------------------------------------------------------------------
. 2015-11-19 15:41:46.051 WinSCP Version 5.7.6 (Build 5874) (OS 6.1.7601 Service Pack 1 - Windows Server 2008 R2 Standard)
. 2015-11-19 15:41:46.051 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-11-19 15:41:46.051 Log level: Normal
. 2015-11-19 15:41:46.051 Local account: XXX\xxxx
. 2015-11-19 15:41:46.051 Working directory: D:\Program Files (x86)\WinSCP
. 2015-11-19 15:41:46.051 Process ID: 10568
. 2015-11-19 15:41:46.051 Command-line: "D:\Program Files (x86)\WinSCP\WinSCP.exe"
. 2015-11-19 15:41:46.051 Time zone: Current: GMT+0 (Greenwich Standard Time), No DST
. 2015-11-19 15:41:46.051 Login time: Thursday, November 19, 2015 3:41:46 PM
. 2015-11-19 15:41:46.051 --------------------------------------------------------------------------
. 2015-11-19 15:41:46.051 Session name: FTPS Repository (Site)
. 2015-11-19 15:41:46.051 Host name: localhost (Port: 22)
. 2015-11-19 15:41:46.051 User name: xxxxxx(Password: Yes, Key file: No)
. 2015-11-19 15:41:46.051 Transfer Protocol: FTP
. 2015-11-19 15:41:46.051 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2015-11-19 15:41:46.051 Disable Nagle: No
. 2015-11-19 15:41:46.051 Proxy: none
. 2015-11-19 15:41:46.051 Send buffer: 262144
. 2015-11-19 15:41:46.051 UTF: 2
. 2015-11-19 15:41:46.051 FTP: FTPS: Implicit TLS/SSL; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-11-19 15:41:46.051 Session reuse: Yes
. 2015-11-19 15:41:46.051 TLS/SSL versions: TLSv1.0-TLSv1.2
. 2015-11-19 15:41:46.051 Local directory: C:\Users\xxxx, Remote directory: home, Update: No, Cache: No
. 2015-11-19 15:41:46.051 Cache directory changes: No, Permanent: Yes
. 2015-11-19 15:41:46.051 Timezone offset: 0h 0m
. 2015-11-19 15:41:46.051 --------------------------------------------------------------------------
. 2015-11-19 15:41:46.238 Connecting to localhost:22 ...
. 2015-11-19 15:41:46.238 Connected with localhost:22, negotiating TLS connection...
. 2015-11-19 15:41:46.316 Using TLSv1, cipher TLSv1/SSLv3: DHE-RSA-AES128-SHA, 1024 bit RSA
. 2015-11-19 15:41:46.379 TLS connection established. Waiting for welcome message...
< 2015-11-19 15:41:46.379 220 Service ready for new user.
> 2015-11-19 15:41:46.379 USER xxxxxx
< 2015-11-19 15:41:46.379 331 User name okay, need password for qcadmin.
> 2015-11-19 15:41:46.379 PASS **********
< 2015-11-19 15:41:46.379 230 User logged in, proceed.
> 2015-11-19 15:41:46.379 SYST
< 2015-11-19 15:41:46.379 215 UNIX Type: Apache FtpServer
> 2015-11-19 15:41:46.379 FEAT
< 2015-11-19 15:41:46.379 211-Extensions supported
< 2015-11-19 15:41:46.379  SIZE
< 2015-11-19 15:41:46.379  MDTM
< 2015-11-19 15:41:46.379  REST STREAM
< 2015-11-19 15:41:46.379  LANG en;zh-tw;ja;is
< 2015-11-19 15:41:46.379  Size;Modify;Type;Perm
< 2015-11-19 15:41:46.379  AUTH SSL
< 2015-11-19 15:41:46.379  AUTH TLS
< 2015-11-19 15:41:46.379  UTF8
< 2015-11-19 15:41:46.379  TVFS
< 2015-11-19 15:41:46.379  MD5
< 2015-11-19 15:41:46.379  MMD5
< 2015-11-19 15:41:46.379  MFMT
< 2015-11-19 15:41:46.379 211 End
> 2015-11-19 15:41:46.379 OPTS UTF8 ON
< 2015-11-19 15:41:46.379 200 Command OPTS okay.
> 2015-11-19 15:41:46.379 PBSZ 0
< 2015-11-19 15:41:46.379 200 Command PBSZ okay.
> 2015-11-19 15:41:46.379 PROT P
< 2015-11-19 15:41:46.379 200 Command PROT okay.
. 2015-11-19 15:41:46.441 Connected
. 2015-11-19 15:41:46.441 --------------------------------------------------------------------------
. 2015-11-19 15:41:46.441 Using FTP protocol.
. 2015-11-19 15:41:46.441 Doing startup conversation with host.
> 2015-11-19 15:41:46.505 PWD
< 2015-11-19 15:41:46.505 257 "\" is current directory.
. 2015-11-19 15:41:46.505 Getting current directory name.
. 2015-11-19 15:41:46.692 Retrieving directory listing...
> 2015-11-19 15:41:46.692 TYPE A
< 2015-11-19 15:41:46.692 200 Command TYPE okay.
> 2015-11-19 15:41:46.692 PASV
< 2015-11-19 15:41:46.692 227 Entering Passive Mode (127,0,0,1,213,183)
> 2015-11-19 15:41:46.692 LIST -a
. 2015-11-19 15:41:46.692 Connecting to 127.0.0.1:54711 ...
< 2015-11-19 15:41:46.692 150 File status okay; about to open data connection.
. 2015-11-19 15:41:46.692 Session ID reused
. 2015-11-19 15:41:46.754 TLS connection established
< 2015-11-19 15:41:46.754 226 Closing data connection.
. 2015-11-19 15:41:46.754 drwx------    0 users group 0 Nov 19 15:41 XXX
. 2015-11-19 15:41:46.754 drwx------    0 users group 0 Nov 19 15:41 DEFAULT
. 2015-11-19 15:41:46.754 drwx------    0 users group 0 Nov 19 15:41 XXX_BACKUP
. 2015-11-19 15:41:46.754 Directory listing successful
. 2015-11-19 15:41:46.754 Detecting timezone difference...
. 2015-11-19 15:41:46.754 Found no file to use for detecting timezone difference
. 2015-11-19 15:41:46.754 ..;D;0;1899-12-30T00:00:00.000Z;"" [0];"" [0];---------;0
. 2015-11-19 15:41:46.754 XXX;D;0;2015-11-19T15:41:00.000Z;"users" [0];"group" [0];rwx------;0
. 2015-11-19 15:41:46.754 DEFAULT;D;0;2015-11-19T15:41:00.000Z;"users" [0];"group" [0];rwx------;0
. 2015-11-19 15:41:46.754 XXX_BACKUP;D;0;2015-11-19T15:41:00.000Z;"users" [0];"group" [0];rwx------;0
. 2015-11-19 15:41:46.879 Startup conversation with host finished.
. 2015-11-19 15:41:47.129 Not refreshing directory, caching is off.
. 2015-11-19 15:41:49.438 Changing directory to "DEFAULT".
. 2015-11-19 15:41:49.438 Synchronizing current directory "\".
> 2015-11-19 15:41:49.438 CWD \
< 2015-11-19 15:41:49.438 250 Directory changed to \
> 2015-11-19 15:41:49.438 CWD DEFAULT
< 2015-11-19 15:41:49.438 250 Directory changed to \DEFAULT
. 2015-11-19 15:41:49.438 Getting current directory name.
> 2015-11-19 15:41:49.438 PWD
< 2015-11-19 15:41:49.438 257 "\DEFAULT" is current directory.
. 2015-11-19 15:41:49.438 Retrieving directory listing...
> 2015-11-19 15:41:49.438 CWD /DEFAULT/DEFAULT/
< 2015-11-19 15:41:49.454 550 No such directory.
. 2015-11-19 15:41:49.454 Could not retrieve directory listing
* 2015-11-19 15:41:49.516 (ECommand) Error listing directory '\DEFAULT'.
* 2015-11-19 15:41:49.516 Could not retrieve directory listing
* 2015-11-19 15:41:49.516 No such directory.
. 2015-11-19 15:41:56.870 Disconnected from server
BBestvina

CWD Directory Changes Failing?

I'm having a similar issue that's causing me to tear my hair out! The script changes directories successfully, but when going to move the file, it tries to change directories again and fails! I'm at a loss :/ Here is my script file:
option batch abort
option confirm off
 
open ftp://[omitted]
cd ..
cd ..
cd infa_shared
cd imatica
cd GSC
cd SRCFiles
put c:\Temp\HIDBadgeCodeToSSO.csv
exit

Here is my log file:
. 2015-05-29 11:26:35.564 --------------------------------------------------------------------------
. 2015-05-29 11:26:35.564 WinSCP Version 5.7.3 (Build 5438) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2015-05-29 11:26:35.564 Configuration: HKCU\Software\Martin Prikryl\WinSCP 2\
. 2015-05-29 11:26:35.564 Log level: Normal
. 2015-05-29 11:26:35.564 Local account: [omitted]
. 2015-05-29 11:26:35.564 Working directory: C:\Windows\system32
. 2015-05-29 11:26:35.564 Process ID: 81344
. 2015-05-29 11:26:35.564 Command-line: "C:\Program Files\WinSCP\WinSCP.exe" /console=573 /consoleinstance=_81428_23 "/script=c:\Temp\FTPScript.txt" "/log=c:\Temp\scplog.log"
. 2015-05-29 11:26:35.564 Time zone: Current: GMT-4, Standard: GMT-5 (Eastern Standard Time), DST: GMT-4 (Eastern Daylight Time), DST Start: 3/8/2015, DST End: 11/1/2015
. 2015-05-29 11:26:35.564 Login time: Friday, May 29, 2015 11:26:35 AM
. 2015-05-29 11:26:35.564 --------------------------------------------------------------------------
. 2015-05-29 11:26:35.564 Script: Retrospectively logging previous script records:
> 2015-05-29 11:26:35.564 Script: option batch abort
< 2015-05-29 11:26:35.564 Script: batch           abort     
< 2015-05-29 11:26:35.564 Script: reconnecttime   120       
> 2015-05-29 11:26:35.564 Script: option confirm off
< 2015-05-29 11:26:35.564 Script: confirm         off       
> 2015-05-29 11:26:35.564 Script: open [omitted]
. 2015-05-29 11:26:35.564 --------------------------------------------------------------------------
. 2015-05-29 11:26:35.564 Session name: [omitted] (Ad-Hoc site)
. 2015-05-29 11:26:35.564 Host name: [omitted] (Port: 21)
. 2015-05-29 11:26:35.564 User name: fungscp (Password: Yes, Key file: No)
. 2015-05-29 11:26:35.564 Transfer Protocol: FTP
. 2015-05-29 11:26:35.564 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2015-05-29 11:26:35.564 Disable Nagle: No
. 2015-05-29 11:26:35.564 Proxy: none
. 2015-05-29 11:26:35.564 Send buffer: 262144
. 2015-05-29 11:26:35.564 UTF: 2
. 2015-05-29 11:26:35.564 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-05-29 11:26:35.564 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2015-05-29 11:26:35.564 Cache directory changes: Yes, Permanent: Yes
. 2015-05-29 11:26:35.564 Timezone offset: 0h 0m
. 2015-05-29 11:26:35.564 --------------------------------------------------------------------------
. 2015-05-29 11:26:35.564 Connecting to [omitted] ...
. 2015-05-29 11:26:35.644 Connected with [omitted]. Waiting for welcome message...
< 2015-05-29 11:26:35.674 220 (vsFTPd 2.0.5)
> 2015-05-29 11:26:35.674 USER fungscp
< 2015-05-29 11:26:35.704 331 Please specify the password.
> 2015-05-29 11:26:35.704 PASS ********
< 2015-05-29 11:26:35.914 230 Login successful.
> 2015-05-29 11:26:35.914 SYST
< 2015-05-29 11:26:35.954 215 UNIX Type: L8
> 2015-05-29 11:26:35.954 FEAT
< 2015-05-29 11:26:35.994 211-Features:
< 2015-05-29 11:26:35.994  EPRT
< 2015-05-29 11:26:36.034  EPSV
< 2015-05-29 11:26:36.034  MDTM
< 2015-05-29 11:26:36.034  PASV
< 2015-05-29 11:26:36.034  REST STREAM
< 2015-05-29 11:26:36.034  SIZE
< 2015-05-29 11:26:36.034  TVFS
< 2015-05-29 11:26:36.034  UTF8
< 2015-05-29 11:26:36.034 211 End
> 2015-05-29 11:26:36.034 OPTS UTF8 ON
< 2015-05-29 11:26:36.074 200 Always in UTF8 mode.
. 2015-05-29 11:26:36.074 Connected
. 2015-05-29 11:26:36.074 --------------------------------------------------------------------------
. 2015-05-29 11:26:36.074 Using FTP protocol.
. 2015-05-29 11:26:36.074 Doing startup conversation with host.
> 2015-05-29 11:26:36.074 PWD
< 2015-05-29 11:26:36.104 257 "/home/fungscp"
. 2015-05-29 11:26:36.104 Getting current directory name.
. 2015-05-29 11:26:36.104 Startup conversation with host finished.
< 2015-05-29 11:26:36.104 Script: Active session: [1] [omitted]
> 2015-05-29 11:26:36.104 Script: cd ..
. 2015-05-29 11:26:36.104 Cached directory change via ".." to "/home".
. 2015-05-29 11:26:36.104 Getting current directory name.
< 2015-05-29 11:26:36.104 Script: /home
> 2015-05-29 11:26:36.104 Script: cd ..
. 2015-05-29 11:26:36.114 Cached directory change via ".." to "/".
. 2015-05-29 11:26:36.114 Getting current directory name.
< 2015-05-29 11:26:36.114 Script: /
> 2015-05-29 11:26:36.114 Script: cd infa_shared
. 2015-05-29 11:26:36.114 Cached directory change via "infa_shared" to "/infa_shared".
. 2015-05-29 11:26:36.114 Getting current directory name.
< 2015-05-29 11:26:36.114 Script: /infa_shared
> 2015-05-29 11:26:36.114 Script: cd imatica
. 2015-05-29 11:26:36.114 Cached directory change via "imatica" to "/infa_shared/imatica".
. 2015-05-29 11:26:36.114 Getting current directory name.
< 2015-05-29 11:26:36.114 Script: /infa_shared/imatica
> 2015-05-29 11:26:36.114 Script: cd GSC
. 2015-05-29 11:26:36.114 Cached directory change via "GSC" to "/infa_shared/imatica/GSC".
. 2015-05-29 11:26:36.114 Getting current directory name.
< 2015-05-29 11:26:36.114 Script: /infa_shared/imatica/GSC
> 2015-05-29 11:26:36.114 Script: cd SRCFiles
. 2015-05-29 11:26:36.114 Cached directory change via "SRCFiles" to "/infa_shared/imatica/GSC/SRCFiles".
. 2015-05-29 11:26:36.114 Getting current directory name.
< 2015-05-29 11:26:36.114 Script: /infa_shared/imatica/GSC/SRCFiles
> 2015-05-29 11:26:36.114 Script: put c:\Temp\HIDBadgeCodeToSSO.csv
. 2015-05-29 11:26:36.114 Copying 1 files/directories to remote directory "/infa_shared/imatica/GSC/SRCFiles"
. 2015-05-29 11:26:36.114   PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2015-05-29 11:26:36.114   TM: B; ClAr: No; RemEOF: No; RemBOM: No; CPS: 0; NewerOnly: No; InclM: ; ResumeL: 0
. 2015-05-29 11:26:36.114   AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2015-05-29 11:26:36.114 File: 'c:\Temp\HIDBadgeCodeToSSO.csv' [2015-05-29T13:51:39.221Z] [1006524]
. 2015-05-29 11:26:36.114 Copying "c:\Temp\HIDBadgeCodeToSSO.csv" to remote directory started.
. 2015-05-29 11:26:36.114 Binary transfer mode selected.
. 2015-05-29 11:26:36.114 Starting upload of c:\Temp\HIDBadgeCodeToSSO.csv
> 2015-05-29 11:26:36.114 CWD /infa_shared/imatica/GSC/SRCFiles/
< 2015-05-29 11:26:36.144 550 Failed to change directory.
> 2015-05-29 11:26:36.144 CWD /infa_shared/imatica/GSC/
< 2015-05-29 11:26:36.194 250 Directory successfully changed.
> 2015-05-29 11:26:36.194 MKD SRCFiles
< 2015-05-29 11:26:36.234 550 Create directory operation failed.
> 2015-05-29 11:26:36.234 CWD /infa_shared/imatica/GSC/SRCFiles/
< 2015-05-29 11:26:36.284 550 Failed to change directory.
. 2015-05-29 11:26:36.284 Copying files to remote side failed.
* 2015-05-29 11:26:36.284 (ExtException) **Copying files to remote side failed.**
* 2015-05-29 11:26:36.284 Failed to change directory.
. 2015-05-29 11:26:36.284 Asking user:
. 2015-05-29 11:26:36.284 Error transferring file 'c:\Temp\HIDBadgeCodeToSSO.csv'. ("Copying files to remote side failed.","Failed to change directory.")
< 2015-05-29 11:26:36.284 Script: Error transferring file 'c:\Temp\HIDBadgeCodeToSSO.csv'.
< 2015-05-29 11:26:36.284 Script: Copying files to remote side failed.
 
< 2015-05-29 11:26:36.284 Failed to change directory.
* 2015-05-29 11:26:36.284 (EScpSkipFile) Error transferring file 'c:\Temp\HIDBadgeCodeToSSO.csv'.
* 2015-05-29 11:26:36.284 Copying files to remote side failed.
* 2015-05-29 11:26:36.284 Failed to change directory.
. 2015-05-29 11:26:36.284 Script: Failed
. 2015-05-29 11:26:36.284 Script: Exit code: 1
. 2015-05-29 11:26:36.284 Disconnected from server

Any help would be GREATLY appreciated!!
pldrmt

I'm having this same issue.

I have no problems connecting to a particular server using FileZilla and Windows FTP command line, but need the scripting capabilities of WinSCP for use in SSIS packages to handle dynamic scripts executed against multiple servers. My solution was developed and tested against other servers successfully, it appears to be unique to one particular third-party server that the script fails.

I'm encountering the same issue, where the directory path is being doubled somehow (after what looks like a successful CWD). Using the command version, I see this error:
Error changing directory to 'receive'. invalid path.

I've tried the same combination of settings as the original poster: passive/active/force IP, etc.

Unfortunately, I am not able to create a test account on the server. Any other suggestions would be very much appreciated.

. 2011-10-19 15:52:58.499 --------------------------------------------------------------------------

. 2011-10-19 15:52:58.499 WinSCP Version 4.3.5 (Build 1463) (OS 5.2.3790 Service Pack 2)
. 2011-10-19 15:52:58.499 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2011-10-19 15:52:58.499 Local account: DOMAIN\user
. 2011-10-19 15:52:58.499 Login time: Wednesday, October 19, 2011 3:52:58 PM
. 2011-10-19 15:52:58.499 --------------------------------------------------------------------------
. 2011-10-19 15:52:58.499 Session name: xxxxxxxx@198.xxx.xxx.xx (Ad-Hoc session)
. 2011-10-19 15:52:58.499 Host name: 198.xxx.xxx.xx (Port: 21)
. 2011-10-19 15:52:58.499 User name: xxxxxxxx(Password: Yes, Key file: No)
. 2011-10-19 15:52:58.499 Tunnel: No
. 2011-10-19 15:52:58.499 Transfer Protocol: FTP
. 2011-10-19 15:52:58.499 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-10-19 15:52:58.499 Proxy: none
. 2011-10-19 15:52:58.499 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2011-10-19 15:52:58.499 Local directory: default, Remote directory: /Receive, Update: No, Cache: Yes
. 2011-10-19 15:52:58.499 Cache directory changes: Yes, Permanent: Yes
. 2011-10-19 15:52:58.499 DST mode: 1
. 2011-10-19 15:52:58.499 --------------------------------------------------------------------------
. 2011-10-19 15:52:58.499 Connecting to 198.xxx.xxx.xx ...
. 2011-10-19 15:52:58.765 Connected with 198.xxx.xxx.xx. Waiting for welcome message...
< 2011-10-19 15:52:58.843 220 Interchange Services Batch FTP server IDA4673 built Jun 10 2003 ready.
> 2011-10-19 15:52:58.843 USER xxxxxxxx
< 2011-10-19 15:52:58.921 331 Password required for xxxxxxxx
> 2011-10-19 15:52:58.921 PASS ********
< 2011-10-19 15:52:59.031 230 User logged in, proceed.
> 2011-10-19 15:52:59.031 SYST
< 2011-10-19 15:52:59.109 215 ICS.
> 2011-10-19 15:52:59.109 FEAT
< 2011-10-19 15:52:59.187 502 Bad command or it is not implemented here.
. 2011-10-19 15:52:59.187 Connected
. 2011-10-19 15:52:59.187 Got reply 1 to the command 1
. 2011-10-19 15:52:59.187 --------------------------------------------------------------------------
. 2011-10-19 15:52:59.187 Using FTP protocol.
. 2011-10-19 15:52:59.187 Doing startup conversation with host.
> 2011-10-19 15:52:59.187 PWD
< 2011-10-19 15:52:59.281 257 "root" is current directory.
. 2011-10-19 15:52:59.281 Got reply 1 to the command 16
. 2011-10-19 15:52:59.281 Changing directory to "/Receive".
. 2011-10-19 15:52:59.281 Synchronizing current directory "root".
> 2011-10-19 15:52:59.281 CWD root
< 2011-10-19 15:52:59.374 550 Directory root not found.
. 2011-10-19 15:52:59.374 Got reply 4 to the command 16
> 2011-10-19 15:52:59.374 CWD /Receive
< 2011-10-19 15:52:59.453 250 "receive" is current directory.
. 2011-10-19 15:52:59.453 Got reply 1 to the command 16
. 2011-10-19 15:52:59.453 Getting current directory name.
> 2011-10-19 15:52:59.453 PWD
< 2011-10-19 15:52:59.546 257 "receive" is current directory.
. 2011-10-19 15:52:59.546 Got reply 1 to the command 16
. 2011-10-19 15:52:59.546 Retrieving directory listing...
> 2011-10-19 15:52:59.546 CWD /receive/receive/
< 2011-10-19 15:52:59.937 501 invalid path.
. 2011-10-19 15:52:59.937 Could not retrieve directory listing
. 2011-10-19 15:52:59.937 Got reply 4 to the command 2
. 2011-10-19 15:52:59.937 Retrieving directory listing...
> 2011-10-19 15:52:59.937 CWD /receive/receive/
< 2011-10-19 15:53:00.015 501 invalid path.
. 2011-10-19 15:53:00.015 Could not retrieve directory listing
. 2011-10-19 15:53:00.015 Got reply 4 to the command 2
* 2011-10-19 15:53:00.015 (ECommand) Error listing directory 'receive'.
* 2011-10-19 15:53:00.015 Could not retrieve directory listing
* 2011-10-19 15:53:00.015 invalid path.
. 2011-10-19 15:53:00.015 Session upkeep
. 2011-10-19 15:53:00.859 Startup conversation with host finished.
. 2011-10-19 15:53:00.890 Session upkeep
. 2011-10-19 15:53:02.984 Got reply 1004 to the command 2
martin

Re: WINSCP FTP CWD doubled command

May I have a test account on your server?
jbheren

WinSCP FTP CWD doubled command

Hello,

I have a strange issue with WinSCP and a specific server.

  • The connection & navigation works fine with FileZilla.
  • I already tried not passive, passive, force IP, etc.
  • I get connected using WinSCP but when I move from / to a subdirectory /out, the command is executed twice & my /out content is never displayed:

. 2011-07-29 10:11:11.568 Changing directory to "/out".
> 2011-07-29 10:11:11.568 CWD /out
< 2011-07-29 10:11:11.615 250 "out" now current directory
. 2011-07-29 10:11:11.615 Got reply 1 to the command 16
. 2011-07-29 10:11:11.615 Getting current directory name.
> 2011-07-29 10:11:11.615 PWD
< 2011-07-29 10:11:11.646 257 "out" is current directory
. 2011-07-29 10:11:11.646 Got reply 1 to the command 16
. 2011-07-29 10:11:11.646 Retrieving directory listing...
> 2011-07-29 10:11:11.646 CWD /out/out/
< 2011-07-29 10:11:11.662 550 /out/out/: No such file or directory
. 2011-07-29 10:11:11.662 Could not retrieve directory listing
. 2011-07-29 10:11:11.662 Got reply 4 to the command 2
* 2011-07-29 10:11:11.678 (ECommand) Error listing directory 'out'.
* 2011-07-29 10:11:11.678 Could not retrieve directory listing
* 2011-07-29 10:11:11.678 /out/out/: No such file or directory
. 2011-07-29 10:11:29.865 Got reply 1004 to the command 2

Here is the log.
Any idea?
Thanks!
. 2011-07-29 10:10:45.147 --------------------------------------------------------------------------
. 2011-07-29 10:10:45.147 WinSCP Version 4.3.4 (Build 1428) (OS 5.1.2600 Service Pack 3)
. 2011-07-29 10:10:45.147 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2011-07-29 10:10:45.147 Login time: vendredi 29 juillet 2011 10:10:45
. 2011-07-29 10:10:45.147 --------------------------------------------------------------------------
. 2011-07-29 10:10:45.147 Session name: generix (Modified stored session)
. 2011-07-29 10:10:45.147 Host name: 192.168.XXX.XXX (Port: 21)
. 2011-07-29 10:10:45.147 User name: foouser (Password: Yes, Key file: No)
. 2011-07-29 10:10:45.147 Tunnel: No
. 2011-07-29 10:10:45.147 Transfer Protocol: FTP
. 2011-07-29 10:10:45.147 Ping type: -, Ping interval: 30 sec; Timeout: 15 sec
. 2011-07-29 10:10:45.147 Proxy: none
. 2011-07-29 10:10:45.147 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2011-07-29 10:10:45.147 Local directory: D:\EDI, Remote directory: home, Update: No, Cache: No
. 2011-07-29 10:10:45.147 Cache directory changes: No, Permanent: Yes
. 2011-07-29 10:10:45.147 DST mode: 1
. 2011-07-29 10:10:45.147 --------------------------------------------------------------------------
. 2011-07-29 10:10:45.178 Connecting to 192.168.182.XXX ...
. 2011-07-29 10:10:45.178 Connected with 192.168.182.XXX. Waiting for welcome message...
< 2011-07-29 10:10:45.209 220 FTP says hello to unknown@XXX.XXX.XXX.XXX
> 2011-07-29 10:10:45.209 USER foouser
< 2011-07-29 10:10:45.225 331 Enter password
> 2011-07-29 10:10:45.225 PASS ********
< 2011-07-29 10:10:45.256 230 Good Morning, foouser.
> 2011-07-29 10:10:45.256 SYST
< 2011-07-29 10:10:45.287 215 UNIX Type: L8
> 2011-07-29 10:10:45.287 FEAT
< 2011-07-29 10:10:45.318 500 Unknown command FEAT
. 2011-07-29 10:10:45.318 Connected
. 2011-07-29 10:10:45.318 Got reply 1 to the command 1
. 2011-07-29 10:10:45.318 --------------------------------------------------------------------------
. 2011-07-29 10:10:45.318 Using FTP protocol.
. 2011-07-29 10:10:45.318 Doing startup conversation with host.
> 2011-07-29 10:10:45.318 PWD
< 2011-07-29 10:10:45.350 257 "/" is current directory
. 2011-07-29 10:10:45.428 Got reply 1 to the command 16
. 2011-07-29 10:10:45.428 Getting current directory name.
. 2011-07-29 10:10:45.428 Retrieving directory listing...
> 2011-07-29 10:10:45.428 TYPE A
< 2011-07-29 10:10:45.443 200 Type set to ASCII
> 2011-07-29 10:10:45.443 PASV
< 2011-07-29 10:10:45.459 227 Entering Passive Mode (192,168,XXX,XXX,155,191)
> 2011-07-29 10:10:45.459 LIST
< 2011-07-29 10:10:45.506 150 Opening ASCII mode dataconnection for .
. 2011-07-29 10:10:46.506 total 8
. 2011-07-29 10:10:46.553 drwx------   2 h11ftp   ediusers      20 Jul 27 13:48 .track
. 2011-07-29 10:10:46.553 drwxr-xr-x   4 h11ftp   ediusers      32 Jul  6 09:31 in
. 2011-07-29 10:10:46.553 drwxr-xr-x   4 h11ftp   ediusers     113 Jul  6 09:31 out
. 2011-07-29 10:10:46.553 -rw-r--r--   1 h11ftp   ediusers      29 Mar  3 13:14 test.txt
< 2011-07-29 10:10:46.553 226 252 bytes sent. Transfer complete.
. 2011-07-29 10:10:46.553 Directory listing successful
. 2011-07-29 10:10:46.553 Got reply 1 to the command 2
. 2011-07-29 10:10:46.553 Startup conversation with host finished.
. 2011-07-29 10:11:11.568 Changing directory to "/out".
> 2011-07-29 10:11:11.568 CWD /out
< 2011-07-29 10:11:11.615 250 "out" now current directory
. 2011-07-29 10:11:11.615 Got reply 1 to the command 16
. 2011-07-29 10:11:11.615 Getting current directory name.
> 2011-07-29 10:11:11.615 PWD
< 2011-07-29 10:11:11.646 257 "out" is current directory
. 2011-07-29 10:11:11.646 Got reply 1 to the command 16
. 2011-07-29 10:11:11.646 Retrieving directory listing...
> 2011-07-29 10:11:11.646 CWD /out/out/
< 2011-07-29 10:11:11.662 550 /out/out/: No such file or directory
. 2011-07-29 10:11:11.662 Could not retrieve directory listing
. 2011-07-29 10:11:11.662 Got reply 4 to the command 2
* 2011-07-29 10:11:11.678 (ECommand) Error listing directory 'out'.
* 2011-07-29 10:11:11.678 Could not retrieve directory listing
* 2011-07-29 10:11:11.678 /out/out/: No such file or directory
. 2011-07-29 10:11:29.865 Got reply 1004 to the command 2
. 2011-07-29 10:11:29.865 Disconnected from server