FTP - empty directory listing
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 12:29 AM
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:
Any ideas on what I am doing wrong here? Thanks.
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.
Labels:
- Labels:
-
Archive
8 REPLIES 8
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 04:23 AM
Try running the server as root or making sure CIFS is working ok - it's a quirk we're looking into.
Mike
Mike

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 05:46 AM
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.
- 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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-26-2009 09:07 PM
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?
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?

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-27-2009 02:41 AM
Yeap. I´m running the server as root.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-28-2009 03:06 PM
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.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-30-2009 08:47 PM
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.

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-31-2009 04:08 PM
my complete iptables list is:
(not all are needed for a working FTP)
Regards,
(not all are needed for a working FTP)
iptables –listChain INPUT (policy DROP)target prot opt source destinationACCEPT all – anywhere anywhereACCEPT tcp – anywhere anywhere tcp flags:ACK/ACKACCEPT all – anywhere anywhere state ESTABLISHEDACCEPT all – anywhere anywhere state RELATEDACCEPT udp – anywhere anywhere udp spt:domain dpts:1024:65535ACCEPT icmp – anywhere anywhere icmp echo-replyACCEPT icmp – anywhere anywhere icmp destination-unreachableACCEPT icmp – anywhere anywhere icmp source-quenchACCEPT icmp – anywhere anywhere icmp time-exceededACCEPT icmp – anywhere anywhere icmp parameter-problemACCEPT tcp – anywhere anywhere tcp dpt:sshACCEPT tcp – anywhere anywhere tcp dpt:authACCEPT icmp – anywhere anywhere icmp echo-requestDROP tcp – anywhere anywhere tcp dpts:nfs:2050DROP tcp – anywhere anywhere tcp dpts:x11:6063DROP tcp – anywhere anywhere tcp dpts:afs3-fileserver:7010ACCEPT tcp – anywhere anywhere tcp dpts:1024:65535ACCEPT tcp – anywhere anywhere tcp dpt:wwwACCEPT tcp – anywhere anywhere tcp dpt:httpsACCEPT tcp – anywhere anywhere tcp dpt:7070ACCEPT tcp – anywhere anywhere tcp dpt:http-altACCEPT tcp – anywhere anywhere tcp dpt:8100ACCEPT tcp – anywhere anywhere tcp dpt:webminACCEPT udp – anywhere anywhere udp dpt:netbios-nsACCEPT udp – anywhere anywhere udp dpt:netbios-dgmACCEPT tcp – anywhere anywhere tcp dpt:netbios-ssnACCEPT tcp – anywhere anywhere tcp dpt:microsoft-dsACCEPT tcp – anywhere anywhere tcp dpts:ftp-data:ftpACCEPT udp – anywhere anywhere udp dpts:20:fsp
Regards,
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-05-2009 06:24 AM
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
Regards,
Jan
