Hi Applied the patch , not working , get the git shinken-arbiter : 0.6.5+ with pyro : 3.15 bad_ass_arbiter
Creating packs for realms Number of hosts in the realm All : 308 Things look okay - No serious problems were detected during the pre-flight check Configuration Loaded Successfully changed to workdir: /var/lib/shinken opening pid file: /var/lib/shinken/arbiterd.pid /var/lib/shinken/arbiterd.pid stale pidfile exists (no or invalid or unreadable content). reusing it. Initializing Pyro connection with host:194.47.210.110 port:7770 ssl:False !THIS IS SITE B! CRITICAL ERROR : I got an non recoverable error. I must exit You can log a bug ticket at https://sourceforge.net/apps/trac/shinken/newticket for geting help Back trace of it: Traceback (most recent call last): File "/usr/local/lib64/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 437, in main self.do_daemon_init_and_start() File "/usr/local/lib64/python2.6/site-packages/shinken/daemon.py", line 430, in do_daemon_init_and_start self.setup_pyro_daemon() File "/usr/local/lib64/python2.6/site-packages/shinken/daemon.py", line 475, in setup_pyro_daemon self.pyro_daemon = pyro.ShinkenPyroDaemon(self.host, self.port, ssl_conf.use_ssl) File "/usr/local/lib64/python2.6/site-packages/shinken/pyro_wrapper.py", line 79, in __init__ raise PortNotFree(msg) PortNotFree: Sorry, the port 7770 is not free: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested address Traceback (most recent call last): File "/usr/local/bin/shinken-arbiter", line 101, in <module> daemon.main() File "/usr/local/lib64/python2.6/site-packages/shinken/daemons/arbiterdaemon.py", line 437, in main self.do_daemon_init_and_start() File "/usr/local/lib64/python2.6/site-packages/shinken/daemon.py", line 430, in do_daemon_init_and_start self.setup_pyro_daemon() File "/usr/local/lib64/python2.6/site-packages/shinken/daemon.py", line 475, in setup_pyro_daemon self.pyro_daemon = pyro.ShinkenPyroDaemon(self.host, self.port, ssl_conf.use_ssl) File "/usr/local/lib64/python2.6/site-packages/shinken/pyro_wrapper.py", line 79, in __init__ raise PortNotFree(msg) shinken.pyro_wrapper.PortNotFree: Sorry, the port 7770 is not free: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested address Vänliga hälsningar ______________________ Jörg Schulz Systemtekniker IT-Sektion Linnéuniversitetet 391 82 Kalmar / 351 95 Växjö 0480-44 62 44 Direkt 0705-946244 Mobil jorg.sch...@lnu.se From: nap [mailto:napar...@gmail.com] Sent: den 23 september 2011 14:04 To: shinken-devel@lists.sourceforge.net Subject: Re: [Shinken-devel] HA config On Fri, Sep 23, 2011 at 1:55 PM, Jörg Schulz <jorg.sch...@lnu.se> wrote: Hi, I did lsof -i ":7770" and nothing is running on this port , disabled firewall , reboot machine, same FAILED: shinken.pyro_wrapper.PortNotFree: Sorry, the port 7770 is not free: Couldn't start Pyro daemon: [Errno 99] Cannot assign requested address (full output is in /tmp/bad_start_for_arbiter) I don't get it ! My config ... define arbiter{ arbiter_name Arbiter-master host_name nagi address <SITE A IP> port 7770 spare 0 #modules No module for now } #the slave, waiting patiently for its master to die define arbiter{ arbiter_name Arbiter-slave host_name nilban address <SITE B IP> port 7770 spare 1 #modules No module for now } Site A is working fine , Site B not :( The linux machines site a/b are 100% identical Can you apply this patch : diff --git a/shinken/pyro_wrapper.py b/shinken/pyro_wrapper.py index b3c8ef7..4f6ae2a 100644 --- a/shinken/pyro_wrapper.py +++ b/shinken/pyro_wrapper.py @@ -67,6 +67,7 @@ try: else: prtcol = 'PYRO' + print "Initializing Pyro connection with host:%s port:%s ssl:%s" % (host, port, use_ssl) # Now the real start try: Pyro.core.Daemon.__init__(self, host=host, port=port, prtcol=prtcol, norange=True) @@ -151,6 +152,7 @@ except AttributeError, exp: # so we allow to retry during 35 sec (30 sec is the default # timewait for close sockets) while nb_try <= 35: + print "Initializing Pyro connection with host:%s port:%s ssl:%s" % (host, port, use_ssl) # And port already use now raise an exception try: Pyro.core.Daemon.__init__(self, host=host, port=port) And see the output of the arbiter? And which Pyro version are you using? (shinken-arbiter --version) Thanks, Jean Greetings Jörg ------------------------------------------------------------------------------ All of the data generated in your IT infrastructure is seriously valuable. Why? It contains a definitive record of application performance, security threats, fraudulent activity, and more. Splunk takes this data and makes sense of it. IT sense. And common sense. http://p.sf.net/sfu/splunk-d2dcopy2 _______________________________________________ Shinken-devel mailing list Shinken-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/shinken-devel