Post a reply

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

rcaddy

Copying files to remote side failed.

Sorry for the double post.
rcaddy

Copying files to remote side failed.

I am using the portable executable to run this process in a script. I am only copying 1 file but it's name changes each time it needs to be copied. I have used both 4.3.7 and 5.0.6 beta and I get the same message "Copying files to remote side failed.". I have modified the settings in the script with and without "option transfer" and have set "option batch" to off and continue. In every case I still receive this message. I have also, renamed the file to be shorter and without numbers in the filename and get the same message. If I manually transfer the file through the GUI it transfers properly(both versions). I have included my command line, script, and the resulting log. Thank you for any help you may provide.

Command Line

C:\start\winscp.com /log=c:\start\log.txt /script=C:\start\wc.txt

Script

option echo on
option batch continue
option confirm off
option transfer ascii
open FTPSTrans
lcd \
put c:barcode*.* ./
close
exit

Log

. 2012-04-03 09:59:34.891 --------------------------------------------------------------------------
. 2012-04-03 09:59:34.891 WinSCP Version 5.0.6 (Build 2074) (OS 5.1.2600 Service Pack 3)
. 2012-04-03 09:59:34.891 Configuration: C:\start\WinSCP.ini
. 2012-04-03 09:59:34.891 Local account: FRED\Rod Caddy
. 2012-04-03 09:59:34.891 Login time: Tuesday, April 03, 2012 9:59:34 AM
. 2012-04-03 09:59:34.891 --------------------------------------------------------------------------
. 2012-04-03 09:59:34.891 Session name: FTPSTrans (Stored session)
. 2012-04-03 09:59:34.891 Host name: www.transconweb.com (Port: 21)
. 2012-04-03 09:59:34.891 User name: ftpuseraccount@transconweb.com (Password: Yes, Key file: No)
. 2012-04-03 09:59:34.891 Tunnel: No
. 2012-04-03 09:59:34.891 Transfer Protocol: FTP
. 2012-04-03 09:59:34.891 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2012-04-03 09:59:34.891 Proxy: none
. 2012-04-03 09:59:34.891 FTP: FTPS: Explicit TLS; Passive: Yes [Force IP: No]
. 2012-04-03 09:59:34.891 Local directory: C:\, Remote directory: /, Update: Yes, Cache: Yes
. 2012-04-03 09:59:34.907 Cache directory changes: Yes, Permanent: Yes
. 2012-04-03 09:59:34.907 DST mode: 1
. 2012-04-03 09:59:34.907 --------------------------------------------------------------------------
. 2012-04-03 09:59:34.907 Connecting to www.transconweb.com ...
. 2012-04-03 09:59:34.954 Connected with www.transconweb.com, negotiating SSL connection...
< 2012-04-03 09:59:34.985 220 KTComputing FTP Server.
> 2012-04-03 09:59:34.985 AUTH TLS
< 2012-04-03 09:59:35.391 234 Using authentication type TLS
. 2012-04-03 09:59:35.673 SSL connection established. Waiting for welcome message...
> 2012-04-03 09:59:35.673 USER ftpuseraccount@transconweb.com
< 2012-04-03 09:59:35.704 331 Password required for ftpuseraccount@transconweb.com
> 2012-04-03 09:59:35.704 PASS *************
< 2012-04-03 09:59:35.735 230 Logged on
> 2012-04-03 09:59:35.735 SYST
< 2012-04-03 09:59:35.766 215 UNIX emulated by FileZilla
> 2012-04-03 09:59:35.766 FEAT
< 2012-04-03 09:59:35.798 211-Features:
< 2012-04-03 09:59:35.798 MDTM
< 2012-04-03 09:59:35.798 REST STREAM
< 2012-04-03 09:59:35.798 SIZE
< 2012-04-03 09:59:35.798 MODE Z
< 2012-04-03 09:59:35.798 MLST type*;size*;modify*;
< 2012-04-03 09:59:35.798 MLSD
< 2012-04-03 09:59:35.798 AUTH SSL
< 2012-04-03 09:59:35.798 AUTH TLS
< 2012-04-03 09:59:35.798 PROT
< 2012-04-03 09:59:35.798 PBSZ
< 2012-04-03 09:59:35.813 UTF8
< 2012-04-03 09:59:35.813 CLNT
< 2012-04-03 09:59:35.813 MFMT
< 2012-04-03 09:59:35.813 211 End
> 2012-04-03 09:59:35.813 PBSZ 0
< 2012-04-03 09:59:35.829 200 PBSZ=0
> 2012-04-03 09:59:35.829 PROT P
< 2012-04-03 09:59:35.860 200 Protection level set to P
. 2012-04-03 09:59:35.860 Connected
. 2012-04-03 09:59:35.860 --------------------------------------------------------------------------
. 2012-04-03 09:59:35.860 Using FTP protocol.
. 2012-04-03 09:59:35.860 Doing startup conversation with host.
> 2012-04-03 09:59:35.860 PWD
< 2012-04-03 09:59:35.891 257 "/" is current directory.
. 2012-04-03 09:59:35.891 Changing directory to "/".
> 2012-04-03 09:59:35.891 CWD /
< 2012-04-03 09:59:35.923 250 CWD successful. "/" is current directory.
. 2012-04-03 09:59:35.923 Getting current directory name.
> 2012-04-03 09:59:35.923 PWD
< 2012-04-03 09:59:35.954 257 "/" is current directory.
. 2012-04-03 09:59:35.954 Startup conversation with host finished.
< 2012-04-03 09:59:35.969 Script: Active session: [1] FTPSTrans
> 2012-04-03 09:59:35.969 Script: lcd \
< 2012-04-03 09:59:35.969 Script: lcd \
< 2012-04-03 09:59:35.969 Script: C:\
> 2012-04-03 09:59:35.969 Script: put c:barcode*.* ./
< 2012-04-03 09:59:35.969 Script: put c:barcode*.* ./
. 2012-04-03 09:59:35.969 Copying 1 files/directories to remote directory "./"
. 2012-04-03 09:59:35.969 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 0100; Resume: S (102400); CalcS: No; Mask:
. 2012-04-03 09:59:35.969 TM: A; ClAr: No; CPS: 0; InclM:
. 2012-04-03 09:59:35.969 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; *.js; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2012-04-03 09:59:35.969 File: "c:BARCODE020912220507_.CSV"
. 2012-04-03 09:59:35.969 Copying "c:BARCODE020912220507_.CSV" to remote directory started.
. 2012-04-03 09:59:35.969 Ascii transfer mode selected.
. 2012-04-03 09:59:35.969 Starting upload of c:BARCODE020912220507_.CSV
> 2012-04-03 09:59:35.969 TYPE A
< 2012-04-03 09:59:36.001 200 Type set to A
> 2012-04-03 09:59:36.001 PASV
< 2012-04-03 09:59:36.032 227 Entering Passive Mode (216,172,99,164,212,75)
> 2012-04-03 09:59:36.032 LIST
< 2012-04-03 09:59:36.079 150 Connection accepted
< 2012-04-03 09:59:36.126 226 Transfer OK
. 2012-04-03 09:59:36.126 Copying files to remote side failed.
* 2012-04-03 09:59:36.126 (ExtException) Copying files to remote side failed.
* 2012-04-03 09:59:36.126 Transfer OK
. 2012-04-03 09:59:36.126 Asking user:
. 2012-04-03 09:59:36.126 Error transferring file 'c:BARCODE020912220507_.CSV'. ("Copying files to remote side failed.","Transfer OK")
* 2012-04-03 09:59:36.126 (EScpSkipFile) Error transferring file 'c:BARCODE020912220507_.CSV'.
* 2012-04-03 09:59:36.126 Copying files to remote side failed.
* 2012-04-03 09:59:36.141 Transfer OK
> 2012-04-03 09:59:36.141 Script: close
< 2012-04-03 09:59:36.141 Script: close
. 2012-04-03 09:59:36.141 Disconnected from server