Closed javafanboy closed 4 months ago
Still no idea why this error occurs on MacOS but if anybody else experience the same problem a work-around is to disable Coherence use of multicast by using the WKA setting of cluster member discovery. As I am running on a single laptop for my development I simply set -Dtangosol.coherence.wka=127.0.0.1
Hi, what are you firewall settings? Also normally multicast is enabled on Mac, but could be disabled in your case. Could you check the output of ifconfig on the interface you're using? Thanks
This is a "company managed" laptop so there COULD be some firewall settings that I am not aware of. The ifconfig output for the default interface (that I assume Java/Coherence will use) is:
ifconfig
lo0: flags=8049<UP,LOOPBACK,RUNNING,MULTICAST> mtu 16384
options=1203<RXCSUM,TXCSUM,TXSTATUS,SW_TIMESTAMP>
inet 127.0.0.1 netmask 0xff000000
inet6 ::1 prefixlen 128
inet6 fe80::1%lo0 prefixlen 64 scopeid 0x1
nd6 options=201<PERFORMNUD,DAD>
gif0: flags=8010<POINTOPOINT,MULTICAST> mtu 1280
stf0: flags=0<> mtu 1280
anpi2: flags=8863<UP,BROADCAST,SMART,RUNNING,SIMPLEX,MULTICAST> mtu 1500
options=400
Ok, Coherence will likely pick en0 and it is multicast-capable.
What about firewall? Does it allow inbound multicast traffic? I think the setting is "Stealth mode" or some such.
Yes "Stealth Mode" is enabled and not possible to disable so if that blocks "multicast" then we know the reason for the problem... big thanks for the sugestion!
Setting the wka option to local host is a quite ok workaround for local testing so no big deal!
On Tue, Apr 23, 2024 at 6:36 PM Maurice Gamanho @.***> wrote:
Ok, Coherence will likely pick en0 and it is multicast-capable.
What about firewall? Does it allow inbound multicast traffic? I think the setting is "Stealth mode" or some such.
— Reply to this email directly, view it on GitHub https://github.com/oracle/coherence/issues/121#issuecomment-2072888043, or unsubscribe https://github.com/notifications/unsubscribe-auth/AADXQF2QOIQG4CSDJRLJ33TY62EZVAVCNFSM6AAAAABGFFEFYSVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDANZSHA4DQMBUGM . You are receiving this because you authored the thread.Message ID: @.***>
Thanks again for the help!
After a long period of using a Windows I just switched back to using Mac (this time ARM M3) and ran into a problem I have never experienced before starting Coherence locally :-(
This is using Coherence CE 24.03, Java Open JDK 21 and MacOS Sonoma 14.3.1
When I run "mvn exec:java -Dexec.mainClass="com.tangosol.net.DefaultCacheServer" I get an error message saying "multicast networking appears to be inoperable on interface 192.168.1.19 as this process isn't receiving even its own transmissions"...
Just for fun I tested using the coherence console app and to my surprise it can without any problem start a 3 node cluster, I could insert data etc. so there is nothing wrong with the MacOS setup it seems so the question is why I get this error when I try to do it myself using mvn rather than with the command line client?!
I also tried the suggested work-around of setting "set JAVA_TOOL_OPTS="-Djava.net.preferIPv4Stack=true" but it did not make any difference so the problem seem to be something else...
I also tried copying and running the exact same project on one of my Windows boxes and there it ran as it always have without any errors....
Probably some really silly Mac beginners misstake but right now I do not see it... suggestions appreciated!