AnsweredAssumed Answered

HostAnnouncer Error

Question asked by chozero on Mar 26, 2007
I've have Alfresco installed on Linux and working except for this error:

10:21:30,021 INFO  [STDOUT] 10:21:30,018 ERROR [mailslot] HostAnnouncer error
java.net.BindException: Address already in use
        at java.net.PlainDatagramSocketImpl.bind0(Native Method)
        at java.net.PlainDatagramSocketImpl.bind(PlainDatagramSocketImpl.java:82)
        at java.net.DatagramSocket.bind(DatagramSocket.java:368)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:210)
        at java.net.DatagramSocket.<init>(DatagramSocket.java:261)
        at org.alfresco.filesys.netbios.NetBIOSDatagramSocket.<init>(NetBIOSDatagramSocket.java:72)
        at org.alfresco.filesys.netbios.NetBIOSDatagramSocket.getInstance(NetBIOSDatagramSocket.java:96)
        at org.alfresco.filesys.netbios.NetBIOSDatagram.SendDatagram(NetBIOSDatagram.java:395)
        at org.alfresco.filesys.smb.mailslot.TcpipNetBIOSHostAnnouncer.sendAnnouncement(TcpipNetBIOSHostAnnouncer.java:215)
        at org.alfresco.filesys.smb.mailslot.HostAnnouncer.run(HostAnnouncer.java:313)
10:21:30,023 INFO  [STDOUT] 10:21:30,023 ERROR [mailslot]  Check <broadcast> setting in file-servers.xml

First i had an issue of jboss not starting with samba server already running, but i followed http://wiki.alfresco.com/wiki/Changing_Bind_Addresses_and_Ports_for_Samba_and_FTP
and it worked. Now i have two IPs:


eth0      Link encap:Ethernet  HWaddr 00:11:D8:F1:8E:BE
          inet addr:192.168.1.11  Bcast:192.168.255.255  Mask:255.255.0.0
          inet6 addr: fe80::211:d8ff:fef1:8ebe/64 Scope:Link
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:7266 errors:0 dropped:0 overruns:0 frame:0
          TX packets:6335 errors:0 dropped:0 overruns:0 carrier:0
          collisions:0 txqueuelen:1000
          RX bytes:2904463 (2.7 Mb)  TX bytes:1130332 (1.0 Mb)
          Interrupt:201 Memory:d7efc000-0

eth0:0    Link encap:Ethernet  HWaddr 00:11:D8:F1:8E:BE
          inet addr:192.168.1.99  Bcast:192.168.1.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          Interrupt:201 Memory:d7efc000-0



I tried to change broadcast but it still doesn't work:


   <config evaluator="string-compare" condition="CIFS Server" replace="true">
          <serverEnable enabled="true"/>
      <host name="${localname}_A" domain="ARTE"/>
      <comment>Alfresco CIFS Server</comment>

      <!– Set to the broadcast mask for the subnet –>
      <bindto>192.168.1.99</bindto>
      <broadcast>255.255.255.0</broadcast>

      <!– Use Java socket based NetBIOS over TCP/IP and native SMB on linux –>
      <tcpipSMB platforms="linux,solaris,macosx"/>
      <netBIOSSMB bindto="192.168.1.99" platforms="linux,solaris,macosx"/>

           <!– Can be mapped to non-privileged ports, then use firewall rules to forward
                    requests from the standard ports –>
          <!–
      <tcpipSMB port="1446" platforms="linux,solaris,macosx"/>
      <netBIOSSMB sessionPort="1139" namePort="1137" datagramPort="1138" platforms="linux,solaris,macosx"/>
          –>

      <hostAnnounce interval="5"/>

      <!– Use Win32 NetBIOS interface on Windows –>
      <Win32NetBIOS/>
      <Win32Announce interval="5"/>

Now i can acces CIFS server throug its IP, but not through its name.

Outcomes