ConfigurationCIFSFTP This is a report of my own experiments to obviate BindExceptions. Having installed Alfresco on my Linux box, I was not really surprised to receive several java.net.BindException: Address already in use exceptions, as both Alfresco and my smbd/nmbd and ftp server were trying to bind to the same ports with the 'wildcard' IP address (0.0.0.0).
To allow co-existence, I decided to firstly, switch off the Alfresco netBIOSSMB service in favour of the Linux nmbd. The method is described on other forum posts, all that is required is to edit WEB-INF/classes/alfresco/file-servers.xml (within alfresco.war) and force tcpipSMB: Locate the following lines:
for the CIFS/smbd conflict, I decided to create an extra IP address just for Alfresco, and change the 'wildcard' IP bind address to a specific single address. My original network interface was configured thus:
# ifconfig eth0 eth0 Link encap:Ethernet HWaddr 00:50:8D:F3:B4:71 inet addr:192.168.129.2 Bcast:192.168.129.255 Mask:255.255.255.0 UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 [snip]
The similar task for the Alfresco CIFS server is accomplished by more editing of WEB-INF/classes/alfresco/file-servers.xml It is just a case of adding 'bindto' attributes in the correct spots and narrowing the broadcast address (necessary?) For the CIFS Server, I changed the broadcast address to that of my LAN and added a bindto attribute below:
7001 is my appserver's HTTP port. The nearest equivalent command on MS Windows (or Unix) would be netstat -an.
Share browsing is now a bit iffy, I'm not sure why, but mounting/mapping of the network drives as \\brunel_a\Alfresco etc seems to work OK.
Hi! We used Eric's article to bind different ethernet interfaces to Alfresco CIFS and native Linux samba and it didn't work! My friend (Tatjana K.) and I (Boris B.) did everything like Eric said(bring up additonal eth inteface,bind Alfresco CIFS to one interface, bind Linux SMB to another interface) but that didn't work. Linux distribution we use is openSuse11.1 and Alfresco Community release 3.2. Problem was that if you start Linux SMB first it realy bind to specific interface we assing it to in /etc/samba/smb.conf but when we start Alfresco, it don't bind it to specific interface and Alfresco CIFS don't work.
and as you can see Alfresco bind 10.0.14.227:445 and 10.0.14.227:137 and Linux SMB bind 10.0.14.216:139 and 10.0.14.216:445. From Windows explorer we now can acces both \\10.0.14.227\alfresco and \\10.0.14.216\samba locatiion on our Linux server.
No other changes are made but modifiying cifs.binto. Now everything works perfectly!!!
We hope that this will help you!!!
Once again I want to thanks Tatjana K. for solving this very important problem!!!