File System Server configuration in 2.1

LabKey Support Forum (Inactive)
File System Server configuration in 2.1 jrue  2007-06-04 15:41
Status: Closed
 
I was attempting to set up the Apache FTP server today as per your documentation but found the download from your site incomplete. It didn't contain the FTP server but only the labkey config file and integration jar file. When I downloaded the FTP server from the apache site and add in the labkey components, I was unable to start the server using the labkey config file after I had modified it for my site. Has anyone had a similar problem or any success setting up the FTP server?

Thanks,
Jon
 
 
brittp responded:  2007-06-04 15:47
Hi Jon,

Here are the docs on setting up the pipeline FTP server:
https://www.labkey.org/Wiki/home/Documentation/page.view?name=configureFtp

Please let me know if you've already looked at them. It's possible that the docs are out of date, since the apacheftp project is in the incubator stage and may have been updated since our 2.0 release.

Thanks,
Britt
 
wongch responded:  2007-06-04 18:38
Hi Jon,

Which step did you encounter problem? Which version of the ftp server did you download from the incubator site? Have you check that your ftp server can run with the configuration "res/conf/ftpd.properties" without problem? If this passed, then your issue is more on the UserManager setup.

We have set up the FTP server locally, but via rebuilding the ftp server from source. We try the release of "1.0-M1-incubator" but some of the classes' method signatures have changed. Only the trunk works. In addition, we have to download a number of other jars file for it executes. We are unsure if this is the exact build that is intented. But the useful of this feature is worth all these, esp. that the project access control is observed.


Britt, on the docs page, it says "The Apache Java FTP server is available in a .zip file on the download page. Simply unzip the FTP server to an appropriate directory. We recommend installing it alongside the Tomcat server used for the LabKey server." However, the download page only contain labkey ftp components, not the FTP server. It will save user a lot of inconvenience if
1) the FTP server is available for download or
2) a link to the exact download on the incubator page (http://incubator.apache.org/ftpserver/ contains a download link which we have failed to perform a successful setup too) or
3) the exact FTP server release name/version is available.

Cheers,
Chee-Hong.
 
jrue responded:  2007-06-05 16:27
So if I use the setting for the labkey.xml file from the documentation:
        <serverAddress>localhost</serverAddress>
        <port>8021</port>

       <labkey-url>http://localhost:8084/labkey/Pipeline</labkey-url>

What are the settings I need to put in the "Customize Site" page for:
    Server Name: (should this be "localhost")
    Port: (I assume this is 8021)

I have a fresh instance of the LabKey server running on my dev box and downloaded the binaries today of the FTP server. I can start the FTP server with the default configuration file but when I try to start it with the labkey.xml file it gives me the following error:

Exception in thread "AWT-EventQueue-0" java.lang.NoClassDefFoundError: org/apac
e/ftpserver/ftplet/AuthenticationFailedException
        at java.lang.Class.forName0(Native Method)
        at java.lang.Class.forName(Class.java:164)
        at org.apache.ftpserver.FtpConfigImpl.createComponent(FtpConfigImpl.jav
:114)
        at org.apache.ftpserver.FtpConfigImpl.<init>(FtpConfigImpl.java:81)
        .....
 
wongch responded:  2007-06-06 08:37
Hi Jon,

Your site setting is correct. Your labkey.xml "labkey-url" settings implies that your labkey server is running in port 8084. Just need to make sure that this is such.

From the provided stack, it means that the class file AuthenticationFailedException.class cannot be found. It should be found in your ftplet-api-<release version>.jar under the namespace org\apache\ftpserver\ftplet

I encountered this problem and could not resolve it until I use the trunk copy of the FTP server source. (There has been changes to some of the framework used in the FTP server.) You can do so following the links under section "Developing FtpServer" (http://incubator.apache.org/ftpserver/documentation.html)

I have attached a zip file of the ftp server that we are using locally. You can give this a try after making the appropriate PATH and configuration changes. We start the console based version (via ftpd.bat). Please note that this is not an official release and it might not be the way of intended setup.

*Chee-Hong.
 
jrue responded:  2007-06-07 11:24
Thank you Chee-Hong.

That did the trick. It is now working.