When i call /setup to early in the init process, provd seems not ready and confd return 500.
2020-01-18 12:40:33,454 [1149] (INFO) (flask.app): request: POST https://localhost:9486/1.1/wizard {'Host': 'localhost:9486', 'Accept-Encoding': 'identity', 'Connection': 'close', 'User-Agent': 'wazo-setupd', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Content-Length': '292'} with data {"admin_password": ",xxxxx", "license": true, "timezone": "Etc/UTC", "language": "en_US", "network": {"hostname": "ip-10-0-42-34", "domain": "wazo.io", "interface": "eth0", "ip_address": "10.0.42.34", "netmask": "255.255.0.0", "gateway": "10.0.0.1", "nameservers": ["8.8.8.8"]}} 2020-01-18 12:40:33,584 [1149] (ERROR) (wazo_confd.helpers.common): HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn (self._dns_host, self.port), self.timeout, **extra_kw) File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection raise err File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection sock.connect(sa) ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen chunked=chunked) File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request conn.request(method, url, **httplib_request_kw) File "/usr/lib/python3.7/http/client.py", line 1229, in request self._send_request(method, url, body, headers, encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request self.endheaders(body, encode_chunked=encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders self._send_output(message_body, encode_chunked=encode_chunked) File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output self.send(msg) File "/usr/lib/python3.7/http/client.py", line 956, in send self.connect() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect conn = self._new_conn() File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn self, "Failed to establish a new connection: %s" % e) urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send timeout=timeout File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen _stacktrace=sys.exc_info()[2]) File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment raise MaxRetryError(_pool, url, error or ResponseError(cause)) urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3/dist-packages/wazo_confd/helpers/common.py", line 28, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/access_restriction.py", line 12, in wrapper return func(*args, **kwargs) File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/resource.py", line 80, in post wizard_with_uuid = self.service.create(wizard) File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/service.py", line 68, in create wizard['steps'], File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/service.py", line 111, in _send_sysconfd_cmd self.sysconfd.flush() File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 120, in flush self.flush_requests(session) File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 132, in flush_requests response = request_applicator(session) File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 115, in <lambda> self.requests.append(lambda session: session.request(*args, **kwargs)) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send raise ConnectionError(e, request=request) requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused')) 2020-01-18 12:40:33,645 [1149] (INFO) (flask.app): response: (127.0.0.1) POST https://localhost:9486/1.1/wizard 500
When i call /setup to early in the init process, provd seems not ready and confd return 500.
2020-01-18 12:40:33,454 [1149] (INFO) (flask.app): request: POST https://localhost:9486/1.1/wizard {'Host': 'localhost:9486', 'Accept-Encoding': 'identity', 'Connection': 'close', 'User-Agent': 'wazo-setupd', 'Accept': 'application/json', 'Content-Type': 'application/json', 'Content-Length': '292'} with data {"admin_password": ",xxxxx", "license": true, "timezone": "Etc/UTC", "language": "en_US", "network": {"hostname": "ip-10-0-42-34", "domain": "wazo.io", "interface": "eth0", "ip_address": "10.0.42.34", "netmask": "255.255.0.0", "gateway": "10.0.0.1", "nameservers": ["8.8.8.8"]}}
2020-01-18 12:40:33,584 [1149] (ERROR) (wazo_confd.helpers.common): HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 159, in _new_conn
(self._dns_host, self.port), self.timeout, **extra_kw)
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 80, in create_connection
raise err
File "/usr/lib/python3/dist-packages/urllib3/util/connection.py", line 70, in create_connection
sock.connect(sa)
ConnectionRefusedError: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 600, in urlopen
chunked=chunked)
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 354, in _make_request
conn.request(method, url, **httplib_request_kw)
File "/usr/lib/python3.7/http/client.py", line 1229, in request
self._send_request(method, url, body, headers, encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1275, in _send_request
self.endheaders(body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1224, in endheaders
self._send_output(message_body, encode_chunked=encode_chunked)
File "/usr/lib/python3.7/http/client.py", line 1016, in _send_output
self.send(msg)
File "/usr/lib/python3.7/http/client.py", line 956, in send
self.connect()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 181, in connect
conn = self._new_conn()
File "/usr/lib/python3/dist-packages/urllib3/connection.py", line 168, in _new_conn
self, "Failed to establish a new connection: %s" % e)
urllib3.exceptions.NewConnectionError: <urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 449, in send
timeout=timeout
File "/usr/lib/python3/dist-packages/urllib3/connectionpool.py", line 638, in urlopen
_stacktrace=sys.exc_info()[2])
File "/usr/lib/python3/dist-packages/urllib3/util/retry.py", line 398, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/wazo_confd/helpers/common.py", line 28, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/access_restriction.py", line 12, in wrapper
return func(*args, **kwargs)
File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/resource.py", line 80, in post
wizard_with_uuid = self.service.create(wizard)
File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/service.py", line 68, in create
wizard['steps'],
File "/usr/lib/python3/dist-packages/wazo_confd/plugins/wizard/service.py", line 111, in _send_sysconfd_cmd
self.sysconfd.flush()
File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 120, in flush
self.flush_requests(session)
File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 132, in flush_requests
response = request_applicator(session)
File "/usr/lib/python3/dist-packages/wazo_confd/_sysconfd.py", line 115, in <lambda>
self.requests.append(lambda session: session.request(*args, **kwargs))
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 533, in request
resp = self.send(prep, **send_kwargs)
File "/usr/lib/python3/dist-packages/requests/sessions.py", line 646, in send
r = adapter.send(request, **kwargs)
File "/usr/lib/python3/dist-packages/requests/adapters.py", line 516, in send
raise ConnectionError(e, request=request)
requests.exceptions.ConnectionError: HTTPConnectionPool(host='localhost', port=8668): Max retries exceeded with url: /xivoctl (Caused by NewConnectionError('<urllib3.connection.HTTPConnection object at 0x7f59656fc2b0>: Failed to establish a new connection: [Errno 111] Connection refused'))
2020-01-18 12:40:33,645 [1149] (INFO) (flask.app): response: (127.0.0.1) POST https://localhost:9486/1.1/wizard 500