Error transfering 0bytes file

Advertisement

atreyuSG
Joined:
Posts:
5

Error transfering 0bytes file

Hi,
We are using command-line scripting for ftps connection using winscp.
However, for files transfer of 0bytes, received error below.
Appreciate help.

I have tried using command below, but does not work still.
option exclude <1B

Refer below logs for reference.

Thanks

. 2010-08-04 09:49:37.117 --------------------------------------------------------------------------
. 2010-08-04 09:49:37.117 WinSCP Version 4.2.7 (Build 758) (OS 5.2.3790 Service Pack 2)
. 2010-08-04 09:49:37.117 Login time: Wednesday, August 04, 2010 9:49:37 AM
. 2010-08-04 09:49:37.117 --------------------------------------------------------------------------
. 2010-08-04 09:49:37.117 Session name: destination@ipadress
. 2010-08-04 09:49:37.117 Host name: ipadress (Port: 990)
. 2010-08-04 09:49:37.117 User name: destination (Password: Yes, Key file: No)
. 2010-08-04 09:49:37.117 Tunnel: No
. 2010-08-04 09:49:37.117 Transfer Protocol: FTP
. 2010-08-04 09:49:37.117 Ping type: C, Ping interval: 30 sec; Timeout: 15 sec
. 2010-08-04 09:49:37.117 Proxy: none
. 2010-08-04 09:49:37.117 FTP: FTPS: Implicit SSL/TLS; Passive: Yes [Force IP: No]
. 2010-08-04 09:49:37.117 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2010-08-04 09:49:37.117 Cache directory changes: Yes, Permanent: Yes
. 2010-08-04 09:49:37.117 DST mode: 1
. 2010-08-04 09:49:37.117 --------------------------------------------------------------------------
. 2010-08-04 09:49:37.414 Connecting to 170.252.85.70:990 ...
. 2010-08-04 09:49:37.414 m_pSslLayer changed state from 0 to 1
. 2010-08-04 09:49:37.414 m_pSslLayer changed state from 1 to 2
. 2010-08-04 09:49:37.601 m_pSslLayer changed state from 2 to 4
. 2010-08-04 09:49:37.601 Connected with 170.252.85.70:990, negotiating SSL connection...
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 read server hello A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 read server certificate A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 read server done A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 write client key exchange A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 write change cipher spec A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 write finished A
. 2010-08-04 09:49:37.945 SSL_connect: SSLv3 flush data
. 2010-08-04 09:49:38.132 SSL_connect: SSLv3 read finished A
. 2010-08-04 09:49:38.148 Using TLSv1, cipher TLSv1/SSLv3: RC4-MD5, 1024 bit RSA
. 2010-08-04 09:49:38.148 SSL connection established. Waiting for welcome message...
< 2010-08-04 09:49:38.351 220 VanDyke Software VShell FTPS Server version 3.6.2 (build 446).
> 2010-08-04 09:49:38.351 USER destination
< 2010-08-04 09:49:38.554 331 User accepted, password required.
> 2010-08-04 09:49:38.554 PASS *********
< 2010-08-04 09:49:38.851 230 Login successful.
> 2010-08-04 09:49:38.851 SYST
< 2010-08-04 09:49:39.039 215 WIN32 system type.
> 2010-08-04 09:49:39.039 FEAT
< 2010-08-04 09:49:39.242 211-Extensions supported:
< 2010-08-04 09:49:39.242 AUTH TLS
< 2010-08-04 09:49:39.242 AUTH SSL
< 2010-08-04 09:49:39.242 PBSZ
< 2010-08-04 09:49:39.242 PROT
< 2010-08-04 09:49:39.242 SIZE
< 2010-08-04 09:49:39.242 REST STREAM
< 2010-08-04 09:49:39.242 LANG EN
< 2010-08-04 09:49:39.242 MLST Type;Size;Modify;
< 2010-08-04 09:49:39.242 UTF8
< 2010-08-04 09:49:39.242 211 End
> 2010-08-04 09:49:39.242 OPTS UTF8 ON
< 2010-08-04 09:49:39.429 200 Command okay.
> 2010-08-04 09:49:39.429 PBSZ 0
< 2010-08-04 09:49:39.632 200 Protection buffer size set to 0.
> 2010-08-04 09:49:39.632 PROT P
< 2010-08-04 09:49:39.820 200 Protection level set to P
. 2010-08-04 09:49:39.820 Connected
. 2010-08-04 09:49:39.976 Got reply 1 to the command 1
. 2010-08-04 09:49:39.976 --------------------------------------------------------------------------
. 2010-08-04 09:49:39.976 Using FTP protocol.
. 2010-08-04 09:49:39.976 Doing startup conversation with host.
> 2010-08-04 09:49:39.976 PWD
< 2010-08-04 09:49:40.164 257 "/" is the current directory.
. 2010-08-04 09:49:40.164 Got reply 1 to the command 16
. 2010-08-04 09:49:40.179 Getting current directory name.
. 2010-08-04 09:49:40.179 Startup conversation with host finished.
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.179 Session upkeep
. 2010-08-04 09:49:40.195 Copying 3 files/directories to remote directory "/LOREAL-SAPDC/INBOX/SG/"
. 2010-08-04 09:49:40.195 PrTime: Yes; PrRO: No; Rght: rw-r--r--; PrR: No (No); FnCs: N; RIC: 01; Resume: S (102400); CalcS: No; Mask:
. 2010-08-04 09:49:40.195 TM: M; ClAr: No; CPS: 0; ExclM(No): <1B
. 2010-08-04 09:49:40.195 AscM: *.*html; *.htm; *.txt; *.php; *.php3; *.cgi; *.c; *.cpp; *.h; *.pas; *.bas; *.tex; *.pl; .htaccess; *.xtml; *.css; *.cfg; *.ini; *.sh; *.xml
. 2010-08-04 09:49:40.195 File: "D:\AC\OUTBOX\CURRENCY_20100804_050457.txt"
. 2010-08-04 09:49:40.195 Copying "D:\AC\OUTBOX\CURRENCY_20100804_050457.txt" to remote directory started.
. 2010-08-04 09:49:40.195 Ascii transfer mode selected.
. 2010-08-04 09:49:40.195 Starting upload of D:\AC\OUTBOX\CURRENCY_20100804_050457.txt
> 2010-08-04 09:49:40.195 CWD /destination/INBOX/AC/
< 2010-08-04 09:49:40.523 250 CWD successful. "/destination/INBOX/AC/" is the current directory.
> 2010-08-04 09:49:40.523 PWD
< 2010-08-04 09:49:40.711 257 "/destination/INBOX/AC/" is the current directory.
> 2010-08-04 09:49:40.711 TYPE A
< 2010-08-04 09:49:40.898 200 Type set to 'A'
> 2010-08-04 09:49:40.898 PASV
< 2010-08-04 09:49:41.101 227 Entering Passive Mode (180,200,7,10,8,110).
> 2010-08-04 09:49:41.117 LIST
. 2010-08-04 09:49:41.304 m_pSslLayer changed state from 0 to 4
< 2010-08-04 09:49:41.554 150 Status okay; about to open data connection.
. 2010-08-04 09:49:41.757 SSL connection established
. 2010-08-04 09:49:41.773 m_pSslLayer changed state from 4 to 5
. 2010-08-04 09:49:41.773 d--------- 0 nobody nobody 0 Aug 03 09:21 .
. 2010-08-04 09:49:41.773 d--------- 0 nobody nobody 0 Aug 03 09:21 ..
. 2010-08-04 09:49:41.773 ---------- 0 nobody nobody 0 Aug 03 09:34 CURRENCY_20100803_071739.txt
< 2010-08-04 09:49:41.851 226 Transfer complete.
> 2010-08-04 09:49:41.851 TYPE A
< 2010-08-04 09:49:42.054 200 Type set to 'A'
> 2010-08-04 09:49:42.054 PASV
< 2010-08-04 09:49:42.242 227 Entering Passive Mode (170,252,85,70,23,112).
> 2010-08-04 09:49:42.242 STOR CURRENCY_20100804_050457.txt
< 2010-08-04 09:49:42.507 150 Status okay; about to open data connection.
. 2010-08-04 09:49:42.507 m_pSslLayer changed state from 0 to 4
< 2010-08-04 09:49:42.836 535 Failed security negotiation.
. 2010-08-04 09:49:42.836 Copying files to remote side failed.
. 2010-08-04 09:49:42.836 Got reply 4 to the command 4
* 2010-08-04 09:49:42.836 (ExtException) d--------- 0 nobody nobody 0 Aug 03 09:21 .
* 2010-08-04 09:49:42.836 d--------- 0 nobody nobody 0 Aug 03 09:21 ..
* 2010-08-04 09:49:42.836 ---------- 0 nobody nobody 0 Aug 03 09:34 CURRENCY_20100803_071739.txt
* 2010-08-04 09:49:42.836 Copying files to remote side failed.
* 2010-08-04 09:49:42.836 Failed security negotiation.
. 2010-08-04 09:49:42.836 Asking user:
. 2010-08-04 09:49:42.836 Error transferring file 'D:\AC\OUTBOX\CURRENCY_20100804_050457.txt'. ("d--------- 0 nobody nobody 0 Aug 03 09:21 .","d--------- 0 nobody nobody 0 Aug 03 09:21 ..","---------- 0 nobody nobody 0 Aug 03 09:34 CURRENCY_20100803_071739.txt","Copying files to remote side failed.","Failed security negotiation.")
* 2010-08-04 09:49:42.851 (EScpSkipFile) Error transferring file 'D:\AC\OUTBOX\CURRENCY_20100804_050457.txt'.
* 2010-08-04 09:49:42.851 d--------- 0 nobody nobody 0 Aug 03 09:21 .
* 2010-08-04 09:49:42.851 d--------- 0 nobody nobody 0 Aug 03 09:21 ..
* 2010-08-04 09:49:42.851 ---------- 0 nobody nobody 0 Aug 03 09:34 CURRENCY_20100803_071739.txt
* 2010-08-04 09:49:42.851 Copying files to remote side failed.
* 2010-08-04 09:49:42.851 Failed security negotiation.
. 2010-08-04 09:49:42.851 Session upkeep
. 2010-08-04 09:49:42.851 Got reply 1004 to the command 4
. 2010-08-04 09:49:42.851 Disconnected from server

Reply with quote

Advertisement

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

Re: Error transfering 0bytes file

Are you able to transfer empty file with any other client? If you are, please post a log file from the client.

Anyway, there's no B unit, you prbably wanted to do:
option exclude <1

Reply with quote

atreyuSG
Joined:
Posts:
5

hello.
Thanks for the quick response.

I tried each below, still does not work.
option include <1
option exclude <1
option exclude *.*<1

I have not tried with any other client, as we are using WinsCP only and comfortable with it.

Can assist?

Reply with quote

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

atreyuSG wrote:

I tried each below, still does not work.
option include <1
option exclude <1
option exclude *.*<1
For me the "option exclude <1" works. Can you post your complete script?

I have not tried with any other client, as we are using WinsCP only and comfortable with it.
.
OK, but I would like to know if it is server-side or client-side problem.

Reply with quote

Advertisement

You can post new topics in this forum