[Shinken-devel] Changing workdir, losing pid
Status: Beta
Brought to you by:
naparuba
From: Simon S. <sim...@in...> - 2011-10-26 08:35:53
|
Hello, I did a fresh install of Shinken 0.8.1/Thruk 1.1.1 on an Ubuntu Server 10.04 LTS based on the nicolargo's script (great job, by the way). For now, I just added some services on localhost (the server itself). Everything works fine until the server reboot (daily task). Then the daemons are just unable to restart with this kind of error in the "/tmp/bad_start_for_" log files : Arbiter daemon : 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/lib/python2.6/dist-packages/shinken/daemons/arbiterdaemon.py", line 440, in main self.do_daemon_init_and_start() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 427, in do_daemon_init_and_start self.change_to_workdir() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 239, in change_to_workdir raise InvalidWorkDir(e) InvalidWorkDir: [Errno 2] No such file or directory: '/var/run/shinken' Traceback (most recent call last): File "/usr/bin//shinken-arbiter", line 101, in <module> daemon.main() File "/usr/local/lib/python2.6/dist-packages/shinken/daemons/arbiterdaemon.py", line 440, in main self.do_daemon_init_and_start() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 427, in do_daemon_init_and_start self.change_to_workdir() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 239, in change_to_workdir raise InvalidWorkDir(e) shinken.pyro_wrapper.InvalidWorkDir: [Errno 2] No such file or directory: '/var/run/shinken' Broker daemon : [Broker] Using working directory : /var/lib/shinken Successfully changed to workdir: /var/lib/shinken opening pid file: /var/run/shinken/brokerd.pid /var/run/shinken/brokerd.pid 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/lib/python2.6/dist-packages/shinken/daemons/brokerdaemon.py", line 604, in main self.do_daemon_init_and_start() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 428, in do_daemon_init_and_start self.check_parallel_run() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 299, in check_parallel_run self.__open_pidfile() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 284, in __open_pidfile raise InvalidPidFile(e) InvalidPidFile: [Errno 2] No such file or directory: '/var/run/shinken/brokerd.pid' Traceback (most recent call last): File "/usr/bin//shinken-broker", line 74, in <module> daemon.main() File "/usr/local/lib/python2.6/dist-packages/shinken/daemons/brokerdaemon.py", line 604, in main self.do_daemon_init_and_start() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 428, in do_daemon_init_and_start self.check_parallel_run() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 299, in check_parallel_run self.__open_pidfile() File "/usr/local/lib/python2.6/dist-packages/shinken/daemon.py", line 284, in __open_pidfile raise InvalidPidFile(e) shinken.daemon.InvalidPidFile: [Errno 2] No such file or directory: '/var/run/shinken/brokerd.pid' Maybe, I just miss something in the main configuration of Shinken (the default configuration has been kept since the setup). Thanks for your help, Regards, Simon |