Any pack installation fails during registration

I am trying to install packs but they all fail at registration

2020-03-03 17:53:50,790 WARNING - Locale unknown with encoding unknown which is not UTF-8 is used. This means that some functionality which relies on outputting unicode characters won’t work. You are encouraged to use UTF-8 locale by setting LC_ALL environment variable to en_US.UTF-8 or similar.

[ succeeded ] download pack
[ succeeded ] make a prerun
[ succeeded ] install pack dependencies
[  failed   ] register pack

id: 5e5e4c577f704d773feec2d3
action.ref: packs.install
parameters:
packs:

  • nagios=0.1.0
    python3: false
    status: failed
    result_task: register pack
    result:
    exit_code: 1
    result: None
    stderr: "st2.actions.python.St2RegisterAction: DEBUG Calling client method “register” with kwargs “{‘types’: [u’all’], ‘packs’: [u’nagios’]}”
    Traceback (most recent call last):
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py”, line 333, in
    obj.run()
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py”, line 192, in run
    output = action.run(**self._parameters)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/register.py”, line 80, in run
    format_func=format_result)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/register.py”, line 148, in _run_client_method
    result = method(**method_kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/models/core.py”, line 41, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/models/core.py”, line 548, in register
    response = self.client.post(url, payload, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 32, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 50, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 60, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 95, in post
    response = requests.post(self.root + url, json.dumps(data), **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/api.py”, line 116, in post
    return request(‘post’, url, data=data, json=json, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/api.py”, line 60, in request
    return session.request(method=method, url=url, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/sessions.py”, line 533, in request
    resp = self.send(prep, **send_kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/sessions.py”, line 646, in send
    r = adapter.send(request, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/adapters.py”, line 516, in send
    raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘myhost.examples.com’, port=443): Max retries exceeded with url: /api/v1/packs/register (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0c6378c2d0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))
    "
    stdout: ‘’
    error: st2.actions.python.St2RegisterAction: DEBUG Calling client method “register” with kwargs “{‘types’: [u’all’], ‘packs’: [u’nagios’]}”
    Traceback (most recent call last):
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py”, line 333, in
    obj.run()
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/python_runner/python_action_wrapper.py”, line 192, in run
    output = action.run(**self._parameters)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/register.py”, line 80, in run
    format_func=format_result)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/register.py”, line 148, in _run_client_method
    result = method(**method_kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/models/core.py”, line 41, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/models/core.py”, line 548, in register
    response = self.client.post(url, payload, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 32, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 50, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 60, in decorate
    return func(*args, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2client/utils/httpclient.py”, line 95, in post
    response = requests.post(self.root + url, json.dumps(data), **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/api.py”, line 116, in post
    return request(‘post’, url, data=data, json=json, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/api.py”, line 60, in request
    return session.request(method=method, url=url, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/sessions.py”, line 533, in request
    resp = self.send(prep, **send_kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/sessions.py”, line 646, in send
    r = adapter.send(request, **kwargs)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/requests/adapters.py”, line 516, in send
    raise ConnectionError(e, request=request)
    requests.exceptions.ConnectionError: HTTPSConnectionPool(host=‘myhost.examples.com’, port=443): Max retries exceeded with url: /api/v1/packs/register (Caused by NewConnectionError(’<urllib3.connection.VerifiedHTTPSConnection object at 0x7f0c6378c2d0>: Failed to establish a new connection: [Errno -2] Name or service not known’,))

traceback: None
failed_on: register pack
start_timestamp: Tue, 03 Mar 2020 12:23:51 UTC
end_timestamp: Tue, 03 Mar 2020 12:24:03 UTC
±-------------------------±-----------------------±---------------------±---------------------±-----------------+
| id | status | task | action | start_timestamp |
±-------------------------±-----------------------±---------------------±---------------------±-----------------+
| 5e5e4c577f704d751ad7ad78 | succeeded (5s elapsed) | download pack | packs.download | Tue, 03 Mar 2020 |
| | | | | 12:23:51 UTC |
| 5e5e4c5d7f704d751ad7ad7a | succeeded (1s elapsed) | make a prerun | packs.virtualenv_pre | Tue, 03 Mar 2020 |
| | | | run | 12:23:57 UTC |
| 5e5e4c5e7f704d751ad7ad7c | succeeded (3s elapsed) | install pack | packs.setup_virtuale | Tue, 03 Mar 2020 |
| | | dependencies | nv | 12:23:58 UTC |
| 5e5e4c627f704d751ad7ad7e | failed (0s elapsed) | register pack | packs.load | Tue, 03 Mar 2020 |
| | | | | 12:24:02 UTC |
±-------------------------±-----------------------±---------------------±---------------------±-----------------+