Topic "FTP Connection to a machine sometimes works & sometimes not"

Author Message
Mudassir
[View user's profile]

Joined: 2014-12-02
Posts: 5
Location: Germany
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:

Quote:
. 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 guarentee 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
Mudassir
[View user's profile]

Joined: 2014-12-02
Posts: 5
Location: Germany
I got the same message when connection worked fine and after that some files were being uploaded to target machine:
Quote:

<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
martin
[View user's profile]
Site Admin
Joined: 2002-12-10
Posts: 24512
Location: Prague, Czechia
More information about "Transfer channel can't be opened" error:
http://winscp.net/eng/docs/message_transfer_channel_cant_be_opened
Advertisements

You can post new topics in this forum






Search Site

What is WinSCP?

It is award-winning SFTP client, SCP client, FTPS client and FTP client integrated into one software program for file transfer to FTP server or secure SFTP server. [More]

And it's free!

Donate

About donations

$9   $19   $49   $99

About donations

Recommend

WinSCP Privacy Policy

WinSCP License