This discussion is archived
2 Replies Latest reply: Jan 8, 2010 7:08 AM by user219191 RSS

Cannot connect to the RMI registry.

user219191 Newbie
Currently Being Moderated
SunMC 3.6.1 used to work fine, now get this error when running init.es_server start:

main: Successfull in setting up firewall support
Cannot connect to the RMI registry. Please check if the port myserver:2099 is in use or the interfaces are up.
Listen failed on port: 0; nested exception is:
java.io.IOException: Unable to get Any Free Port in the Range 2000-6000
Details as below
java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:
java.io.IOException: Unable to get Any Free Port in the Range 2000-6000
* terminating execution *

netstat shows nothing on this port. Even tried es-config -A but same results.
Where to look for the source of this trouble?
  • 1. Re: Cannot connect to the RMI registry.
    796313 Newbie
    Currently Being Moderated
    Hi wrobbins2,
    wrobbins2 wrote:
    SunMC 3.6.1 used to work fine, now get this error when running init.es_server start:

    main: Successfull in setting up firewall support
    Cannot connect to the RMI registry. Please check if the port myserver:2099 is in use or the interfaces are up.
    Listen failed on port: 0; nested exception is:
    java.io.IOException: Unable to get Any Free Port in the Range 2000-6000
    Details as below
    java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:
    java.io.IOException: Unable to get Any Free Port in the Range 2000-6000
    * terminating execution *

    netstat shows nothing on this port. Even tried es-config -A but same results.
    Where to look for the source of this trouble?
    Did anything change with your NIC/interface settings? Or VPN software installed? IPMP set up? I've seen things like this happen when an interface had been flagged as online... but has no IP info assigned. SunMC is going to try to grab ports on each interface... and if one doesn't have an IP assigned it will fail.

    Regards,

    Mike.Kirk@HalcyonInc.com
  • 2. Re: Cannot connect to the RMI registry.
    user219191 Newbie
    Currently Being Moderated
    Well, I didn't think anything had changed but your response led me to recheck configuration files and multiip.dat was found to contain a private-LAN address that no longer exists.
    Removed that IP, restarted the server processes and it works fine! Thank you, Mike!