Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

agent_install fails with: dragent.service: Job dragent.service/start failed with result 'dependency' #503

Open
jvalderrama-magnolia opened this issue May 8, 2024 · 1 comment

Comments

@jvalderrama-magnolia
Copy link

jvalderrama-magnolia commented May 8, 2024

Trying to install the role sysdig.agent.agent_install I always have the next error when the dragent service is beign started in Ubuntu:
dragent.service: Job dragent.service/start failed with result 'dependency'

Entire error trace:

TASK [sysdig.agent.agent_install : Start dragent Service] ******************************************************************************************************************************************************************************
fatal: [X.X.X.X]: FAILED! => {"changed": false, "msg": "Unable to start service dragent: A dependency job for dragent.service failed. See 'journalctl -xe' for details.\n"}

TASK [sysdig.agent.agent_install : Attempting to Start dragent Service with sysvinit] **************************************************************************************************************************************************
fatal: [X.X.X.X]: FAILED! => {"changed": false, "msg": "Could not find the requested service dragent: "}

PLAY RECAP *****************************************************************************************************************************************************************************************************************************
X.X.X.X              : ok=13   changed=5    unreachable=0    failed=1    skipped=7    rescued=1    ignored=0   

Ubuntu specifications

PRETTY_NAME="Ubuntu 22.04.3 LTS"
NAME="Ubuntu"
VERSION_ID="22.04"
VERSION="22.04.3 LTS (Jammy Jellyfish)"
VERSION_CODENAME=jammy
ID=ubuntu
ID_LIKE=debian
HOME_URL="https://www.ubuntu.com/"
SUPPORT_URL="https://help.ubuntu.com/"
BUG_REPORT_URL="https://bugs.launchpad.net/ubuntu/"
PRIVACY_POLICY_URL="https://www.ubuntu.com/legal/terms-and-policies/privacy-policy"
UBUNTU_CODENAME=jammy

My project structure to use the ansible recipe is:

- sysdig-agent
   - meta
     main.yaml

main.yaml file

---
# Role variables https://galaxy.ansible.com/ui/repo/published/sysdig/agent/content/role/agent_install/
dependencies:
  - role: sysdig.agent.agent_install
    vars:
    configuration:
      monitoring: standard
      security: standard
      connection:
        access_key: <any_key>
        region: <any_region>
      agent:
        driver:
          install_build_dependencies: true
    features:
      monitoring:
        jmx:
          enabled: false

I have tested some variations but I got the same error always.
Any help please?

@mavimo
Copy link
Contributor

mavimo commented May 10, 2024

@jvalderrama-magnolia thanks for your feedback, I'll look into it ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants