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