wazuh / wazuh-documentation

Wazuh - Project documentation
https://wazuh.com
195 stars 348 forks source link

Docker Volumes Certs Error #7619

Closed xafirox2 closed 1 month ago

xafirox2 commented 3 months ago

When generating the certificates using step listed in documentation:

docker-compose -f generate-indexer-certs.yml run --rm generator

Errors occur that prevent Wazuh containers from starting:

cp: cannot overwrite directory '/certificates/admin-key.pem' with non-directory cp: cannot overwrite directory '/certificates/admin.pem' with non-directory cp: cannot overwrite directory '/certificates/root-ca.pem' with non-directory cp: cannot overwrite directory '/certificates/wazuh.indexer-key.pem' with non-directory cp: cannot overwrite directory '/certificates/wazuh.indexer.pem' with non-directory cp: cannot overwrite directory '/certificates/wazuh.manager-key.pem' with non-directory cp: cannot overwrite directory '/certificates/wazuh.manager.pem' with non-directory

davidcr01 commented 2 months ago

Hello.

It seems that the Wazuh docker certificate generator is not able to copy the certificates into the destination folder. Can you please try to remove the /config/wazuh_indexer_ssl_certs directory (where the certificates are created), and try to create them again with the docker-compose -f generate-indexer-certs.yml run --rm generator command?