Results 1 to 2 of 2

Thread: [RESOLVED]Problem to configure HA

  1. #1
    Junior Member
    Join Date
    Aug 2014
    Posts
    19

    [RESOLVED]Problem to configure HA

    Hi All,

    I have a problem to configure my HA with 2 servers.
    I've followed the tuto http://shinkenlab.io/online-course-4-high-availability/

    but only my daemon arbiter-master stop after a start of shinken..
    Of course I copy the same configuration on my spare server by scp.

    My config :
    arbiter-master.cfg

    define arbiter {
    arbiter_name arbiter-master
    #host_name node1 ; CHANGE THIS if you have several Arbiters
    address 10.38.231.189 ; DNS name or IP
    port 7770
    spare 0 ; 1 = is a spare, 0 = is not a spare

    use_ssl 0
    hard_ssl_name_check 0
    }
    arbiter-spare.cfg
    define arbiter {
    arbiter_name arbiter-spare
    #host_name node1 ; CHANGE THIS if you have several Arbiters
    address 10.38.231.191 ; DNS name or IP
    port 7770
    spare 1 ; 1 = is a spare, 0 = is not a spare

    use_ssl 0
    hard_ssl_name_check 0
    }
    on my log file :

    arbiterd.log

    [1410854467] INFO: [Shinken] Starting HTTP daemon
    [1410854467] INFO: [Shinken] Waiting for master death
    [1410854467] INFO: [Shinken] I'll wait master for 180 seconds
    [1410854467] ERROR: [Shinken] The HTTP daemon failed with the error Error: Sorry, the port 7770 is not free: No socket could be created, exiting
    [1410854467] ERROR: [Shinken] Back trace of this error: Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/daemon.py", line 872, in http_daemon_thread
    self.http_daemon.run()
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/http_daemon.py", line 283, in run
    self.srv.run()
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/http_daemon.py", line 123, in run
    raise PortNotFree(msg)
    PortNotFree: Error: Sorry, the port 7770 is not free: No socket could be created

    [1410854766] INFO: [Shinken] Using the local log file '/var/log/shinken/arbiterd.log'
    [1410854766] WARNING: [Shinken] Printing stored debug messages prior to our daemonization
    [1410854766] INFO: [Shinken] Waiting for master death
    [1410854766] INFO: [Shinken] I'll wait master for 180 seconds
    [1410854766] INFO: [Shinken] Starting HTTP daemon
    [1410854766] ERROR: [Shinken] The HTTP daemon failed with the error Error: Sorry, the port 7770 is not free: No socket could be created, exiting
    [1410854766] ERROR: [Shinken] Back trace of this error: Traceback (most recent call last):
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/daemon.py", line 872, in http_daemon_thread
    self.http_daemon.run()
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/http_daemon.py", line 283, in run
    self.srv.run()
    File "/usr/local/lib/python2.7/dist-packages/Shinken-2.0.3-py2.7.egg/shinken/http_daemon.py", line 123, in run
    raise PortNotFree(msg)
    PortNotFree: Error: Sorry, the port 7770 is not free: No socket could be created
    it's seems that the port 7770 is used, but when check the port it's not used ......

    on the master server:
    root@shinken-central:/etc/shinken/arbiters# netstat -lntpa | grep 777
    tcp 0 0 0.0.0.0:7771 0.0.0.0:* LISTEN 16368/python
    tcp 0 0 0.0.0.0:7772 0.0.0.0:* LISTEN 16460/python
    tcp 0 0 0.0.0.0:7773 0.0.0.0:* LISTEN 16503/python
    tcp 0 0 10.38.231.189:60826 10.38.231.191:7773 ESTABLISHED 16460/python
    tcp 0 0 10.38.231.189:7773 10.38.231.189:50674 ESTABLISHED 16503/python
    tcp 0 0 10.38.231.189:50674 10.38.231.189:7773 ESTABLISHED 16460/python
    tcp 0 0 10.38.231.189:54151 10.38.231.189:7771 ESTABLISHED 16460/python
    tcp 0 0 10.38.231.189:45648 10.38.231.190:7771 ESTABLISHED 16460/python
    tcp 0 0 10.38.231.189:7773 10.38.231.191:42944 ESTABLISHED 16503/python
    tcp 0 0 10.38.231.189:7771 10.38.231.189:54151 ESTABLISHED 16368/python
    tcp 0 0 10.38.231.189:7772 10.38.231.191:50485 ESTABLISHED 16460/python
    tcp 0 0 10.38.231.189:7771 10.38.231.191:44364 ESTABLISHED 16368/python
    tcp 0 0 10.38.231.189:34492 10.38.231.191:7771 ESTABLISHED 16460/python
    root@shinken-central:/etc/shinken/arbiters#
    on the spare server
    root@shinken-central-spare:/etc/shinken# netstat -lntpa | grep 777
    tcp 0 0 10.38.231.191:7770 0.0.0.0:* LISTEN 5773/python
    tcp 0 0 0.0.0.0:7771 0.0.0.0:* LISTEN 5587/python
    tcp 0 0 0.0.0.0:7772 0.0.0.0:* LISTEN 5687/python
    tcp 0 0 0.0.0.0:7773 0.0.0.0:* LISTEN 5730/python
    tcp 0 0 10.38.231.191:7773 10.38.231.189:60826 ESTABLISHED 5730/python
    tcp 0 0 10.38.231.191:50485 10.38.231.189:7772 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:51364 10.38.231.191:7773 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:44364 10.38.231.189:7771 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:7771 10.38.231.191:32930 ESTABLISHED 5587/python
    tcp 0 0 10.38.231.191:32930 10.38.231.191:7771 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:33255 10.38.231.190:7771 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:7771 10.38.231.189:34492 ESTABLISHED 5587/python
    tcp 0 0 10.38.231.191:7773 10.38.231.191:51364 ESTABLISHED 5730/python
    tcp 0 0 10.38.231.191:44156 10.38.231.191:7772 ESTABLISHED 5773/python
    tcp 0 0 10.38.231.191:7772 10.38.231.191:44156 ESTABLISHED 5687/python
    tcp 0 0 10.38.231.191:42944 10.38.231.189:7773 ESTABLISHED 5773/python
    tcp6 0 0 :::37775 :::* LISTEN 1724/rpc.statd
    Can anyone help me plz ? ;D

  2. #2
    Junior Member
    Join Date
    Aug 2014
    Posts
    19

    Re: Problem to configure HA

    I've forgot to uncomment hostname option on the arbitrer config

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •