sFTP Connection (wodSFTP / wodSFTP.NET / wodSFTPdll)
I'm using the sample Classic ASP code included in the demo download with one exception. The server i'm trying to connect to uses a different port so I have Sftp.Port = <servers port number> added.
I was also having timeout issues so I added Server.ScriptTimeout = 1800
I submit the form in sftp.asp...
While watching the server's FTP logs I see it send the welcome message indicating that the activex object has connected to the server. But it never sends the USER or anything after.
The webpage returns
WeOnlyDo.wodSFTPCom.1 error 'ffffffff'
Unrecognized Error.
/sftp.asp, line 32
Line 32 is Sftp.Connect
What am I doing wrong? Cant be much since i'm using the sample code provided.
Re: sFTP Connection
Hi Squireh,
Do you know maybe which server type/vendor/name is this? Are you sure that it supports SFTP protocol?
Did you try to connect there with some other SFTP client maybe? Does it work?
Sorry for all my questions but we have to isolate your problem somehow and try to resolve it.
Regards,
Drazen
Re: sFTP Connection
I got the same issue as this.
Our server with WeOnlyDo is 128.172.###.###.
We have an old script that SFTP to 128.172.###.1##
working very well. But when I tried to make the new
script that SFTP to 128.172.###.2##, it got the same error
WeOnlyDo.wodSFTPCom.1 error 'ffffffff'
Unrecognized Error.
/library/getLibFTP.asp, line 61
When I developed the new script in my desktop
(172.22.xxx.xxx) it worked fine.
My desktop only installed an evaluation copy
of WeOnlyDo. So I commented the line of this
Sftp.LicenseKey =
#############################################
I'm using the sample Classic ASP code included in the demo download with one exception. The server i'm trying to connect to uses a different port so I have Sftp.Port = <servers port number> added.
I was also having timeout issues so I added Server.ScriptTimeout = 1800I submit the form in sftp.asp...
While watching the server's FTP logs I see it send the welcome message indicating that the activex object has connected to the server. But it never sends the USER or anything after.
The webpage returnsWeOnlyDo.wodSFTPCom.1 error 'ffffffff'
Unrecognized Error.
/sftp.asp, line 32
Line 32 is Sftp.Connect
What am I doing wrong? Cant be much since i'm using the sample code provided.
Re: sFTP Connection
Hi,
Can you please try handling this error, and the check up on the LastError property?
What does it return?
Regards,
Damba
Re: sFTP Connection
I tried On Error Resume Next in my vbscript.
It just stop in the line Sftp.Connect
Do you have sample code for WeOnlyDo.error_handling?
my code: (It just printed point 0 and stopped.)
On Error Resume Next
...prtLn point 0
Sftp.Connect
prtLn point 1
If Err.Number <> 0 Then prtErr error details...
Hi,
Can you please try handling this error, and the check up on the LastError property?
What does it return?
Regards,
Damba
Re: sFTP Connection
Hi,
If I understood correctly, you have a licensed version of component on your distribution machine (server), but you have trial version on your development machine?
If so, then it's normal that you receive an error, since your code doesn't contain LicenseKey property set before Connect method.
Can you verify?
Regards,
Damba
Re: sFTP Connection
In the product server I put the line back. (Sftp.LicenseKey = VEE3-ACEC-B696-DZZH )
There is no problem in an old script in the same server linked to another destination host.
The code is similar except the followings (3rd-5th lines).
set Sftp = CreateObject( WeOnlyDo.wodSFTPCom.1 )
Sftp.LicenseKey =
Sftp.Hostname = xxx.vcu.edu
Sftp.Login = xxx
Sftp.Password = xxx
Sftp.Blocking = 1
Sftp.Connect
The new one get error in the last line.
#############################
WeOnlyDo.wodSFTPCom.1 error 'ffffffff'
Unrecognized Error.
#############################
Hi,
If I understood correctly, you have a licensed version of component on your distribution machine (server), but you have trial version on your development machine?
If so, then it's normal that you receive an error, since your code doesn't contain LicenseKey property set before Connect method.
Can you verify?
Regards,
Damba
Re: sFTP Connection
Hi,
And the same script works if you put in some other server?
Or does it happen with all servers?
What version of component do you have? Can you please check Version property?
Regards,
Damba
Re: sFTP Connection
Version = 3.3.2.92 in product server
3.5.5.133 in trial server
But there is a script that works in product server with similar coding
Re: sFTP Connection
Hi,
Yes, but it doesn't work with that host. Did you try connecting to any other host? Does the same error occur?
Regards,
Damba
Re: sFTP Connection
product server version 3.3.2.92
server IP 128.172.2.###.
with LicenseKey
develop server version 3.5.5.133
server IP 172.22.143.###
trail version
old script sftp to 128.172.###.169 works on both prod&dev servers
new script sftp to 128.172.###.210 works only on dev server and got this in prod server
WeOnlyDo.wodSFTPCom.1 error 'ffffffff'
Unrecognized Error.
I am not feeling comfortable to put full IP and other info here.
So if you need more details, could you send me email at
dhuangfu@vcu.edu
Hi,
Yes, but it doesn't work with that host. Did you try connecting to any other host? Does the same error occur?
Regards,
Damba
Re: sFTP Connection
Hi,
Can you please contact us at techsupport@weonlydo.com and provide us a sample script?
Also, is there any chance we could try connecting to that host? We'll need to reproduce this in our environment. However, please make sure that you're using the latest version first.
Regards,
Damba
Re: sFTP Connection
Hi Did this error ever get resolved ?
I am experiencing this now.
Using the wodSFTP.dll COM component v3.7.0.161
I have created a simple app that just connects and when .connect I get error
-1 "Unrecognized error"
This only happens at one of our client's environments and is perfectly fine in our own internal and other client environments. WinSCP works fine on the problem environment - so SFTP must be working fine. Its Win2008 R2 SP1 connecting to solaris 10 sparc.
The code is just the below with the xxx replaced with the correct details:
var
FwodSFTP: IwodSFTPCom;
begin
FwodSFTP := CowodSFTPCom.Create;
FwodSFTP.LicenseKey := 'XXXXXX'
FwodSFTP.Blocking := True;
FwodSFTP.Login := 'xx';
FwodSFTP.Password := 'xx';
FwodSFTP.Connect('xx', 22);
Is there a debug version of the dll that I can use to get some output to analyse what could be wrong ?
Re: sFTP Connection
Gareth,
hi. I checked the source. -1 is returned only during connection phase when blocking mode is used, and when all is well - and suddenly connection is dropped by remote side gracefully, wihtout any errors. At this moment wodSFTP don't know what exactly happened, and why was connection closed, and reports -1.
Can we connect there for a test?
Kreso
Re: sFTP Connection
Tried non blocking and still didnt connect.
Its a client site so I cant open it up to you without their permission.
Can you suggest anything I can look into or provide a debug dll to gather information ?
Thanks
Re: sFTP Connection
Gareth,
unfortunately, no, I don't see the option. We could in theory add debugging info but I don't know what to put inside, since we don't know why connection was closed.
We had issue like this approx 10 years ago when server with one server that misbehaved and used wrong encryption algorithm.
But as I said - without having slight idea what is wrong, we would need to connect there to duplicate it, please ask customer for permission. This could be something simple, such as local firewall/antivirus breaking the connection.
Kreso