cancel
Showing results for 
Search instead for 
Did you mean: 

FTP - empty directory listing

blackened
Champ in-the-making
Champ in-the-making
Hello,

I am running Alfresco Labs 3 on a CentOS 5.2 system.  I deployed the WAR package on Tomcat 5.5.  I am to the point where I have logged in, created users, created spaces, imported zips, etc.  A few problems, but for the most part it is working.

One major problem I have is with the FTP server.  I have it enabled and running on port 1121.  I fought iptables for awhile but now am getting no ERRORS when connecting to the FTP site and navigating directories, however I am not getting much of a directory listing either.  I see the Alfresco and AVM directories but nothing in either.  This is using various ftp clients (filezilla, coreftp) over a passive connection (I have not gotten active to work, nor do I really need to).

This is my file-servers.xml:
   <config evaluator="string-compare" condition="FTP Server">
          <serverEnable enabled="true"/>

          <!– Run on a non-privileged port –>
          <port>1121</port>

<rootDirectory>/alfresco/</rootDirectory>

      <!– FTP authentication –>
      <authenticator type="alfresco"/>

<!–      <debug flags="File,Search,Error,Directory,Info,DataPort"/> –>
   </config>

Any ideas on what I am doing wrong here?  Thanks.
8 REPLIES 8

mikeh
Star Contributor
Star Contributor
Try running the server as root or making sure CIFS is working ok - it's a quirk we're looking into.

Mike

mabayona
Champ on-the-rise
Champ on-the-rise
I have recently setup alfresco as FTP server (alfresco 3stable + ubuntu). I did have several problems but now is working. The main problem was that it seems that has to be configured as active FTP. What I did is:

- open ports 20 & 21 (or 1120 & 1121 in your case) for FTP
- open ports between 1000 and 655x5 (to allow for active FTP).

with this configuration it works Ok and filezilla works ok and display also empty directories.

blackened
Champ in-the-making
Champ in-the-making
I tried getting active to work but I just can't seem to get it working.  I got all my content in the hard way using Share to upload so this has taken a back burner to my other problems, but I will try running the ftp server as root to see if that makes any difference.

How would I go about testing CIFS?  The server I am running this on is a headless CentOS server hosted at a data center far far away and has no X system or anything like that.  What would be the best way to make sure CIFS is working in an environment like that?

mabayona
Champ on-the-rise
Champ on-the-rise
Yeap. I´m running the server as root.

robain
Champ in-the-making
Champ in-the-making
Re: FTP - empty directory listing

Postby MikeH on 26 Mar 2009, 08:23
Try running the server as root or making sure CIFS is working ok - it's a quirk we're looking into.

Mike

I am getting the same exact issue with 3.0.1E. Alfresco and AVM directories show up on ftp client but nothing after that. Running it on port 1121. Is this issue resolved yet??

Thanks.

robain
Champ in-the-making
Champ in-the-making
I have recently setup alfresco as FTP server (alfresco 3stable + ubuntu). I did have several problems but now is working. The main problem was that it seems that has to be configured as active FTP. What I did is:

- open ports 20 & 21 (or 1120 & 1121 in your case) for FTP
- open ports between 1000 and 655x5 (to allow for active FTP).

with this configuration it works Ok and filezilla works ok and display also empty directories.

Hi mabayona,
Can you please publish the iptable commands that you used before this got started working for you.

appreciate the help. thanks.

mabayona
Champ on-the-rise
Champ on-the-rise
my complete iptables list is:

(not all are needed for a working FTP)

iptables –list
Chain INPUT (policy DROP)
target     prot opt source               destination
ACCEPT     all  –  anywhere             anywhere
ACCEPT     tcp  –  anywhere             anywhere            tcp flags:ACK/ACK
ACCEPT     all  –  anywhere             anywhere            state ESTABLISHED
ACCEPT     all  –  anywhere             anywhere            state RELATED
ACCEPT     udp  –  anywhere             anywhere            udp spt:domain dpts:1024:65535
ACCEPT     icmp –  anywhere             anywhere            icmp echo-reply
ACCEPT     icmp –  anywhere             anywhere            icmp destination-unreachable
ACCEPT     icmp –  anywhere             anywhere            icmp source-quench
ACCEPT     icmp –  anywhere             anywhere            icmp time-exceeded
ACCEPT     icmp –  anywhere             anywhere            icmp parameter-problem
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:ssh
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:auth
ACCEPT     icmp –  anywhere             anywhere            icmp echo-request
DROP       tcp  –  anywhere             anywhere            tcp dpts:nfs:2050
DROP       tcp  –  anywhere             anywhere            tcp dpts:x11:6063
DROP       tcp  –  anywhere             anywhere            tcp dpts:afs3-fileserver:7010
ACCEPT     tcp  –  anywhere             anywhere            tcp dpts:1024:65535
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:www
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:https
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:7070
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:http-alt
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:8100
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:webmin
ACCEPT     udp  –  anywhere             anywhere            udp dpt:netbios-ns
ACCEPT     udp  –  anywhere             anywhere            udp dpt:netbios-dgm
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:netbios-ssn
ACCEPT     tcp  –  anywhere             anywhere            tcp dpt:microsoft-ds
ACCEPT     tcp  –  anywhere             anywhere            tcp dpts:ftp-data:ftp
ACCEPT     udp  –  anywhere             anywhere            udp dpts:20:fsp

Regards,

janv
Employee
Employee
I also hit the same issue, with FTP showing empty directory listing for "Alfresco" and "AVM" (using non-privileged port, on Mac OS X). If you're not trying to use CIFS (and you see a CIFS failure on startup) then try explicitly disabling CIFS.

Regards,
Jan