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

No idea. Sorry. Please try to get the server-side logs.
Hizashii

I want to do with command line exactly the same things as we can do with the GUI interface
<invalid hyperlink removed by admin>

Keepuptodate a local directory with a remote directory.
Reconnection if a disconnection has been detected.
Hizashii

Re: Timeout Problem (keepuptodate)

martin wrote:

Does it always fail on the LIST command?

It always fail on the LIST command

martin wrote:

Have you checked server-side log?

I haven't a log file :(

2 new log:
https://pastebin.com/CXzmYfuN
https://pastebin.com/fL7qVph4
martin

Re: Timeout Problem (keepuptodate)

Does it always fail on the LIST command? Have you checked server-side log?
Hizashii

Timeout Problem (keepuptodate)

Hello,
i read the documentation many times but i have still the same problem.
I'm using the keepuptodate command:

update.bat
@ECHO FTP... 
@START C:"\Program Files (x86)\WinSCP\winscp.exe" /console /script=uptodate.txt /timeout=180 /log=error.log

update.txt
option batch on
option confirm off
open Session1
option exclude "*.*"
option include "*.pdf"
keepuptodate D:\Export_PDF /public_html/test/PDF

<invalid hyperlink removed by admin>

I tryed with "Force IP address ...", it doesn't work too :(

Full log:
. 2012-06-18 14:55:22.324 --------------------------------------------------------------------------
. 2012-06-18 14:55:22.324 WinSCP Version 4.3.8 (Build 1771) (OS 6.1.7601 Service Pack 1)
. 2012-06-18 14:55:22.324 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2012-06-18 14:55:22.326 Local account: XXXXXXXXXXXX
. 2012-06-18 14:55:22.327 Login time: lundi 18 juin 2012 14:55:22
. 2012-06-18 14:55:22.327 --------------------------------------------------------------------------
. 2012-06-18 14:55:22.327 Session name: Session1 (Stored session)
. 2012-06-18 14:55:22.327 Host name: FTP.XXXX.XX (Port: 21)
. 2012-06-18 14:55:22.327 User name: XXXX (Password: Yes, Key file: No)
. 2012-06-18 14:55:22.327 Tunnel: No
. 2012-06-18 14:55:22.327 Transfer Protocol: FTP
. 2012-06-18 14:55:22.327 Ping type: C, Ping interval: 25 sec; Timeout: 10 sec
. 2012-06-18 14:55:22.327 Proxy: none
. 2012-06-18 14:55:22.327 FTP: FTPS: None; Passive: Yes [Force IP: Yes]
. 2012-06-18 14:55:22.327 Local directory: default, Remote directory: home, Update: No, Cache: Yes
. 2012-06-18 14:55:22.327 Cache directory changes: Yes, Permanent: Yes
. 2012-06-18 14:55:22.327 DST mode: 1
. 2012-06-18 14:55:22.327 --------------------------------------------------------------------------
. 2012-06-18 14:55:22.365 Connexion à FTP.XXXXXXXXXX...
. 2012-06-18 14:55:22.426  Connecté à FTP.XXXXXXX. En attente du message de bienvenue...
< 2012-06-18 14:55:22.473 220---------- Welcome to Pure-FTPd [privsep] [TLS] ----------
< 2012-06-18 14:55:22.473 220-You are user number 8 of 50 allowed.
< 2012-06-18 14:55:22.473 220-Local time is now 14:55. Server port: 21.
< 2012-06-18 14:55:22.474 220-IPv6 connections are also welcome on this server.
< 2012-06-18 14:55:22.474 220 You will be disconnected after 15 minutes of inactivity.
> 2012-06-18 14:55:22.474 USER XXXXXXXX
< 2012-06-18 14:55:22.523 331 User XXXX OK. Password required
> 2012-06-18 14:55:22.523 PASS ************
< 2012-06-18 14:55:22.599 230 OK. Current restricted directory is /
> 2012-06-18 14:55:22.599 SYST
< 2012-06-18 14:55:22.647 215 UNIX Type: L8
> 2012-06-18 14:55:22.647 FEAT
< 2012-06-18 14:55:22.687 211-Extensions supported:
< 2012-06-18 14:55:22.687  EPRT
< 2012-06-18 14:55:22.687  IDLE
< 2012-06-18 14:55:22.687  MDTM
< 2012-06-18 14:55:22.687  SIZE
< 2012-06-18 14:55:22.687  MFMT
< 2012-06-18 14:55:22.687  REST STREAM
< 2012-06-18 14:55:22.687  MLST type*;size*;sizd*;modify*;UNIX.mode*;UNIX.uid*;UNIX.gid*;unique*;
< 2012-06-18 14:55:22.687  MLSD
< 2012-06-18 14:55:22.687  AUTH TLS
< 2012-06-18 14:55:22.687  PBSZ
< 2012-06-18 14:55:22.687  PROT
< 2012-06-18 14:55:22.687  ESTA
< 2012-06-18 14:55:22.687  PASV
< 2012-06-18 14:55:22.687  EPSV
< 2012-06-18 14:55:22.687  SPSV
< 2012-06-18 14:55:22.687  ESTP
< 2012-06-18 14:55:22.687 211 End.
. 2012-06-18 14:55:22.697 Connecté
. 2012-06-18 14:55:22.697 --------------------------------------------------------------------------
. 2012-06-18 14:55:22.697 Using FTP protocol.
. 2012-06-18 14:55:22.697 Doing startup conversation with host.
> 2012-06-18 14:55:22.697 PWD
< 2012-06-18 14:55:22.747 257 "/" is your current location
. 2012-06-18 14:55:22.747 Getting current directory name.
. 2012-06-18 14:55:22.747 Startup conversation with host finished.
< 2012-06-18 14:55:22.747 Script: Session active : [1] XXXX
> 2012-06-18 14:55:22.747 Script: option exclude "*.*"
< 2012-06-18 14:55:22.747 Script: exclude         *.*       
> 2012-06-18 14:55:22.747 Script: option include "*.pdf"
< 2012-06-18 14:55:22.747 Script: include         *.pdf     
> 2012-06-18 14:55:22.747 Script: keepuptodate D:\Export_PDF /public_html/test/PDF
< 2012-06-18 14:55:22.747 Script: Recherche de changements, appuyez sur Ctrl+C pour annuler...
> 2012-06-18 14:55:48.671 PWD
< 2012-06-18 14:55:48.671 257 "/" is your current location
> 2012-06-18 14:56:13.007 TYPE I
< 2012-06-18 14:56:13.007 200 TYPE is now 8-bit binary
> 2012-06-18 14:56:38.358 REST 0
< 2012-06-18 14:56:38.358 350 Restarting at 0
. 2012-06-18 14:57:02.694 Listage du répertoire en cours...
> 2012-06-18 14:57:02.694 TYPE A
< 2012-06-18 14:57:02.742 200 TYPE is now ASCII
> 2012-06-18 14:57:02.743 PASV
< 2012-06-18 14:57:02.792 227 Entering Passive Mode (94,23,246,96,9,112)
> 2012-06-18 14:57:02.792 LIST
< 2012-06-18 14:57:02.882 150 Accepted data connection
< 2012-06-18 14:57:02.892 226-Options: -a -l
< 2012-06-18 14:57:02.892 226 42 matches total
. 2012-06-18 14:57:02.892 Listage du répertoire réussi
. 2012-06-18 14:57:02.892 Reading symlink "access-logs".
. 2012-06-18 14:57:02.892 Reading symlink "www".
> 2012-06-18 14:57:28.044 REST 0
< 2012-06-18 14:57:28.044 350 Restarting at 0
> 2012-06-18 14:57:53.394 TYPE I
< 2012-06-18 14:57:53.394 200 TYPE is now 8-bit binary
> 2012-06-18 14:58:18.744 TYPE A
< 2012-06-18 14:58:18.744 200 TYPE is now ASCII
> 2012-06-18 14:58:43.081 TYPE A
< 2012-06-18 14:58:43.081 200 TYPE is now ASCII
. 2012-06-18 14:58:43.081 Listage du répertoire en cours...
> 2012-06-18 14:58:43.081 TYPE A
< 2012-06-18 14:58:43.130 200 TYPE is now ASCII
> 2012-06-18 14:58:43.131 PASV
< 2012-06-18 14:58:43.177 227 Entering Passive Mode (94,23,246,96,76,34)
> 2012-06-18 14:58:43.177 LIST
. 2012-06-18 14:58:53.236 Expiration du délai détectée !
. 2012-06-18 14:58:53.236 Listage du répertoire impossible

Did i miss something ? Can you help me to keep the connection up ?
The .pdf transfer work without any problem.