IBM Security QRadar SOAR

 View Only
Expand all | Collapse all

APP installation error resilient.co3base.BasicHTTPException: Unauthorized:

  • 1.  APP installation error resilient.co3base.BasicHTTPException: Unauthorized:

    Posted Tue September 21, 2021 09:25 AM
    Hello,

    I have trouble to install app fn_component.
    i install and deploy app but when i get the logs i have this:

    2021-09-21 08:04:22,353 INFO [filelock] Lock 140448204807920 released on /opt/app-root/src/.resilient/resilient_circuits_lockfile
    Traceback (most recent call last):
    File "/opt/app-root/bin/resilient-circuits", line 8, in <module>
    sys.exit(main())
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/bin/resilient_circuits_cmd.py", line 484, in main
    config_file=args.config_file)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/bin/resilient_circuits_cmd.py", line 90, in run
    app.run(**kwargs)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/app.py", line 390, in run
    application = App(*args, **kwargs)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/app.py", line 229, in __init__
    self.do_initialization()
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/app.py", line 261, in do_initialization
    self.action_component = Actions(self.opts)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/actions_component.py", line 275, in __init__
    super(Actions, self).__init__(opts)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/actions_component.py", line 103, in __init__
    self._get_fields(fn_names=self.fn_names)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/actions_component.py", line 152, in _get_fields
    client = self.rest_client()
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/actions_component.py", line 177, in rest_client
    return get_resilient_client(self.opts)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/rest_helper.py", line 47, in wrapper
    return func(opts)
    File "/opt/app-root/lib/python3.6/site-packages/resilient_circuits/rest_helper.py", line 90, in get_resilient_client
    resilient_client = resilient.get_client(opts)
    File "/opt/app-root/lib/python3.6/site-packages/resilient/co3.py", line 164, in get_client
    api_key_secret=opts["api_key_secret"])
    File "/opt/app-root/lib/python3.6/site-packages/resilient/co3base.py", line 162, in set_api_key
    BasicHTTPException.raise_if_error(response)
    File "/opt/app-root/lib/python3.6/site-packages/resilient/co3base.py", line 62, in raise_if_error
    raise BasicHTTPException(response)
    resilient.co3base.BasicHTTPException: Unauthorized:

    Anyone know how to solve this ?


    ------------------------------
    romain calvet
    ------------------------------


  • 2.  RE: APP installation error resilient.co3base.BasicHTTPException: Unauthorized:

    Posted Tue September 21, 2021 01:44 PM
    Very strange : Unauthorized
    Possibilities are:
    - Api Key not authorized : check / reset the Api Key and verify it is the right one on the app.config of the app , and on the message for fn_components
    - the IP of the App Host is banned? See support note : The IBM Resilient IP Ban Safety Mechanism Explained

    ------------------------------
    BENOIT ROSTAGNI
    ------------------------------



  • 3.  RE: APP installation error resilient.co3base.BasicHTTPException: Unauthorized:

    Posted Thu September 01, 2022 06:56 AM
    Edited by Neeraj Kurmanchali Thu September 01, 2022 06:57 AM
    Hi ,

    I am also facing the same issues, I checked the API secret and its fine as well. My other integrations are working fine , only when a new app is deployed using resilient circuit and when trying to add customizations to CP4S server from App host server I am getting this error.

    resilient-circuits customize
    /home/integration/.local/lib/python2.7/site-packages/urllib3/contrib/pyopenssl.py:51: CryptographyDeprecationWarning: Python 2 is no longer supported by the Python core team. Support for it is now deprecated in cryptography, and will be removed in the next release.
    from cryptography import x509
    Unverified HTTPS requests (cafile=false).
    Traceback (most recent call last):
    File "/home/integration/.local/bin/resilient-circuits", line 8, in <module>
    sys.exit(main())
    File "/home/integration/.local/lib/python2.7/site-packages/resilient_circuits/bin/resilient_circuits_cmd.py", line 421, in main
    customize_resilient(args)
    File "/home/integration/.local/lib/python2.7/site-packages/resilient_circuits/util/resilient_customize.py", line 91, in customize_resilient
    client = resilient.get_client(opts)
    File "/home/integration/.local/lib/python2.7/site-packages/resilient/co3.py", line 164, in get_client
    api_key_secret=opts["api_key_secret"])
    File "/home/integration/.local/lib/python2.7/site-packages/resilient/co3base.py", line 167, in set_api_key
    BasicHTTPException.raise_if_error(response)
    File "/home/integration/.local/lib/python2.7/site-packages/resilient/co3base.py", line 64, in raise_if_error
    raise BasicHTTPException(response)
    resilient.co3base.BasicHTTPException: Unauthorized:

    Any solution you can advise.

    ------------------------------
    Neeraj Kurmanchali
    ------------------------------