FTP Connection to a machine sometimes works & sometimes not

Advertisement

Mudassir
Joined:
Posts:
5
Location:
Germany

FTP Connection to a machine sometimes works & sometimes not

Hi,

I am trying to connect to a QNX target machine using WinSCP on Win7 laptop in order to download some files from target.
I schedule a task on my laptop using schtasks command that calls a script and that script calls WinSCP.com commands.

Problem is that sometimes FTP connection to QNX target works but some times it gives following error:
batch           abort     
confirm         off       
Connecting to 192.168.1.26 ...
Connection failed.
A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
Following is the complete log:
. 2015-01-21 11:45:34.214 --------------------------------------------------------------------------
. 2015-01-21 11:45:34.214 WinSCP Version 5.5.6 (Build 4746) (OS 6.1.7601 Service Pack 1 - Windows 7 Professional)
. 2015-01-21 11:45:34.230 Configuration: HKEY_CURRENT_USER\Software\Martin Prikryl\WinSCP 2\
. 2015-01-21 11:45:34.230 Local account: DOMAIN\UCM_EMBED_TEST
. 2015-01-21 11:45:34.230 Working directory: C:\Temp\My_VCA_Update
. 2015-01-21 11:45:34.230 Process ID: 6392
. 2015-01-21 11:45:34.230 Command-line: "C:\Program Files (x86)\WinSCP\WinSCP.exe" /console=556 /consoleinstance=_4880_445 "/log=C:\Temp\My_VCA_Update\logs\winscp.log" "/command" "option batch abort" "option confirm off" "open ftp://root:myPass@192.168.1.26 -timeout=60" "echo downloading config files..." "cd /fs/usb0/FileRecogTest" "lcd C:\Temp\My_VCA_Update\Config_files" "get -filemask=automated_tests.txt *" "close" "exit" 
. 2015-01-21 11:45:34.230 Time zone: Current: GMT+1, Standard: GMT+1 (W. Europe Standard Time), DST: GMT+2 (W. Europe Daylight Time), DST Start: 29.03.2015, DST End: 25.10.2015
. 2015-01-21 11:45:34.230 Login time: Mittwoch, 21. Januar 2015 11:45:34
. 2015-01-21 11:45:34.230 --------------------------------------------------------------------------
. 2015-01-21 11:45:34.230 Script: Retrospectively logging previous script records:
> 2015-01-21 11:45:34.230 Script: option batch abort
< 2015-01-21 11:45:34.230 Script: batch           abort     
> 2015-01-21 11:45:34.230 Script: option confirm off
< 2015-01-21 11:45:34.230 Script: confirm         off       
> 2015-01-21 11:45:34.230 Script: open ftp://root:***@192.168.1.26 -timeout=60
. 2015-01-21 11:45:34.230 --------------------------------------------------------------------------
. 2015-01-21 11:45:34.230 Session name: root@192.168.1.26 (Ad-Hoc site)
. 2015-01-21 11:45:34.230 Host name: 192.168.1.26 (Port: 21)
. 2015-01-21 11:45:34.230 User name: root (Password: Yes, Key file: No)
. 2015-01-21 11:45:34.230 Tunnel: No
. 2015-01-21 11:45:34.230 Transfer Protocol: FTP
. 2015-01-21 11:45:34.230 Ping type: C, Ping interval: 30 sec; Timeout: 60 sec
. 2015-01-21 11:45:34.230 Proxy: none
. 2015-01-21 11:45:34.230 Send buffer: 262144
. 2015-01-21 11:45:34.230 UTF: 2
. 2015-01-21 11:45:34.230 FTP: FTPS: None; Passive: Yes [Force IP: A]; MLSD: A [List all: A]
. 2015-01-21 11:45:34.230 Local directory: default, Remote directory: home, Update: Yes, Cache: Yes
. 2015-01-21 11:45:34.230 Cache directory changes: Yes, Permanent: Yes
. 2015-01-21 11:45:34.230 DST mode: 1; Timezone offset: 0h 0m
. 2015-01-21 11:45:34.230 --------------------------------------------------------------------------
. 2015-01-21 11:45:34.230 Connecting to 192.168.1.26 ...
. 2015-01-21 11:45:55.240 A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.
. 2015-01-21 11:45:55.240 Connection failed.
Can you please let me know how to make this connection stable because it is critical for my task to guarantee that connection worked fine. If connection fails, complete script following that fails!

Please note that QNX target is up and running and is connected all the time with my Win7 Laptop over Telnet. So there is no question of target being not available!

Regards,
Mudassir

Reply with quote

Advertisement

Mudassir
Joined:
Posts:
5
Location:
Germany

I got the same message when connection worked fine and after that some files were being uploaded to target machine:
<Skipping above lines of log>
C:\Temp\My_VCA_Update\soundfiles\ENE\23983.adpcm | 71 KiB | 92,9 KiB/s | binary | 100%
C:\Temp\My_VCA_Update\soundfiles\ENE\23984.adpcm | 81 KiB | 98,8 KiB/s | binary | 100%
C:\Temp\My_VCA_Update\soundfiles\ENE\23985.adpcm | 12 KiB | 104,1 KiB/s | binary | 100%
C:\Temp\My_VCA_Update\soundfiles\ENE\23986.adpcm | 0 B | 32,8 KiB/s | binary | 0%
Error transferring file 'C:\Temp\My_VCA_Update\soundfiles\ENE\23986.apcm'.
Transfer channel can't be opened. Reason: A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond.

Copying files to remote side failed.
(A)bort, (R)etry, (S)kip, Ski(p) all: Abort

Reply with quote

Advertisement

You can post new topics in this forum