IBM Security QRadar SOAR

 View Only
  • 1.  Running circuits via virtual environment inside resilient servis file issue

    Posted Fri October 27, 2023 10:05 AM

    Hi,

    You have such document:

    https://www.ibm.com/docs/en/sqsp/44?topic=system-configuring-resilient-circuits-restart

    In this situation using Python virtual environment is better (Please update your document in right way)

    ExecStart=/usr/local/bin/resilient-circuits run

    I want to run this from: 

    ExecStart=/ENV/integration/bin/python /ENV/integration/bin/resilient-circuits run

    Voila! This line working normalı and starts circuits. 

    (integration) [integration@resilient-isnet .resilient]$ sudo systemctl status resilient_circuits
    [sudo] password for integration:
    ● resilient_circuits.service - Resilient-Circuits Service
       Loaded: loaded (/etc/systemd/system/resilient_circuits.service; enabled; vendor preset: disabled)
       Active: failed (Result: exit-code) since Fri 2023-10-27 14:07:29 +03; 2h 53min ago
      Process: 206803 ExecStart=/ENV/integration/bin/python /ENV/integration/bin/resilient-circuits r>
     Main PID: 206803 (code=exited, status=203/EXEC)

    Any advice would be appreciated.

    Best

    Jasmine

    (https://community.ibm.com/community/user/security/discussion/running-multiple-resilient-circuits-in-multiple-virtualenv-for-mssps)



    ------------------------------
    Jasmin
    ------------------------------


  • 2.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Fri October 27, 2023 12:37 PM

    The support

    Resilient Circuits is not written to work within a virtual Python environment but many clients run it this way. Our product documentation does not provide guidance on virtual environments so although other clients have it working that way the configuration and support of these environments are not within the scope of the support IBM provides.

    There have been a few posts over the years on the community relating to virtual environments. You might be able to find something that helps or ask in the community -> https://ibm.biz/soarcommunity



    ------------------------------
    Jasmin
    ------------------------------



  • 3.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Fri October 27, 2023 12:41 PM

    Dear development team, please explain me a python package that is not written to work within a virtual Python environment as support said. 



    ------------------------------
    Jasmin
    ------------------------------



  • 4.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Fri October 27, 2023 04:41 PM
    Edited by AnnMarie Norcross Fri October 27, 2023 04:46 PM

    Hi Jasmin

    The ExecStart line you are trying to use is not correct:

    ExecStart=/ENV/integration/bin/python /ENV/integration/bin/resilient-circuits run

    You should use the file location of resilient-circuits in your virtual environment.  With the virtual environment activated, type in:

    which resilient-circuits

    For me working in a my current virtual enviroment the directory looks like this

     % which resilient-circuits
    /Users/annmarienorcross/.pyenv/versions/3.9.11/envs/py3911-myapp/bin/resilient-circuits

    So in the resilient_circuits.service file ExecStart line should look like this:

    ExecStart=/Users/annmarienorcross/.pyenv/versions/3.9.11/envs/py3911-myapp/bin/resilient-circuits run

    Hope this helps!



    ------------------------------
    AnnMarie Norcross
    ------------------------------



  • 5.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Mon October 30, 2023 04:45 AM

    Hi AnnMarie,

    I have solved the issue in this way.

    Best

    Yasemen



    ------------------------------
    Jasmin
    ------------------------------



  • 6.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Mon October 30, 2023 05:48 AM

    Hi Yasemen,

    Thanks for letting us know that the problem was related to the OS and it is good news you were able to fix the problem.



    ------------------------------
    BEN WILLIAMS
    ------------------------------



  • 7.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Mon October 30, 2023 06:06 AM

    Hi Ben,

    Thanks for letting us to know that resilient circuits (that is a Python library!!! )  wasn't design for working with virtual environment :) (strange but true)



    ------------------------------
    Jasmin
    ------------------------------



  • 8.  RE: Running circuits via virtual environment inside resilient servis file issue

    Posted Mon October 30, 2023 06:42 AM

    Hi Yasemen,

    It might not be designed with that in mind but it works for a number of clients who have deployed it in that way. Thankfully you have been able to make changes to the operating system of your integration server to get systemd,  Python and Resilient Circuits working together. Thank you for sharing the problem you had with SELinux, it might prove useful for others.



    ------------------------------
    BEN WILLIAMS
    ------------------------------