Issue installing st2 pack


(Revs) #1

Hi,

I am facing an issue, while installing the st2 package. Could you please look below and let me know your inputs.

[st2admin@xxxxxx ~]$ st2 pack install st2

    [  failed   ] download pack

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

  • st2
    python3: false
    status: failed
    result_task: download pack
    result:
    exit_code: 1
    result: None
    stderr: "No handlers could be found for logger “st2.st2common.services.packs”
    Traceback (most recent call last):
    File “/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py”, line 320, in
    obj.run()
    File “/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py”, line 179, in run
    output = action.run(**self._parameters)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/download.py”, line 88, in run
    pack_url, pack_version = self._get_repo_url(pack, proxy_config=self.proxy_config)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/download.py”, line 310, in _get_repo_url
    pack = get_pack_from_index(name_or_url, proxy_config=proxy_config)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/services/packs.py”, line 175, in get_pack_from_index
    index, _ = fetch_pack_index(proxy_config=proxy_config)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/services/packs.py”, line 162, in fetch_pack_index
    json.dumps(status, indent=4)
    ValueError: No results from the index: tried https://index.stackstorm.org/v1/index.json.
    Status: [
    {
    “url”: “https://index.stackstorm.org/v1/index.json”,
    “message”: “ConnectionError(MaxRetryError(“HTTPSConnectionPool(host=‘index.stackstorm.org’, port=443): Max retries exceeded with url: /v1/index.json (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1cb032d6d0>: Failed to establish a new connection: [Errno 110] Connection timed out’,))”,),)”,
    “error”: “unresponsive”,
    “packs”: 0
    }
    ]
    "
    stdout: ‘’
    error: No handlers could be found for logger “st2.st2common.services.packs”
    Traceback (most recent call last):
    File “/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py”, line 320, in
    obj.run()
    File “/opt/stackstorm/runners/python_runner/python_runner/python_action_wrapper.py”, line 179, in run
    output = action.run(**self._parameters)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/download.py”, line 88, in run
    pack_url, pack_version = self._get_repo_url(pack, proxy_config=self.proxy_config)
    File “/opt/stackstorm/packs/packs/actions/pack_mgmt/download.py”, line 310, in _get_repo_url
    pack = get_pack_from_index(name_or_url, proxy_config=proxy_config)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/services/packs.py”, line 175, in get_pack_from_index
    index, _ = fetch_pack_index(proxy_config=proxy_config)
    File “/opt/stackstorm/st2/lib/python2.7/site-packages/st2common/services/packs.py”, line 162, in fetch_pack_index
    json.dumps(status, indent=4)
    ValueError: No results from the index: tried https://index.stackstorm.org/v1/index.json.
    Status: [
    {
    “url”: “https://index.stackstorm.org/v1/index.json”,
    “message”: “ConnectionError(MaxRetryError(“HTTPSConnectionPool(host=‘index.stackstorm.org’, port=443): Max retries exceeded with url: /v1/index.json (Caused by NewConnectionError(’<requests.packages.urllib3.connection.VerifiedHTTPSConnection object at 0x7f1cb032d6d0>: Failed to establish a new connection: [Errno 110] Connection timed out’,))”,),)”,
    “error”: “unresponsive”,
    “packs”: 0
    }
    ]

traceback: None
failed_on: download pack
start_timestamp: Mon, 23 Jul 2018 22:35:56 UTC
end_timestamp: Mon, 23 Jul 2018 22:38:04 UTC
±-------------------------±----------------------±--------------±---------------±------------------------------+
| id | status | task | action | start_timestamp |
±-------------------------±----------------------±--------------±---------------±------------------------------+
| 5b56584c3648f84de560a3b6 | failed (128s elapsed) | download pack | packs.download | Mon, 23 Jul 2018 22:35:56 UTC |
±-------------------------±----------------------±--------------±---------------±------------------------------+
[st2admin@xxxxxx ~]$


(Lindsay Hill) #2

Have you checked that your system has access to https://index.stackstorm.org/v1/index.json?


(Revs) #3

Hi,

Yes, I am unable to connect to that URL. Tried the below commands. I also tried setting proxy using env variables, it didnt work.

ping https://index.stackstorm.org/v1/index.json
wget https://index.stackstorm.org/v1/index.json
curl https://index.stackstorm.org/v1/index.json

But it worked when I set the proxy using curl command, see below example

curl -x proxy_server_details https://index.stackstorm.org/v1/index.json -i

How do I get this fixed to complete the installation.


(Lindsay Hill) #4

Follow the instructions at Packs — StackStorm 2.8.1 documentation

Make sure you restart the services.


(Revs) #5

Hi,

Thanks for the instructions. I have created the below files, added proxy server details and was able to install.
/etc/sysconfig/st2actionrunner and /etc/sysconfig/st2api

Thank you.