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

Upgrading wazuh-agent over remote is not possible #1501

Open
MIPMHannes opened this issue Jan 10, 2025 · 0 comments · May be fixed by #1515
Open

Upgrading wazuh-agent over remote is not possible #1501

MIPMHannes opened this issue Jan 10, 2025 · 0 comments · May be fixed by #1515

Comments

@MIPMHannes
Copy link

I used ansible to push the wazuh-agent on my servers.
I want to do the upgrading via wazuh dashboard remote upgrade function.

However upgrade fails instantly with this error code on the wazuh agent logs

wazuh-modulesd: ERROR: (1118): Could not retrieve information of file '
    /var/ossec/etc/wpk_root.pem
    ' due to [(2)-(No such file or directory)].

The relevant section in /var/ossec/etc/ossec.conf looks like this:

  <active-response>
    <disabled>no</disabled>
    <ca_store>
    /var/ossec/etc/wpk_root.pem
    </ca_store>
    <ca_verification>yes</ca_verification>
  </active-response>

No wonder it fails

You can work around it by removing newlines from the ca_store option:

  <active-response>
    <disabled>no</disabled>
    <ca_store>/var/ossec/etc/wpk_root.pem</ca_store>
    <ca_verification>yes</ca_verification>
  </active-response>

Now upgrades work again.

So the template file var-ossec-etc-ossec-agent.conf.j2 should be modified to fix this.

@vpaulino98 vpaulino98 linked a pull request Jan 17, 2025 that will close this issue
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

Successfully merging a pull request may close this issue.

1 participant