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

Cert load error after updating to Wazuh #327

Open
gand0rf opened this issue Sep 24, 2024 · 0 comments
Open

Cert load error after updating to Wazuh #327

gand0rf opened this issue Sep 24, 2024 · 0 comments
Labels
level/task Task issue reporter/community Issue reported by the community request/operational Operational request type/troubleshooting

Comments

@gand0rf
Copy link

gand0rf commented Sep 24, 2024

After upgrading to Wazuh 4.9.0 on Ubuntu 22.04.5 LTS, wazuh-dashboard kept failing to start and the webpage dashboard was not available.

I simply updated Wazuh services through my weekly server maintenance using the apt upgrade command. I issued the stop then start command with systemctl on wazuh-indexer as I normally have to after updates. The website was still not coming up. I then checked the status of wazuh-dashboard, and it had a failed status. After trying to restart it and it failing again, I turned to checking journalctl for information.

That is when I say this error:

Failed to find file: /etc/wazuh-dashboard/certs/dashboard-key.pem 

Checking the directory, I did see the root cert and the wazuh-dashboard-key.pem and wazuh-dashboard.pem. I ran the following to see if it would help:

cp wazuh-dashboard-key.pem dashboard-key.pem
chown wazuh-dashbaord: dashboard-key.pem

Restarted wazuh-dashboard, and it failed again. Checking journalctl once again, this time it could find dashboard.pem file. So repeated the above steps with the other file.

cp wazuh-dashboard.pem dashboard.pem
chown wazuh-dashboard: dashboard.pem

Tried restarting wazuh-dashboard again, and it started up. I am guessing the name of the files got changed in the code during the upgrade. Thought I would open a ticket here just in case anyone else has this issue. System has been working just fine after the fix.

@asteriscos asteriscos added reporter/community Issue reported by the community level/task Task issue request/operational Operational request type/troubleshooting and removed untriaged labels Dec 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
level/task Task issue reporter/community Issue reported by the community request/operational Operational request type/troubleshooting
Projects
None yet
Development

No branches or pull requests

2 participants