cancel
Showing results for 
Search instead for 
Did you mean: 

FTP Port Binding

ben00001982
Champ in-the-making
Champ in-the-making
Hi,

I am having trouble configuring Alfresco 3.2 for FTP access. I have configured the server in file-servers.xml as follows:


   <config evaluator="string-compare" condition="FTP Server">
      <serverEnable enabled="true"/>
      <!– Run on a non-privileged port –>
      <port>2121</port>
      <bindto>192.168.1.11</bindto>
      <!– IPv6 support –>
      <IPv6 state="false"/>
      <!– FTP authentication –>
      <!– Available types are 'alfresco' and 'passthru' –>
      <authenticator type="alfresco"/>
      <!– FTP server debug settings –>
      <!– Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file –>
      <debug flags="File,Search,Error,Directory,Info,DataPort"/>
   </config>

However the server is unable to bind to the port as shown in the log below:

10:44:32,595 DEBUG [org.alfresco.fileserver] [FTP] FTP Socket error : java.net.BindException: Permission denied
10:44:32,597 DEBUG [org.alfresco.fileserver] java.net.BindException: Permission denied
10:44:32,597 DEBUG [org.alfresco.fileserver]    at java.net.PlainSocketImpl.socketBind(Native Method)
10:44:32,598 DEBUG [org.alfresco.fileserver]    at java.net.PlainSocketImpl.bind(PlainSocketImpl.java:365)
10:44:32,598 DEBUG [org.alfresco.fileserver]    at java.net.ServerSocket.bind(ServerSocket.java:319)
10:44:32,598 DEBUG [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:185)
10:44:32,598 DEBUG [org.alfresco.fileserver]    at java.net.ServerSocket.<init>(ServerSocket.java:141)
10:44:32,598 DEBUG [org.alfresco.fileserver]    at org.alfresco.jlan.ftp.FTPServer.run(FTPServer.java:561)
10:44:32,599 DEBUG [org.alfresco.fileserver]    at java.lang.Thread.run(Thread.java:619)

I have tried a range of port numbers in the unprivileged range and yet the server is still unable to bind to the port.
Has anybody encountered this problem, or even better know the solution!!!

Many thanks,
Ben Trenchard
2 REPLIES 2

mrogers
Star Contributor
Star Contributor
Which "file-servers.xml" file have you changed?   

FTP is most easily configured through alfresco-global.properties on 3.2.

robain
Champ in-the-making
Champ in-the-making
i am using file-servers-custom.xml in shared…/extension/ directory and getting the same results. tried updating the default file in WEB-INF../ and still same results. trying on port 1121


<alfresco-config area="file-servers">

<config evaluator="string-compare" condition="FTP Server">
      <serverEnable enabled="${ftp.enabled}"/>

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

          <!– IPv6 support –>
          <IPv6 state="${ftp.ipv6}"/>

      <!– FTP authentication –>
      <!– Available types are 'alfresco' and 'passthru' –>
      <authenticator type="alfresco"/>

      <!– FTP server debug settings –>
      <!– Enable 'log4j.logger.org.alfresco.fileserver=debug' in log4j.properties file –>
      <!–
      <debug flags="File,Search,Error,Directory,Info,DataPort"/>
      –>
   </config>

</alfresco-config>