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

martin

Re: Tracking a Solution

tlohvinenko wrote:

Good day... Thanks for the posting. Question. Is there any plans to have WinSCP support non-unix based ftp systems other than Windows?

I am afraid not in the near future.
tlohvinenko

Tracking a Solution

Good day... Thanks for the posting. Question. Is there any plans to have WinSCP support non-unix based ftp systems other than Windows?
martin

Re: Second Test with WinSCP Version 4.3.3 (Build 1340)

Thanks for your post.
This issue is being tracked already.
tlohvinenko

Second Test with WinSCP Version 4.3.3 (Build 1340)

Same as before. No Change.

Output:
. 2011-06-03 08:25:13.774 --------------------------------------------------------------------------
. 2011-06-03 08:25:13.774 WinSCP Version 4.3.3 (Build 1340) (OS 6.1.7601 Service Pack 1)
. 2011-06-03 08:25:13.789 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2011-06-03 08:25:13.789 Login time: Friday, June 03, 2011 8:25:13 AM
. 2011-06-03 08:25:13.789 --------------------------------------------------------------------------
. 2011-06-03 08:25:13.789 Session name: USER1@sciftp.commerce.stercomm.com (Modified stored session)
. 2011-06-03 08:25:13.789 Host name: sciftp.commerce.stercomm.com (Port: 21)
. 2011-06-03 08:25:13.789 User name: USER1 (Password: Yes, Key file: No)
. 2011-06-03 08:25:13.805 Tunnel: No
. 2011-06-03 08:25:13.805 Transfer Protocol: FTP
. 2011-06-03 08:25:13.805 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2011-06-03 08:25:13.805 Proxy: none
. 2011-06-03 08:25:13.805 FTP: FTPS: None; Passive: Yes [Force IP: No]
. 2011-06-03 08:25:13.805 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2011-06-03 08:25:13.805 Cache directory changes: Yes, Permanent: Yes
. 2011-06-03 08:25:13.821 DST mode: 1
. 2011-06-03 08:25:13.821 --------------------------------------------------------------------------
. 2011-06-03 08:25:13.821 Connecting to sciftp.commerce.stercomm.com ...
. 2011-06-03 08:25:14.008 Connected with sciftp.commerce.stercomm.com. Waiting for welcome message...
< 2011-06-03 08:25:14.101 220 CONNECT:Enterprise Gateway 2.0.02. 22 FTP Server ready... 09:25:12 06-03-2011
> 2011-06-03 08:25:14.101 USER USER1
< 2011-06-03 08:25:14.195 331 Password required for USER1.
> 2011-06-03 08:25:14.195 PASS *******
< 2011-06-03 08:25:15.537 230 User USER1 logged in. Session Id: 80221.
> 2011-06-03 08:25:15.552 SYST
< 2011-06-03 08:25:15.662 502 Command not implemented.
> 2011-06-03 08:25:15.662 FEAT
< 2011-06-03 08:25:15.818 500 FEAT command not understood.
. 2011-06-03 08:25:15.818 Connected
. 2011-06-03 08:25:15.818 --------------------------------------------------------------------------
. 2011-06-03 08:25:15.833 Using FTP protocol.
. 2011-06-03 08:25:15.833 Doing startup conversation with host.
> 2011-06-03 08:25:15.833 PWD
< 2011-06-03 08:25:15.927 257 "USER1" is the current working Mailbox ID.
. 2011-06-03 08:25:15.927 Getting current directory name.
. 2011-06-03 08:25:15.927 Startup conversation with host finished.
< 2011-06-03 08:25:15.927 Script: Active session: [1] USER1@sciftp.commerce.stercomm.com
> 2011-06-03 08:25:15.942 Script: lcd C:\TEST\
< 2011-06-03 08:25:15.942 Script: C:\TEST
> 2011-06-03 08:25:15.942 Script: cd /USER1
. 2011-06-03 08:25:15.958 Cached directory change via "/USER1" to "USER1".
. 2011-06-03 08:25:15.958 Getting current directory name.
< 2011-06-03 08:25:15.958 Script: USER1
> 2011-06-03 08:25:15.958 Script: put File.txt
. 2011-06-03 08:25:15.974 Copying 1 files/directories to remote directory "USER1"
. 2011-06-03 08:25:15.974 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2011-06-03 08:25:15.974 TM: M; ClAr: No; CPS: 0; ExclM(No):
. 2011-06-03 08:25:15.974 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2011-06-03 08:25:15.989 File: "File.txt"
. 2011-06-03 08:25:16.005 Copying "File.txt" to remote directory started.
. 2011-06-03 08:25:16.005 Binary transfer mode selected.
. 2011-06-03 08:25:16.005 Starting upload of File.txt
> 2011-06-03 08:25:16.005 CWD /USER1/USER1/
< 2011-06-03 08:25:16.254 501 CWD Invalid directory format.
> 2011-06-03 08:25:16.270 CWD /USER1/
< 2011-06-03 08:25:16.473 250 CWD Directory changed. Current working Mailbox is "USER1".
> 2011-06-03 08:25:16.488 MKD USER1
< 2011-06-03 08:25:16.676 502 MKD Command not implemented.
> 2011-06-03 08:25:16.676 CWD /USER1/USER1/
< 2011-06-03 08:25:16.878 501 CWD Invalid directory format.
. 2011-06-03 08:25:16.894 Copying files to remote side failed.
* 2011-06-03 08:25:16.894 (ExtException) Copying files to remote side failed.
* 2011-06-03 08:25:16.894 CWD Invalid directory format.
. 2011-06-03 08:25:16.894 Asking user:
. 2011-06-03 08:25:16.894 Error transferring file 'File.txt'. ("Copying files to remote side failed.","CWD Invalid directory format.")
* 2011-06-03 08:25:16.910 (EScpSkipFile) Error transferring file 'File.txt'.
* 2011-06-03 08:25:16.910 Copying files to remote side failed.
* 2011-06-03 08:25:16.910 CWD Invalid directory format.
. 2011-06-03 08:25:16.910 Script: Failed
. 2011-06-03 08:25:16.925 Disconnected from server
martin

Re: Error listing / putting file

Can you try the latest version first please?
tlohvinenko

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