cancel
Showing results for 
Search instead for 
Did you mean: 

FTPS Error

kamal1387
Champ in-the-making
Champ in-the-making
ERROR [org.alfresco.fileserver] java.net.BindException: Address already in use
java.net.BindException: Address already in use
        at java.net.PlainSocketImpl.socketBind(Native Method)
        at java.net.AbstractPlainSocketImpl.bind(AbstractPlainSocketImpl.java:336)
        at java.net.Socket.bind(Socket.java:594)
        at java.net.Socket.<init>(Socket.java:390)
        at java.net.Socket.<init>(Socket.java:293)
        at org.alfresco.jlan.ftp.FTPDataSession.getSocket(FTPDataSession.java:298)
        at org.alfresco.jlan.ftp.FTPSrvSession.procMachineListingContents(FTPSrvSession.java:3136)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:5056)
        at java.lang.Thread.run(Thread.java:636)
15:46:34,025 ERROR [org.alfresco.fileserver] java.io.IOException: No free data session ports
java.io.IOException: No free data session ports
        at org.alfresco.jlan.ftp.FTPServer.allocateDataSession(FTPServer.java:247)
        at org.alfresco.jlan.ftp.FTPSrvSession.procPort(FTPSrvSession.java:1074)
        at org.alfresco.jlan.ftp.FTPSrvSession.run(FTPSrvSession.java:4891)
        at java.lang.Thread.run(Thread.java:636)
15:46:42,364 ERROR [org.alfresco.fileserver] java.n
4 REPLIES 4

mrogers
Star Contributor
Star Contributor
Do you have a question?

That exception is caused by the ports required for FTPS already being in use.  Either you need to shut down the program that is using the ports, reconfigure alfresco to use different ports or turn off ftp so you get rid of the error.

kamal1387
Champ in-the-making
Champ in-the-making
### FTP Server Configuration ###
ftp.enabled=true
ftp.port=2121

# FTP data port range, a value of 0:0 disables the data port range and will use the next available port
# Valid range is 1024-65535
ftp.dataPortFrom=1433
ftp.dataPortTo=1434

# FTPS support (enabled when the keystore, truststore and passphrase are set)
ftp.keyStore=/alfresco/ftps/keystore
ftp.trustStore=/alfresco/ftps/truststore
ftp.passphrase=alfresco
ftp.requireSecureSession=true
ftp.sslEngineDebug=false
————————
No other application is setup on this server and the above mentioned port used only for alfresco, we still get this error.

mrogers
Star Contributor
Star Contributor
So if nothing else is using 1143 before you start alfresco what else have you put on that port?
Which version of Alfresco are you using?
And which file is your posting an extract from?
How have you installed and why is this posting in the "Development Environment" forum?

You need to think about the information required by others before posting :!:

kamal1387
Champ in-the-making
Champ in-the-making
Port 1433 1434 are used only for FTPS on alfresco. No services is running on the mentioned port.
We are using Alfresco community 3.4.
file-server.properties is the file in which posting is extract from.