Projet

Général

Profil

xivo-ctid démarre mais s'arrête après quelques instants après l'installation du certificat SSL

Ajouté par Guillaume Bard il y a plus de 6 ans

Bonjour,

J'ai voulu installer un certificat SSL pour valider mon domaine.

Après avoir redémarré le serveur, tout fonctionne bien mais le service "xivo-ctid" passe de "started" à "stopped" après quelques instants et sur l'admin web de Xivo je vois ceci: xivo-ctid - Unmonitored.

Si j'exécute wazo-service status j'obtient ceci:

Checking database...
OK
Checking services...
running dahdi
running xivo-sysconfd
running xivo-confgend
running xivo-confd
running xivo-auth
running xivo-call-logs
running xivo-dxtora
running xivo-provd
running xivo-agid
running asterisk
running xivo-amid
running xivo-agentd
stopped xivo-ctid
running xivo-dird
running xivo-dird-phoned
running xivo-ctid-ng
running xivo-websocketd

Dans /var/log/xivo-ctid.log j'ai ceci:

Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 104, in exit
self.registerer.deregister()
File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 260, in deregister
raise exception
RegistererError: HTTPSConnectionPool(host='hostname.domain.com', port=8500): Max retries exceeded with url: /v1/agent/check/deregister/service:b2edb8c3-6f0b-44$
2018-03-10 15:49:21,356 3041 (xivo_lib_rest_client.client): AuthClient received unexpected arguments: ['service_id', 'service_key', 'key_file', 'backend']
2018-03-10 15:49:21,368 3041 (xivo_cti.remote_service): adding service xivo-ctid on localhost:9495 8e71d044-cdf1-4667-8690-144b7b29f431
2018-03-10 15:49:21,403 3041 (cti_config): Config successfully updated in 0.024956 seconds
2018-03-10 15:49:21,411 3052 (xivo_cti.bus_listener): add_callback: config.users..services..updated <bound method UserServiceManager._on_bus_services_m$
2018-03-10 15:49:21,412 3052 (xivo_cti.bus_listener): add_callback: config.users..forwards..updated <bound method UserServiceManager._on_bus_forwards_m$
2018-03-10 15:49:21,412 3052 (xivo_cti.bus_listener): add_callback: status.user <bound method UserServiceManager._on_bus_user_status_update_event of <xiv$
2018-03-10 15:49:21,413 3052 (xivo_cti.bus_listener): add_callback: calls.transfer.edited <bound method CurrentCallManager._on_bus_transfer_answered of <$
2018-03-10 15:49:21,419 3052 (xivo_cti.bus_listener): add_callback: status.agent <bound method StatusForwarder._on_bus_agent_status of <xivo_cti.services$
2018-03-10 15:49:21,419 3052 (xivo_cti.bus_listener): add_callback: status.user <bound method StatusForwarder._on_bus_user_status of <xivo_cti.services.s$
2018-03-10 15:49:21,419 3052 (xivo_cti.bus_listener): add_callback: status.endpoint <bound method StatusForwarder._on_bus_endpoint_status of <xivo_cti.se$
2018-03-10 15:49:21,419 3052 (xivo_cti.bus_listener): add_callback: service.registered.# <bound method StatusForwarder._on_bus_service_registered of <xiv$
2018-03-10 15:49:21,419 3052 (xivo_cti.bus_listener): add_callback: service.deregistered.# <bound method StatusForwarder._on_bus_service_deregistered of $
2018-03-10 15:49:21,420 3052 (xivo_cti.bus_listener): add_callback: chat.message.8e71d044-cdf1-4667-8690-144b7b29f431.*.received <bound method ChatPublis$
2018-03-10 15:49:21,420 3052 (xivo_cti.services.current_call.parser): Registering to AMI events
2018-03-10 15:49:21,420 3052 (xivo_cti.bus_listener): add_callback: config.user_line_association.created <bound method CacheUpdater.on_bus_user_line_asso$
2018-03-10 15:49:21,420 3052 (xivo.token_renewer): Creating token for "xivo-ctid" with backend "xivo_service", expiration 21600
2018-03-10 15:49:21,427 3052 (requests.packages.urllib3.connectionpool): Starting new HTTP connection (1): localhost
2018-03-10 15:49:21,428 3052 (requests.packages.urllib3.connectionpool): Starting new HTTPS connection (1): hostname.domain.com
2018-03-10 15:49:21,484 3052 (requests.packages.urllib3.connectionpool): https://hostname.domain.com:9497 "POST /0.1/token HTTP/1.1" 200 619
2018-03-10 15:49:21,489 3052 (main): STARTING XiVO CTI Server (pid 3052))
2018-03-10 15:49:21,489 3052 (main): Retrieving data
2018-03-10 15:49:21,595 3052 (requests.packages.urllib3.connectionpool): Starting new HTTPS connection (1): hostname.domain.com
2018-03-10 15:49:23,429 3052 (requests.packages.urllib3.connectionpool): Starting new HTTP connection (1): localhost
2018-03-10 15:49:24,599 3052 (xivo.token_renewer): joining token renewer thread...
2018-03-10 15:49:24,620 3052 (main): main loop has crashed
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/xivo_cti/ctiserver.py", line 456, in run
self.main_loop()
File "/usr/lib/python2.7/dist-packages/xivo_cti/ctiserver.py", line 511, in main_loop
self._init_statistics_producers()
File "/usr/lib/python2.7/dist-packages/xivo_cti/ctiserver.py", line 442, in _init_statistics_producers
self._statistics_producer_initializer.init_queue_statistics_producer(self._queue_statistics_producer)
File "/usr/lib/python2.7/dist-packages/xivo_cti/statistics/statistics_producer_initializer.py", line 30, in init_queue_statistics_producer
self._add_logged_agents(queue_statistics_producer)
File "/usr/lib/python2.7/dist-packages/xivo_cti/statistics/statistics_producer_initializer.py", line 42, in _add_logged_agents
for agent_status in self.agentd_client.agents.get_agent_statuses():
File "/usr/lib/python2.7/dist-packages/xivo_agentd_client/commands/agents.py", line 84, in get_agent_statuses
return self._execute(req, self._resp_processor.status_all)
File "/usr/lib/python2.7/dist-packages/xivo_agentd_client/commands/agents.py", line 87, in _execute
resp = self.session.send(self.session.prepare_request(req), timeout=self.timeout)
File "/usr/lib/python2.7/dist-packages/requests/sessions.py", line 609, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python2.7/dist-packages/requests/adapters.py", line 479, in send
raise ConnectTimeout(e, request=request)
ConnectTimeout: HTTPSConnectionPool(host='hostname.domain.com', port=9493): Max retries exceeded with url: /1.0/agents (Caused by ConnectTimeoutError(<requests$
2018-03-10 15:49:24,620 3052 (main): STOPPING XiVO CTI Server (pid 3052) / uptime 3 s (since Sat Mar 10 15:49:21 2018)
2018-03-10 15:49:24,620 3052 (main): Stopping the bus listener
2018-03-10 15:49:24,641 3052 (main): Closing all sockets
2018-03-10 15:49:24,641 3052 (main): Stopping all remaining threads
2018-03-10 15:49:24,641 3052 (service_discovery): waiting for the service discovery thread to complete
2018-03-10 15:49:24,650 3052 (service_discovery): Deregistering xivo-ctid from Consul services: a9169574-57d3-49ea-b4f4-9a9e2c1711a9
2018-03-10 15:49:24,651 3052 (requests.packages.urllib3.connectionpool): Starting new HTTPS connection (1): hostname.domain.com
2018-03-10 15:49:24,663 3052 (service_discovery): failed to deregister
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 104, in __exit
_
self._registerer.deregister()
File "/usr/lib/python2.7/dist-packages/xivo/consul_helpers.py", line 260, in deregister
raise exception
RegistererError: HTTPSConnectionPool(host='hostname.domain.com', port=8500): Max retries exceeded with url: /v1/agent/check/deregister/service:a9169574-57d3-49$

Voici ce que j'ai dans /var/log/xivo-agentd.log après un reboot:

2018-03-12 08:42:58,199 2073 (xivo_agent.bin.agentd): Starting xivo-agentd
2018-03-12 08:42:58,314 2073 (kombu.mixins): Connected to amqp://guest:**@127.0.0.1:5672//
2018-03-12 08:42:58,457 2073 (STDERR): /usr/lib/python2.7/dist-packages/urllib3/connectionpool.py:845: InsecureRequestWarning: Unverified HTTPS request is being made. Adding certificate verification is strongly advised. See: https://urllib3.readthedocs.io/en/latest/advanced-usage.html#ssl-warnings
2018-03-12 08:42:58,458 2073 (STDERR): InsecureRequestWarning)
2018-03-12 08:42:58,694 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:42:58,703 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:42:58,706 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:00,743 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:00,746 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:00,748 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:02,773 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:02,775 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:02,777 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:04,804 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:04,805 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:04,807 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:06,832 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:06,833 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:06,835 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:08,875 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:08,882 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:08,884 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:10,909 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:10,910 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:10,912 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:12,945 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:12,946 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:12,948 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:14,972 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:14,973 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:14,975 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:17,000 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:17,001 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:17,003 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:19,027 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:19,028 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:19,031 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:21,057 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:21,058 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:21,060 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:23,084 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:23,085 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:23,087 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:25,114 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:25,115 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:25,117 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:27,142 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:27,143 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:27,145 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:29,171 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:29,172 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:29,174 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:31,197 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:31,198 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:31,200 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:33,254 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:33,255 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:33,257 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:35,282 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:35,283 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:35,286 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:37,350 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:37,351 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:37,353 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:39,376 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:39,377 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:39,379 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:41,409 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:41,410 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:41,412 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:43,435 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:43,436 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:43,439 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:45,477 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:45,478 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:45,480 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:47,513 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:47,516 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:47,519 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:49,543 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:49,544 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:49,546 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:51,573 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:51,574 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:51,576 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:53,600 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:53,601 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:53,603 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:55,626 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:55,628 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:55,630 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:57,654 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:57,655 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:57,657 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:43:59,687 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:43:59,689 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:43:59,691 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:01,724 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:01,725 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:01,727 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:03,751 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:03,752 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:03,755 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:05,781 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:05,782 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:05,785 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:07,809 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:07,810 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:07,812 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:09,836 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:09,837 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:09,839 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:11,862 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:11,863 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:11,865 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:13,890 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:13,891 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:13,893 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:15,917 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:15,917 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:15,920 2073 (service_discovery): registration failed, retrying in 2 seconds
2018-03-12 08:44:17,944 2073 (xivo_agent): (127.0.0.1) GET https://localhost:9493/1.0/agents 401
2018-03-12 08:44:17,945 2073 (service_discovery): Registering xivo-agentd on Consul as fd4fee40-8def-44e7-82a0-bd27e0741ab7 with 172.31.51.253:9493
2018-03-12 08:44:17,948 2073 (service_discovery): registration failed, retrying in 2 seconds

172.31.51.253 est l'IP locale de mon instance EC2 (Amazon Web Services).

Le fichier /etc/xivo/custom/custom-certificate.yml contient:

consul:
host: hostname.domain.com
verify: True
agentd:
host: hostname.domain.com
verify_certificate: True
ajam:
host: hostname.domain.com
verify_certificate: True
amid:
host: hostname.domain.com
verify_certificate: True
auth:
host: hostname.domain.com
verify_certificate: True
confd:
host: hostname.domain.com
verify_certificate: True
call_logd:
host: hostname.domain.com
verify_certificate: True
ctid_ng:
host: hostname.domain.com
verify_certificate: True
dird:
host: hostname.domain.com
verify_certificate: True
plugind:
host: hostname.domain.com
verify_certificate: True
websocketd:
host: hostname.domain.com
verify_certificate: True

Et chacun de ces fichiers contiennent la même chose:

/etc/xivo-agentd-cli/conf.d//010-custom-certificate.yml
/etc/xivo-agentd/conf.d//010-custom-certificate.yml
/etc/xivo-agid/conf.d//010-custom-certificate.yml
/etc/xivo-amid/conf.d//010-custom-certificate.yml
/etc/xivo-confd/conf.d//010-custom-certificate.yml
/etc/xivo-confgend/conf.d//010-custom-certificate.yml
/etc/xivo-ctid/conf.d//010-custom-certificate.yml
/etc/xivo-ctid-ng/conf.d//010-custom-certificate.yml
/etc/xivo-dao/conf.d//010-custom-certificate.yml
/etc/xivo-dird/conf.d//010-custom-certificate.yml
/etc/xivo-dird-phoned/conf.d//010-custom-certificate.yml
/etc/xivo-purge-db/conf.d//010-custom-certificate.yml
/etc/xivo-websocketd/conf.d//010-custom-certificate.yml

/etc/xivo/custom-templates/system/etc/hosts contient:

XIVO: FILE AUTOMATICALLY GENERATED BY THE XIVO CONFIGURATION SUBSYSTEM

XIVO: DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

XIVO:

127.0.0.1 localhost
127.0.0.1 #XIVO_HOSTNAME#.#XIVO_DOMAIN# localhost.localdomain #XIVO_HOSTNAME#

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

/usr/share/xivo-config/templates/system/etc/hosts contient:

XIVO: FILE AUTOMATICALLY GENERATED BY THE XIVO CONFIGURATION SUBSYSTEM

XIVO: DO NOT EDIT THIS FILE BY HAND -- YOUR CHANGES WILL BE OVERWRITTEN

XIVO:

127.0.0.1 localhost
127.0.1.1 #XIVO_HOSTNAME#.#XIVO_DOMAIN# localhost.localdomain #XIVO_HOSTNAME#

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

/etc/hosts contient:

Your system has configured 'manage_etc_hosts' as True.

As a result, if you wish for changes to this file to persist

then you will need to either

a.) make changes to the master file in /etc/cloud/templates/hosts.tmpl

b.) change or remove the value of 'manage_etc_hosts' in

/etc/cloud/cloud.cfg or cloud-config from user-data

#
127.0.1.1 ip-172-31-51-253.ec2.internal ip-172-31-51-253
127.0.0.1 localhost

The following lines are desirable for IPv6 capable hosts

::1 ip6-localhost ip6-loopback
fe00::0 ip6-localnet
ff00::0 ip6-mcastprefix
ff02::1 ip6-allnodes
ff02::2 ip6-allrouters
ff02::3 ip6-allhosts

Pas de mentions de mon hostname.domain.com dans le fichier /etc/hosts... Pourtant, dans "Configuration" > "Resolver":

Hostname = hostname
Domain = domain.com
Name server = 172.31.0.2 (name server local de l'instance EC2)

J'ai remplacé mon sous-domaine et mon domaine par hostname.domain.com.

Tout fonctionnais bien avant d'installer mon certificat SSL (Comodo PositiveSSL).

Des idées?