Timeout waiting for external console

Advertisement

Guest

Timeout waiting for external console

WinScp 3.8.2 Build 330
OS- Windows 2003 server

executing the the following always results in a GUI pop up window with the text "Timeout waiting for external console". When I check the remote system only a portion of the files have been transferred before the error occurs. The error usually occurs 45-60 seconds after winscp starts.

Any suggestions to fix ?

etime = DateAdd("s",600,Now)
Set oExec2 = wshell.exec(cmd)
Do until oExec2.Status
wscript.echo Now & " Waiting For Transfer Task to Complete"
wscript.sleep 10000
IF Now > etime THEN
wscript.echo Now & " Transfer did not complete within 10 minutes"
wscript.quit 8
END IF
loop

where cmd = "c:\program files\winscp3\winscp3.com" user@aix3 /ini=d:\cmdlib\winscp\winscp3.ini /script=d:\srm\austin1\ftp_aix3.txt

the script file contains:
option batch on
option confirm off
option transfer binary
rm /var/adm/perfmgr/daily/austin1/*stat*
rm /var/adm/perfmgr/daily/austin1/process*
lcd d:\SRM\AUSTIN1\reports
cd /home/srmserv/junk
cd /var/adm/perfmgr/daily/austin1
put *stat*
put process*
chmod 640 *stat*
chmod 640 process*
exit

Reply with quote

Advertisement

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Timeout waiting for external console

Can I have a contact to you, so I can send you a debug version?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Thanks for the address (I have removed it). I'll contact you.
_________________
Martin Prikryl

Reply with quote

Guest

I tried the new beta version with the same results.

Beta 4 also issues a memory error when attempting to open a console session where the target host does not a public key installed.

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Beta 4 also issues a memory error when attempting to open a console session where the target host does not a public key installed.
What do you mean by "where the target host does not a public key installed"?
_________________
Martin Prikryl

Reply with quote

Guest

If I use WinSCP in console mode and attempt to connect to a host where I have not copied a key into the authorized_keys file.

winscp> open
Host: hostx
Searching for host...
Connecting to host...
Authenticating...
Invalid access to memory
Authentication failed.
winscp>

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Anonymous wrote:

If I use WinSCP in console mode and attempt to connect to a host where I have not copied a key into the authorized_keys file.
Thanks. I'll try that.
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Timeout waiting for external console

This issue has been added to tracker.
_________________
Martin Prikryl

Reply with quote

Jmiller76
Joined:
Posts:
4

More Timeout Error with Directory listing &Console redirect

I am calling winSCP.com from a VB.NET 1.1 app.
I redirect the output to capture and "CreateNoWindow" for aesthetics.
With Some Servers I get the fun "timeout" error.

If I remove the Redirected output and disable the "CreateNoWindow" then all runs fine.

At some point we had a problem downloading files and somewhere in the forum or via trial and error I found that putting a "dir" command before the download would make things work.

I moved my STDOUT redirect to grab while waiting for the "COM" to finish running rather then reviewing the output after execution.
This showed the problem occurring mid DIR command. If I change the DIR command to only look for the file that I need, it continues to the download and succeeds.

I can reproduce the timeout warning, but dont have any documentation on which of our server connections required the initial DIR to be inserted.

Thanks,
Josh

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: More Timeout Error with Directory listing &Console redirect

Jmiller76 wrote:

I am calling winSCP.com from a VB.NET 1.1 app.
I redirect the output to capture and "CreateNoWindow" for aesthetics.
With Some Servers I get the fun "timeout" error.
What timeout do you get? "Timeout waiting for external console"? Or different one?
_________________
Martin Prikryl

Reply with quote

martin
Site Admin
martin avatar
Joined:
Posts:
27,209
Location:
Prague, Czechia

Re: Specific Timeout error

Jmiller76 wrote:

"Timeout waiting for external console to complete the command".
Can you provide me your email address, so I can send you a debug version of WinSCP to track the problem? If you do not want to post the address here, you can send me an email. You will find it (if you log in) in my forum profile. Thanks.
_________________
Martin Prikryl

Reply with quote

Advertisement

You can post new topics in this forum