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

martin

Please attach a full session log file.
Guest

Hello,

Please find attached the requested log.
The file to transfer was : WSUS.vhdx


< 2016-12-15 21:37:04.695 230-OK. Current directory is /

< 2016-12-15 21:37:04.695 230 408096003 Kbytes used (77%) - authorized: 524185600 Kb
> 2016-12-15 21:37:04.695 SYST
< 2016-12-15 21:37:04.695 215 UNIX Type: L8
> 2016-12-15 21:37:04.695 FEAT
< 2016-12-15 21:37:04.695 211-Extensions supported:
< 2016-12-15 21:37:04.695  EPRT
< 2016-12-15 21:37:04.695  IDLE
< 2016-12-15 21:37:04.695  MDTM
< 2016-12-15 21:37:04.726  SIZE
< 2016-12-15 21:37:04.726  MFMT
< 2016-12-15 21:37:04.726  REST STREAM
< 2016-12-15 21:37:04.726  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2016-12-15 21:37:04.726  MLSD
< 2016-12-15 21:37:04.726  AUTH TLS
< 2016-12-15 21:37:04.726  PBSZ
< 2016-12-15 21:37:04.726  PROT
< 2016-12-15 21:37:04.726  TVFS
< 2016-12-15 21:37:04.726  ESTA
< 2016-12-15 21:37:04.726  PASV
< 2016-12-15 21:37:04.726  EPSV
< 2016-12-15 21:37:04.726  SPSV
< 2016-12-15 21:37:04.726  ESTP
< 2016-12-15 21:37:04.726 211 End.
< 2016-12-15 21:37:04.726 Script: Connected
. 2016-12-15 21:37:04.726 Connected
. 2016-12-15 21:37:04.726 Doing startup conversation with host.
< 2016-12-15 21:37:04.726 Script: Starting the session...
> 2016-12-15 21:37:04.726 PWD
< 2016-12-15 21:37:04.726 257 "/" is your current location
. 2016-12-15 21:37:04.726 Changing directory to "/Backup_VM/WSUS".
> 2016-12-15 21:37:04.726 CWD /Backup_VM/WSUS
< 2016-12-15 21:37:04.726 250 OK. Current directory is /Backup_VM/WSUS
. 2016-12-15 21:37:04.726 Getting current directory name.
> 2016-12-15 21:37:04.726 PWD
< 2016-12-15 21:37:04.726 257 "/Backup_VM/WSUS" is your current location
. 2016-12-15 21:37:04.726 Startup conversation with host finished.
< 2016-12-15 21:37:04.726 Script: Session started.
. 2016-12-15 21:37:04.726 File: 'Virtual Hard Disks\WSUS.vhdx' [2016-12-15T17:20:04.150Z] [29095886848]
. 2016-12-15 21:37:04.726 Copying "Virtual Hard Disks\WSUS.vhdx" to remote directory started.
. 2016-12-15 21:37:04.726 Binary transfer mode selected.
. 2016-12-15 21:37:04.726 Starting upload of Virtual Hard Disks\WSUS.vhdx
> 2016-12-15 21:37:04.726 CWD /Backup_VM/WSUS/Virtual Hard Disks/
< 2016-12-15 21:37:04.726 250 OK. Current directory is /Backup_VM/WSUS/Virtual Hard Disks
> 2016-12-15 21:37:04.726 PWD
< 2016-12-15 21:37:04.726 257 "/Backup_VM/WSUS/Virtual Hard Disks" is your current location
> 2016-12-15 21:37:04.726 TYPE A
< 2016-12-15 21:37:04.726 200 TYPE is now ASCII
> 2016-12-15 21:37:04.726 PASV
< 2016-12-15 21:37:04.726 227 Entering Passive Mode (178,33,121,127,63,58)
> 2016-12-15 21:37:04.757 MLSD
. 2016-12-15 21:37:04.757 Connecting to 178.33.121.127:16186 ...
< 2016-12-15 21:37:04.757 150 Accepted data connection
< 2016-12-15 21:37:04.757 226-Options: -a -l
< 2016-12-15 21:37:04.757 226 3 matches total
. 2016-12-15 21:37:04.757 Data connection closed
. 2016-12-15 21:37:04.757 type=cdir;sizd=3;modify=20161214223457;UNIX.mode=0755;UNIX.uid=100;UNIX.gid=100;unique=7ag2a9; .
. 2016-12-15 21:37:04.757 type=pdir;sizd=5;modify=20161214224335;UNIX.mode=0755;UNIX.uid=100;UNIX.gid=100;unique=7ag29f; ..
. 2016-12-15 21:37:04.757 type=file;size=29095886848;modify=20161214171627;UNIX.mode=0644;UNIX.uid=100;UNIX.gid=100;unique=7ag2aa; WSUS.vhdx
. 2016-12-15 21:37:04.773 File transfer was completed before disconnect
> 2016-12-15 21:37:04.773 MFMT 20161215172004 WSUS.vhdx
. 2016-12-15 21:37:19.384 Timeout detected. (control connection)
. 2016-12-15 21:37:19.384 Copying files to remote side failed.
. 2016-12-15 21:37:19.384 Connection was lost, asking what to do.
. 2016-12-15 21:37:19.384 Asking user:
. 2016-12-15 21:37:19.384 Lost connection. ("Timeout detected. (control connection)","Copying files to remote side failed.")
< 2016-12-15 21:37:19.384 Script: Lost connection.
< 2016-12-15 21:37:19.384 Script: Timeout detected. (control connection)

< 2016-12-15 21:37:19.384 Copying files to remote side failed.


How can I configure the script to retry when transfer of a file failed ?

Thanks in advance for your help.
martin

Anonymous wrote:

sometimes, some files of the folder to move are not transfered.

Please attach a full session log file showing the problem (using the latest version of WinSCP).
Name a file that should have been transferred and was not.

To generate the session log file, use /log=path_to_log_file command-line argument. Submit the log with your post as an attachment. Note that passwords and passphrases not stored in the log. You may want to remove other data you consider sensitive though, such as host names, IP addresses, account names or file names (unless they are relevant to the problem). If you do not want to post the log publicly, you can mark the attachment as private.
Guest

My current script is :

"C:\Program Files (x86)\WinSCP\WinSCP.com" ^
/log="C:\Scripts\Logs\FTP_VM_01.log" /ini=nul ^
/command ^
"open ftp://ftp-server-01:password@user/" ^
"lcd D:\Backup_VM\01" ^
"cd Backup_VM" ^
"cd 01" ^
"put *.*" ^
"exit"

How can I update the script to ensure all files are transfered ?
Guest

Hi,

Thanks for the answser.
I have the script, and it works.

But...
sometimes, some files of the folder to move are not transfered.

Is it possible to modify the script to ensure that all files are corectly transfered ?
Guest

Cannot log using command line

Hello,

I just installed WinSCP to automate FTP transfer.

I registred the credentials in the GUI : it works fine, without any problem.

Now, I'm trying to write a batch to automate the transfer but... I cannot log, even manualy.

1. I start the command : "C:\Program Files (x86)\WinSCP\WinSCP.com" OK
2. I try to connect : open ftp://username:PASSWORD@my.ftpserver.com PROBLEM

My password don't contain any special character.

Even a pure manual login fail :

1. open ftp://my.ftpserver.com OK
2. Prompt for username OK
3. Prompt for password ALWAYS FAIL - typing, or copy/paste fail
4. But the GUI login, with same credentials works fine...

Where is the problem ???

Thanks in advance for your help.