Open fpeyre opened 7 years ago
Ok for more information:
My use case is not just a simple restart. I make systemctl start alignak-scheduler once I make a restart, everything seems work I make systemctl start alignak-scheduler I make restart -> We have the error message
I join the log in a file schedulerd.log.txt brokerd.log.txt
In the scheduler log, the interesting error is:
[2017-03-23 17:34:30 UTC] ERROR: [alignak.daemon] The HTTP daemon port is not free...
[2017-03-23 17:34:30 UTC] ERROR: [alignak.daemon] The HTTP daemon port is not free: Error: Sorry, the port 0.0.0.0/7768 is not free
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/alignak/daemon.py", line 784, in setup_communication_daemon
ssl_cert, server_dh, self.daemon_thread_pool_size)
File "/usr/lib/python2.7/dist-packages/alignak/http/daemon.py", line 122, in __init__
raise PortNotFree(msg)
PortNotFree: Error: Sorry, the port 0.0.0.0/7768 is not free
[2017-03-23 17:34:30 UTC] CRITICAL: [alignak.daemon] I got an unrecoverable error. I have to exit.
[2017-03-23 17:34:30 UTC] CRITICAL: [alignak.daemon] You can get help at https://github.com/Alignak-monitoring/alignak
[2017-03-23 17:34:30 UTC] CRITICAL: [alignak.daemon] If you think this is a bug, create a new issue including as much details as possible (version, configuration, ..
[2017-03-23 17:34:30 UTC] CRITICAL: [alignak.daemon] -----
[2017-03-23 17:34:30 UTC] CRITICAL: [alignak.daemon] Back trace of the error: Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/alignak/daemons/schedulerdaemon.py", line 391, in main
self.uri = self.http_daemon.uri
AttributeError: 'NoneType' object has no attribute 'uri'
This problem happens once the scheduler got started and received a configuration. All the previous start/stop of the daemon do not raise any problem.
Note that the broker has the same behaviour 😉
And I think that this may be related with https://github.com/Alignak-monitoring/alignak/issues/673
I install Alignak with the package for ubuntu 16.04 (At the moment when I make this issue : alignak-all_0.2-1.1489300848.c527ae7_all.deb )
I have some issues when i want restart with systemctl the scheduler and the broker
For the scheduler, after
systemctl restart alignak-scheduler
, I makeI make the same thing for the broker. We have a different error message
I don't know if it's specific to the package or alignak itself. If I am at the wrong place, i will create the issue on Alignak.
I am available to make more test or give you more information