Unable to perform certain tasks against a Globalsc - WeOnlyDo Discussion board

Unable to perform certain tasks against a Globalsc (wodSFTP / wodSFTP.NET / wodSFTPdll)

by kdcarlisle, Saturday, April 06, 2013, 06:42 (4010 days ago)

We have an automated job that is trying to upload an encrypted file to a Globalscape (3.3.7) server over SFTP. The job runs and everything looks OK, however when we log into the site (using WinSCP or Filezilla), we do not see a file. We use this same process to upload files to other sites without issue. While logged into with WinSCP or Filezilla we can upload a file and we will be able to see it.

I wrote a new test console to go through the various tasks and found that an error is thrown when trying to use the following methods:

GetAttributes
CheckDir
PutFile

Each of these methods will throw Error Code: 550 (Server returned an error: No such file or folder).

We are currently using version 1.7.2.205, but I have tried the same test with the following versions:

V1.6.4.189
V1.6.6.194
v1.7.0.200
v1.7.5.213

They all produced the same error.

Is this a possible bug in the component or is it a security/permission/configuration issue on the Globalscape server?

Re: Unable to perform certain tasks against a Glob

by wodsupport, Saturday, April 06, 2013, 15:43 (4010 days ago) @ kdcarlisle

Hi. I cannot be sure about the error without going deeper and seeing why it happens. But, perhaps really there is no such folder you're accessing?

Are you using full paths for RemotePath property/argument?

Kreso

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Saturday, April 06, 2013, 19:34 (4010 days ago) @ wodsupport

I tried setting (and not setting) the RemotePath to / . When I log into the site (with filezilla), I only see my home directory (/).

When I ran the test against our Titan SFTP server I see the following results.

Remote path before put: /uat-outbound/sys
Put files on FTP server
Progress Event
Position : 0
Total : 322
Progress Event
Position : 322
Total : 322
Done Event
Error : 0
Description :
Remote path after put: /uat-outbound/sys/lipsum.txt

Doing the same test (different folder) on the Globalscape SFTP server gives the following results.

Remote path before put: /
Put files on FTP server
Done Event
Error : 550
Description : Server returned an error: No such file or folder
Remote path after put: /

Are there any additional debug/logging features I can turn on and test?

Re: Unable to perform certain tasks against a Glob

by woddrazen, Saturday, April 06, 2013, 20:04 (4010 days ago) @ kdcarlisle

Hi,


Is there any chance you can show us your PutFile Method line?


Regards,
Drazen

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Saturday, April 06, 2013, 20:18 (4010 days ago) @ woddrazen

Sure. Here is the code block. Let me know if you want me to email you the whole solution.

private static readonly string UPLOAD_FILE = @ d:lipsum.txt ;
...
Ftp = new FtpDLX();
...
string remoteDir = / ;
...
Trace.WriteLine(string.Format( Remote path before put: {0} , Ftp.RemotePath));
Trace.WriteLine( Put files on FTP server );
Ftp.PutFile(UPLOAD_FILE, remoteDir);
if (Ftp.LastError != null) throw Ftp.LastError;
Trace.WriteLine(string.Format( Remote path after put: {0} , Ftp.RemotePath));

Re: Unable to perform certain tasks against a Glob

by woddrazen, Saturday, April 06, 2013, 20:21 (4010 days ago) @ kdcarlisle

Hi,


What happens if you use direct values inside PutFile Method?
[code]Ftp.PutFile( d:lipsum.txt , /lipsum.txt );[/code]
Let us know how it goes.


Drazen

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Saturday, April 06, 2013, 20:41 (4010 days ago) @ woddrazen

Gives the same error code.

Remote path before put: /
Put files on FTP server
Destination file: /lipsum.txt
Done Event
Error : 550
Description : Server returned an error: No such file or folder
Remote path after put: /lipsum.txt

Re: Unable to perform certain tasks against a Glob

by woddrazen, Sunday, April 07, 2013, 10:53 (4009 days ago) @ kdcarlisle

Hi,


Is there any chance maybe that we can connect there and duplicate your problem? We will just connect few times duplicate it and immediately disconnect.


Drazen

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Sunday, April 07, 2013, 18:23 (4009 days ago) @ woddrazen

Yes. I can send my test project (with the account credentials) to your email. Should I use: techsupport@weonlydo*com?

Re: Unable to perform certain tasks against a Glob

by wodsupport, Sunday, April 07, 2013, 21:56 (4009 days ago) @ kdcarlisle

Hi. Yes, please send it to techsupport - at - weonlydo.com email.

Regards,
Kreso

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Monday, April 08, 2013, 03:24 (4008 days ago) @ wodsupport

The project (with credentials) has been zipped and sent.

Re: Unable to perform certain tasks against a Glob

by woddrazen, Monday, April 08, 2013, 15:44 (4008 days ago) @ kdcarlisle

Hi,


This issue should be fixed. Please request update and try it again.


Drazen

Re: Unable to perform certain tasks against a Glob

by kdcarlisle, Monday, April 08, 2013, 19:57 (4008 days ago) @ woddrazen

Hi Drazen,

I got the latest code, installed and tested. The results were mixed. The calls to GetAttributes and CheckDir still fail with the 550 error. If I use the path only as the remoteDir parameter in the PutFile method, it will still throw the 550 error. However, if I list the complete path and file (ex: /lipsum.txt), then it will work. Is there a way to get all these features working or is this an issue with this particular version of GlobalScape?

Re: Unable to perform certain tasks against a Glob

by Alan, Monday, April 08, 2013, 21:16 (4008 days ago) @ kdcarlisle

Hi Kent,

I'm not sure for error 550, I think this is not error for SFTP protocol. Are you sure that you are using SFTP instead of FTP?

I just double checked GetAttributes and CheckDir Method and results are ok.

You can find more about those Methods here:

for CheckDir
http://www.weonlydo.com/FtpDLX.NET/Help/WeOnlyDo.Client.FTP~WeOnlyDo.Client.FtpDLX~CheckDir.html

and

for GetAttributes
http://www.weonlydo.com/FtpDLX.NET/Help/WeOnlyDo.Client.FTP~WeOnlyDo.Client.FtpDLX~GetAttributes.html

Regards,
Alan