Results 1 to 8 of 8

Thread: Connection refused

  1. #1

    Connection refused


    I got this error in the arbiter log. Does anyone know how to resolve this? No webui to see ~> unable to connect.
    (A fresh Shinken installation via curl on a fresh ubuntu 12.04 remote machine)

    Thanks!

    2012-10-18 12:48:34,657 [1350557314] Warning : Printing stored debug messages prior to our daemonization
    2012-10-18 12:48:35,052 [1350557315] Critical : I got an unrecoverable error. I have to exit
    2012-10-18 12:48:35,059 [1350557315] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
    2012-10-18 12:48:35,060 [1350557315] Critical : Back trace of it: Traceback (most recent call last):
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 442, in main
    self.do_mainloop()
    File "/usr/local/shinken/shinken/daemon.py", line 244, in do_mainloop
    self.do_loop_turn()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 463, in do_loop_turn
    self.run()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 556, in run
    self.init_db()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 854, in init_db
    con = Connection('localhost&#039
    File "/usr/local/lib/python2.7/dist-packages/pymongo-2.3-py2.7-linux-x86_64.egg/pymongo/connection.py", line 303, in __init__
    self.__find_node(seeds)
    File "/usr/local/lib/python2.7/dist-packages/pymongo-2.3-py2.7-linux-x86_64.egg/pymongo/connection.py", line 666, in __find_node
    raise AutoReconnect(', '.join(errors))
    AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused
    2012-10-18 12:48:35,511 [1350557315] Warning : Printing stored debug messages prior to our daemonization
    2012-10-18 12:48:35,520 [1350557315] Warning : IOError(2, 'No such file or directory&#039
    2012-10-18 12:55:55,203 [1350557755] Warning : Printing stored debug messages prior to our daemonization

  2. #2
    Administrator Frescha's Avatar
    Join Date
    May 2011
    Posts
    183

    Re: Connection refused

    AutoReconnect: could not connect to localhost:27017: [Errno 111] Connection refused ....
    MongoDB is available?



  3. #3

    Re: Connection refused

    No it wasn't thanks!
    But now I'm back to the old issue with the receiver ... !?

    2012-10-18 13:20:25,740 [1350559225] Critical : I got an unrecoverable error. I have to exit
    2012-10-18 13:20:25,746 [1350559225] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
    2012-10-18 13:20:25,756 [1350559225] Critical : Back trace of it: Traceback (most recent call last):
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 442, in main
    self.do_mainloop()
    File "/usr/local/shinken/shinken/daemon.py", line 244, in do_mainloop
    self.do_loop_turn()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 463, in do_loop_turn
    self.run()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 566, in run
    srv = run(host=self.http_host, port=self.http_port, server=self.http_backend)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 2203, in run
    res = server.run(app)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 2088, in run
    return sa(self.host, self.port, **self.options).run(handler)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 1907, in run
    srv.serve_forever()
    File "/usr/lib/python2.7/SocketServer.py", line 225, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
    error: (4, 'Interrupted system call&#039
    2012-10-18 13:20:32,519 [1350559232] Error : Traceback (most recent call last):
    File "/usr/local/shinken/shinken/satellitelink.py", line 133, in put_conf
    self.con.put_conf(conf)
    File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 381, in __call__
    return self.__send(self.__name, args, kwargs)
    File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 455, in _invokePYRO
    self.adapter.bindToURI(self.URI)
    File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 290, in bindToURI
    raise ProtocolError('connection failed&#039
    ProtocolError: connection failed
    2012-10-18 13:20:32,522 [1350559232] Error : [All] Dispatching failed for receiver receiver-1
    2012-10-18 13:20:32,834 [1350559232] Error : Traceback (most recent call last):
    File "/usr/local/shinken/shinken/satellitelink.py", line 133, in put_conf
    self.con.put_conf(conf)
    File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 381, in __call__
    return self.__send(self.__name, args, kwargs)
    File "/usr/lib/pymodules/python2.7/Pyro/core.py", line 455, in _invokePYRO
    self.adapter.bindToURI(self.URI)
    File "/usr/lib/pymodules/python2.7/Pyro/protocol.py", line 290, in bindToURI
    raise ProtocolError('connection failed&#039
    ProtocolError: connection failed
    2012-10-18 13:20:32,834 [1350559232] Error : [All] Dispatching failed for receiver receiver-1
    2012-10-18 13:20:37,484 [1350559237] Warning : Printing stored debug messages prior to our daemonization
    2012-10-18 13:20:38,230 [1350559238] Warning : Printing stored debug messages prior to our daemonization

  4. #4
    Administrator Frescha's Avatar
    Join Date
    May 2011
    Posts
    183

    Re: Connection refused

    pyro version?

  5. #5

    Re: Connection refused

    Pyro==3.14
    Used curl to install Shinken ...

  6. #6
    Administrator Frescha's Avatar
    Join Date
    May 2011
    Posts
    183

    Re: Connection refused

    Please try to update your pyro
    Pyro >= 4.0, if possible 4.9 or 4.14 more informations under http://www.shinken-monitoring.org/wi...requisites_1_2

  7. #7
    Administrator
    Join Date
    Dec 2011
    Posts
    278

    Re: Connection refused

    Hello,

    The receiver error is simply that you must not have started a receiver. ;-)
    Shinken will not start if you have a receiver defined in your shinken-specific.cfg and do not start the receiver daemon.

    If you are not using passive data acquisition, just comment out your receiver daemon in the shinken-specific.cfg.

    Or alternatively start your receiver along with the rest of your daemons (poller, arbiter, scheduler, broker, reactionner)

    Shinken failing to start if a receiver is missing is a minor issue that is planned to be fixed in the next version 1.4. Shinken should start anyway and periodically check to see if the receiver becomes online instead of blocking startup+looping and waiting for the receiver to become online.

    Cheers,

    xkilian

  8. #8

    Re: Connection refused

    Thanks for your answers.
    The receiver is started automatically by the /etc/init.d/shinken script. Uncommenting it in config doesn't work and starting the daemons seperately and without the receiver results in the following error:

    2012-10-18 16:10:39,002 [1350569438] Critical : I got an unrecoverable error. I have to exit
    2012-10-18 16:10:39,008 [1350569439] Critical : You can log a bug ticket at https://github.com/naparuba/shinken/issues/new to get help
    2012-10-18 16:10:39,013 [1350569439] Critical : Back trace of it: Traceback (most recent call last):
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 442, in main
    self.do_mainloop()
    File "/usr/local/shinken/shinken/daemon.py", line 244, in do_mainloop
    self.do_loop_turn()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 463, in do_loop_turn
    self.run()
    File "/usr/local/shinken/shinken/daemons/skonfdaemon.py", line 566, in run
    srv = run(host=self.http_host, port=self.http_port, server=self.http_backend)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 2203, in run
    res = server.run(app)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 2088, in run
    return sa(self.host, self.port, **self.options).run(handler)
    File "/usr/local/shinken/shinken/webui/bottle.py", line 1907, in run
    srv.serve_forever()
    File "/usr/lib/python2.7/SocketServer.py", line 225, in serve_forever
    r, w, e = select.select([self], [], [], poll_interval)
    error: (4, 'Interrupted system call&#039
    2012-10-18 16:10:46,635 [1350569446] Warning : Add failed attempt to scheduler-1 (1/3) connection lost
    2012-10-18 16:10:46,636 [1350569446] Warning : Add failed attempt to reactionner-1 (1/3) connection failed
    2012-10-18 16:10:46,636 [1350569446] Warning : Add failed attempt to poller-1 (1/3) connection failed
    2012-10-18 16:10:46,637 [1350569446] Warning : Add failed attempt to broker-1 (1/3) connection failed

    I aso treid nearly every pyro version available but had no luck. I could'nt found Pyro4 4.14 only 4.12 and 4.15. Same with 4.9. I also tried Pyro 3.14 and 3.16
    Nothing worked, no webui and Interrupted system call error on Ubuntu, Debian and CentOS.
    I try to run this on a remote machine, is there anything I have to add in the shinken-config file? I tried to replace the address of the daemons with the ip of the remotehost. I checked netstat, proccesses, telnet, iptables, firewall ~ everything seems running as supposed to.
    I'm kind of frustrated now, nothing works since nearly one week. Seems like I never will get this running ...

    Thanks for help.

Posting Permissions

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