Timeout detected (control connection)

Advertisement

weyep
Donor
Joined:
Posts:
3
Location:
Switzerland

Timeout detected (control connection)

We have five monitoring stations which send three times a day a 200k zip file to a ftp server using a batch file and WinSCP. This works perfectly fine. However, every 9 days the zip file is larger (30 MB) and one station runs into trouble. This station connects to the internet over the mobile network. This connection isn't perfectly good but not bad either. At least we manage to access and control the station with TeamViewer.

To send the zip file the scheduler calls a batch file which contains this line:
CALL "%ProgramFiles%\WinSCP\winscp.com" /timeout=120 /ini=nul /script=ftp.txt /log="ftp.log" /loglevel=-1 /logsize=1M

The script file ftp.txt contains the following lines:
option batch on 
option confirm off
open ftp://user:password@ftp.myserver.ch/
cd /mfm/noe/aqc0/data/gr_ro2
put c:\Transfer\*.zip
close
exit
The problem starts with this:
Script: Timeout detected. (control connection)
It seems to re-try but fails with this error:
The process cannot access the file because it is being used by another process.
I have attached the log file. Is there something I can do better, to make a successful transfer of a larger file with this station?

Any help is appreciated.

Reply with quote

Advertisement

weyep
Donor
Joined:
Posts:
3
Location:
Switzerland

Re: Timeout detected (control connection)

Thanks Martin for your quick reply, I wasn't aware that the command-line /timeout has no effect. I will test it with the open switch -timeout=<sec>. What is the default timeout without switch, what is a reasonable value to set?

What about the retry problem "The process cannot access the file because it is being used by another process."
Is there something that can be improved? To retry could helpful in some cases.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
41,440
Location:
Prague, Czechia

Re: Timeout detected (control connection)

The default timeout is 15 seconds:
. 2020-10-16 19:35:51.679 Ping type: Dummy, Ping interval: 30 sec; Timeout: 15 sec
Try 60 seconds.
I do not know about the retry. Did you check what process has the file locked?

Reply with quote

weyep
Donor

Re: Timeout detected (control connection)

An initial test looks promising. But I have to wait and see what happens when the real transfer takes place.
I don't bother right now with the locked file situation. It may become obsolete anyway if the timeout fix works. Otherwise I would come back to it.

Reply with quote

Advertisement

You can post new topics in this forum