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

Repository 5.x does not have release file #1278

Closed
opentokix opened this issue May 2, 2024 · 4 comments
Closed

Repository 5.x does not have release file #1278

opentokix opened this issue May 2, 2024 · 4 comments
Assignees
Labels
reporter/community Issue reported by the community

Comments

@opentokix
Copy link

Trying to run the latest playbook on Ubuntu 22.04 and I get this error.

TASK [../roles/wazuh/ansible-wazuh-agent : Debian/Ubuntu | Add Wazuh repositories] ************************************************************************************************
fatal: [hostname.domain.tld]: FAILED! => {"changed": false, "msg": "Failed to update apt cache: E:The repository 'https://packages.wazuh.com/5.x/apt stable Release' does not have a Release file."}

@rauldpm rauldpm self-assigned this May 2, 2024
@rauldpm rauldpm added the reporter/community Issue reported by the community label May 2, 2024
@rauldpm
Copy link
Member

rauldpm commented May 2, 2024

Hello @opentokix

This error is expected since 5.x corresponds to version 5.0.0 of Wazuh, which has not been published yet (we just published v4.7.4), this occurs because you are deploying with the master branch, which corresponds to said version in development (5.0.0)

You can check the Wazuh version that corresponds to the branch/tag you are using in the following file, where {branch_tag} is the branch or tag selected

Some examples:

If you want to perform a deployment, I recommend that you change the reference of the GitHub repository to the v4.7.4 tag using the following command

  • git pull
  • git checkout v4.7.4

Also, you should follow the deployment guide where all the steps are detailed.

@opentokix
Copy link
Author

I did follow the steps on that documentation site.

@rauldpm
Copy link
Member

rauldpm commented May 8, 2024

If you have followed the steps then you should not have gotten that error, make sure that you have executed the command correctly and that you have followed all the documentation since the branch change is done here

https://documentation.wazuh.com/current/deployment-options/deploying-with-ansible/guide/install-ansible.html#playbooks-and-roles

cd /etc/ansible/roles/
sudo git clone --branch v4.7.4 https://github.com/wazuh/wazuh-ansible.git
ls

The v4.7.4 tag points to 4.x and not 5.x, indicating that the branch switch has not been made, so you are using the master branch

PACKAGES_URL=https://packages.wazuh.com/4.x/

@rauldpm
Copy link
Member

rauldpm commented May 23, 2024

Closed due to inactivity

@rauldpm rauldpm closed this as completed May 23, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
reporter/community Issue reported by the community
Projects
None yet
Development

No branches or pull requests

2 participants