Error listing / putting file
Subject: Error listing / putting file
Version: WinSCP Version 4.2.9 (Build 938) (OS 6.1.7601 Service Pack 1)
Issue:
When putting a file into a directory the following message is reported
CWD Invalid directory format
Observation:
On start of upload the following is logged
. 2011-06-02 08:22:45.150 Starting upload of File.dat
> 2011-06-02 08:22:45.150 CWD /USER1/USER1/
< 2011-06-02 08:22:45.322 501 CWD Invalid directory format
MANUAL TESTING
Listing directory: From Command Line
C:\Test>winscp
winscp> open ftp:User:pass@sciftp.commerce.stercomm.com
Connecting to sciftp.commerce.stercomm.com ...
Connected with sciftp.commerce.stercomm.com. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] User1@sciftp.commerce.stercomm.com
winscp> ls
Error listing directory 'Inbox'.
Could not retrieve directory listing
CWD Invalid directory format.
(A)bort, (R)etry, (S)kip:
Invalid access to memory
winscp>
WHEN PUTTING A FILE
Script Log Detail:
. 2011-06-02 08:22:43.263 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.263 WinSCP Version 4.2.9 (Build 938) (OS 6.1.7601 Service Pack 1)
. 2011-06-02 08:22:43.263 Login time: Thursday, June 02, 2011 8:22:43 AM
. 2011-06-02 08:22:43.263 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.263 Session name: USER1@sciftp.commerce.stercomm.com
. 2011-06-02 08:22:43.263 Host name: sciftp.commerce.stercomm.com (Port: 21)
. 2011-06-02 08:22:43.278 User name: USER1 (Password: Yes, Key file: No)
. 2011-06-02 08:22:43.278 Tunnel: No
. 2011-06-02 08:22:43.278 Transfer Protocol: FTP
. 2011-06-02 08:22:43.278 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-06-02 08:22:43.278 Proxy: none
. 2011-06-02 08:22:43.278 FTP: FTPS: None; Passive: No [Force IP: No]
. 2011-06-02 08:22:43.278 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-06-02 08:22:43.278 Cache directory changes: Yes, Permanent: Yes
. 2011-06-02 08:22:43.294 DST mode: 1
. 2011-06-02 08:22:43.294 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.294 Connecting to sciftp.commerce.stercomm.com ...
. 2011-06-02 08:22:43.403 Connected with sciftp.commerce.stercomm.com. Waiting for welcome message...
< 2011-06-02 08:22:43.497 220 CONNECT:Enterprise Gateway 2.0.02. 2B FTP Server ready... 09:22:41 06-02-2011
> 2011-06-02 08:22:43.497 USER USER1
< 2011-06-02 08:22:43.575 331 Password required for USER1.
> 2011-06-02 08:22:43.590 PASS *******
< 2011-06-02 08:22:44.776 230 User USER1 logged in. Session Id: 80018.
> 2011-06-02 08:22:44.776 SYST
< 2011-06-02 08:22:44.869 502 Command not implemented.
> 2011-06-02 08:22:44.869 FEAT
< 2011-06-02 08:22:44.963 500 FEAT command not understood.
. 2011-06-02 08:22:44.963 Connected
. 2011-06-02 08:22:44.979 --------------------------------------------------------------------------
. 2011-06-02 08:22:44.979 Using FTP protocol.
. 2011-06-02 08:22:44.979 Doing startup conversation with host.
> 2011-06-02 08:22:44.979 PWD
< 2011-06-02 08:22:45.072 257 "USER1" is the current working Mailbox ID.
. 2011-06-02 08:22:45.072 Getting current directory name.
. 2011-06-02 08:22:45.088 Startup conversation with host finished.
< 2011-06-02 08:22:45.088 Script: Active session: [1] USER1@sciftp.commerce.stercomm.com
> 2011-06-02 08:22:45.088 Script: lcd c:\test\\
< 2011-06-02 08:22:45.088 Script: c:\test\
> 2011-06-02 08:22:45.103 Script: cd /USER1
. 2011-06-02 08:22:45.103 Cached directory change via "/USER1" to "USER1".
. 2011-06-02 08:22:45.103 Getting current directory name.
< 2011-06-02 08:22:45.103 Script: USER1
> 2011-06-02 08:22:45.119 Script: put File.dat
. 2011-06-02 08:22:45.119 Copying 1 files/directories to remote directory "USER1"
. 2011-06-02 08:22:45.119 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2011-06-02 08:22:45.119 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-06-02 08:22:45.119 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-06-02 08:22:45.135 File: "File.dat"
. 2011-06-02 08:22:45.135 Copying "File.dat" to remote directory started.
. 2011-06-02 08:22:45.150 Binary transfer mode selected.
. 2011-06-02 08:22:45.150 Starting upload of File.dat
> 2011-06-02 08:22:45.150 CWD /USER1/USER1/
< 2011-06-02 08:22:45.322 501 CWD Invalid directory format.
> 2011-06-02 08:22:45.322 CWD /USER1/
< 2011-06-02 08:22:45.509 250 CWD Directory changed. Current working Mailbox is "USER1".
> 2011-06-02 08:22:45.509 MKD USER1
< 2011-06-02 08:22:45.696 502 MKD Command not implemented.
> 2011-06-02 08:22:45.696 CWD /USER1/USER1/
< 2011-06-02 08:22:45.883 501 CWD Invalid directory format.
. 2011-06-02 08:22:45.883 Copying files to remote side failed.
* 2011-06-02 08:22:45.883 (ExtException) Copying files to remote side failed.
* 2011-06-02 08:22:45.883 CWD Invalid directory format.
. 2011-06-02 08:22:45.899 Asking user:
. 2011-06-02 08:22:45.899 Error transferring file 'File.dat'. ("Copying files to remote side failed.","CWD Invalid directory format.")
* 2011-06-02 08:22:45.899 (EScpSkipFile) Error transferring file 'File.dat'.
* 2011-06-02 08:22:45.899 Copying files to remote side failed.
* 2011-06-02 08:22:45.899 CWD Invalid directory format.
. 2011-06-02 08:22:45.915 Script: Failed
. 2011-06-02 08:22:45.915 Disconnected from server
SCRIPT FUNCTION USED:
function FTPTransfer(oConnection,olcd,oAction,oLogging) {
var shell = WScript.CreateObject("WScript.Shell");
// Run and log output
var exec = shell.Exec("C:\\Program Files\\WinSCP\\winscp.com /log=" + oLogging);
// Feed the commands
exec.StdIn.Write(
"option batch abort\n" +
"option confirm on\n" +
oConnection + "\n" +
olcd + "\n" +
oAction + "\n" +
"exit\n");
oConnection = user1:pass@sciftp.commerce.stercomm.com
olcd = c:\test
oAction = put file.dat
Additional Information:
This issue appears to be site specific.
Site: sciftp.commerce.stercomm.com
Protocol: FTP
Version: WinSCP Version 4.2.9 (Build 938) (OS 6.1.7601 Service Pack 1)
Issue:
When putting a file into a directory the following message is reported
CWD Invalid directory format
Observation:
On start of upload the following is logged
. 2011-06-02 08:22:45.150 Starting upload of File.dat
> 2011-06-02 08:22:45.150 CWD /USER1/USER1/
< 2011-06-02 08:22:45.322 501 CWD Invalid directory format
MANUAL TESTING
Listing directory: From Command Line
C:\Test>winscp
winscp> open ftp:User:pass@sciftp.commerce.stercomm.com
Connecting to sciftp.commerce.stercomm.com ...
Connected with sciftp.commerce.stercomm.com. Waiting for welcome message...
Connected
Starting the session...
Reading remote directory...
Session started.
Active session: [1] User1@sciftp.commerce.stercomm.com
winscp> ls
Error listing directory 'Inbox'.
Could not retrieve directory listing
CWD Invalid directory format.
(A)bort, (R)etry, (S)kip:
Invalid access to memory
winscp>
WHEN PUTTING A FILE
Script Log Detail:
. 2011-06-02 08:22:43.263 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.263 WinSCP Version 4.2.9 (Build 938) (OS 6.1.7601 Service Pack 1)
. 2011-06-02 08:22:43.263 Login time: Thursday, June 02, 2011 8:22:43 AM
. 2011-06-02 08:22:43.263 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.263 Session name: USER1@sciftp.commerce.stercomm.com
. 2011-06-02 08:22:43.263 Host name: sciftp.commerce.stercomm.com (Port: 21)
. 2011-06-02 08:22:43.278 User name: USER1 (Password: Yes, Key file: No)
. 2011-06-02 08:22:43.278 Tunnel: No
. 2011-06-02 08:22:43.278 Transfer Protocol: FTP
. 2011-06-02 08:22:43.278 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-06-02 08:22:43.278 Proxy: none
. 2011-06-02 08:22:43.278 FTP: FTPS: None; Passive: No [Force IP: No]
. 2011-06-02 08:22:43.278 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-06-02 08:22:43.278 Cache directory changes: Yes, Permanent: Yes
. 2011-06-02 08:22:43.294 DST mode: 1
. 2011-06-02 08:22:43.294 --------------------------------------------------------------------------
. 2011-06-02 08:22:43.294 Connecting to sciftp.commerce.stercomm.com ...
. 2011-06-02 08:22:43.403 Connected with sciftp.commerce.stercomm.com. Waiting for welcome message...
< 2011-06-02 08:22:43.497 220 CONNECT:Enterprise Gateway 2.0.02. 2B FTP Server ready... 09:22:41 06-02-2011
> 2011-06-02 08:22:43.497 USER USER1
< 2011-06-02 08:22:43.575 331 Password required for USER1.
> 2011-06-02 08:22:43.590 PASS *******
< 2011-06-02 08:22:44.776 230 User USER1 logged in. Session Id: 80018.
> 2011-06-02 08:22:44.776 SYST
< 2011-06-02 08:22:44.869 502 Command not implemented.
> 2011-06-02 08:22:44.869 FEAT
< 2011-06-02 08:22:44.963 500 FEAT command not understood.
. 2011-06-02 08:22:44.963 Connected
. 2011-06-02 08:22:44.979 --------------------------------------------------------------------------
. 2011-06-02 08:22:44.979 Using FTP protocol.
. 2011-06-02 08:22:44.979 Doing startup conversation with host.
> 2011-06-02 08:22:44.979 PWD
< 2011-06-02 08:22:45.072 257 "USER1" is the current working Mailbox ID.
. 2011-06-02 08:22:45.072 Getting current directory name.
. 2011-06-02 08:22:45.088 Startup conversation with host finished.
< 2011-06-02 08:22:45.088 Script: Active session: [1] USER1@sciftp.commerce.stercomm.com
> 2011-06-02 08:22:45.088 Script: lcd c:\test\\
< 2011-06-02 08:22:45.088 Script: c:\test\
> 2011-06-02 08:22:45.103 Script: cd /USER1
. 2011-06-02 08:22:45.103 Cached directory change via "/USER1" to "USER1".
. 2011-06-02 08:22:45.103 Getting current directory name.
< 2011-06-02 08:22:45.103 Script: USER1
> 2011-06-02 08:22:45.119 Script: put File.dat
. 2011-06-02 08:22:45.119 Copying 1 files/directories to remote directory "USER1"
. 2011-06-02 08:22:45.119 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2011-06-02 08:22:45.119 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-06-02 08:22:45.119 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-06-02 08:22:45.135 File: "File.dat"
. 2011-06-02 08:22:45.135 Copying "File.dat" to remote directory started.
. 2011-06-02 08:22:45.150 Binary transfer mode selected.
. 2011-06-02 08:22:45.150 Starting upload of File.dat
> 2011-06-02 08:22:45.150 CWD /USER1/USER1/
< 2011-06-02 08:22:45.322 501 CWD Invalid directory format.
> 2011-06-02 08:22:45.322 CWD /USER1/
< 2011-06-02 08:22:45.509 250 CWD Directory changed. Current working Mailbox is "USER1".
> 2011-06-02 08:22:45.509 MKD USER1
< 2011-06-02 08:22:45.696 502 MKD Command not implemented.
> 2011-06-02 08:22:45.696 CWD /USER1/USER1/
< 2011-06-02 08:22:45.883 501 CWD Invalid directory format.
. 2011-06-02 08:22:45.883 Copying files to remote side failed.
* 2011-06-02 08:22:45.883 (ExtException) Copying files to remote side failed.
* 2011-06-02 08:22:45.883 CWD Invalid directory format.
. 2011-06-02 08:22:45.899 Asking user:
. 2011-06-02 08:22:45.899 Error transferring file 'File.dat'. ("Copying files to remote side failed.","CWD Invalid directory format.")
* 2011-06-02 08:22:45.899 (EScpSkipFile) Error transferring file 'File.dat'.
* 2011-06-02 08:22:45.899 Copying files to remote side failed.
* 2011-06-02 08:22:45.899 CWD Invalid directory format.
. 2011-06-02 08:22:45.915 Script: Failed
. 2011-06-02 08:22:45.915 Disconnected from server
SCRIPT FUNCTION USED:
function FTPTransfer(oConnection,olcd,oAction,oLogging) {
var shell = WScript.CreateObject("WScript.Shell");
// Run and log output
var exec = shell.Exec("C:\\Program Files\\WinSCP\\winscp.com /log=" + oLogging);
// Feed the commands
exec.StdIn.Write(
"option batch abort\n" +
"option confirm on\n" +
oConnection + "\n" +
olcd + "\n" +
oAction + "\n" +
"exit\n");
oConnection = user1:pass@sciftp.commerce.stercomm.com
olcd = c:\test
oAction = put file.dat
Additional Information:
This issue appears to be site specific.
Site: sciftp.commerce.stercomm.com
Protocol: FTP