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

cp: -r not specified; omitting directory '/config/certs.yml' #905

Open
Nonesence999 opened this issue Jul 24, 2023 · 4 comments
Open

cp: -r not specified; omitting directory '/config/certs.yml' #905

Nonesence999 opened this issue Jul 24, 2023 · 4 comments

Comments

@Nonesence999
Copy link

I am tryng to install Wazuh on docker but it doesn't work even tho I followed the instructions and checked that the files are present :
The docker is the windows desktop version whit a debian dev environements to run/install wazuh.

# ls
bin  boot  dev  etc  home  lib  lib64  media  mnt  opt  proc  root  run  sbin  srv  sys  tmp  usr  var  wazuh-docker
# cd wazuh-docker
# ls
CHANGELOG.md  LICENSE  README.md  VERSION  build-docker-images  indexer-certs-creator  multi-node  single-node
# cd single-node
# ls
README.md  config  docker-compose.yml  generate-indexer-certs.yml
# docker-compose -f generate-indexer-certs.yml run --rm generator
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100 26847  100 26847    0     0   117k      0 --:--:-- --:--:-- --:--:--  117k
Cert tool exists in Packages bucket
cp: -r not specified; omitting directory '/config/certs.yml'
24/07/2023 13:38:52 ERROR: No configuration file found.
# cd config
# ls
certs.yml  wazuh_cluster  wazuh_dashboard  wazuh_indexer
# 

How can I fix the issue ?

@lightheaded
Copy link

I'm having the same issue:

# docker-compose -f generate-indexer-certs.yml run --rm generator
Creating wazuh_generator_run ... done
The tool to create the certificates exists in the in Packages bucket
cp: -r not specified; omitting directory '/config/certs.yml'
19/08/2023 11:08:22 ERROR: No configuration file found.
ERROR: 1

# ll config/
total 32K
drwxrwx--- 4 admin administrators 4.0K 2023-08-19 14:03 ./
drwxrwx--- 3 admin administrators 4.0K 2023-08-19 14:08 ../
drwxr-xr-x 2 admin administrators 4.0K 2023-08-19 14:03 certs.yml/
drwxr-xr-x 2 admin administrators 4.0K 2023-08-19 14:03 wazuh_indexer_ssl_certs/

For some reason the certs.yml is a directory..

@shiizeen
Copy link

Hi, same issue here ! Anyone resolve this since August ?

@Katovitcom
Copy link

To solve, first search the cert.yml of single-node:

find / -name certs.yml | grep single-node
Then, change the file generate-indexer-certs.yml

(in my case):

volumes:
    - /root/wazuh/wazuh-docker/single-node/config/certs.yml:/config/certs.yml

@Rovel
Copy link

Rovel commented May 27, 2024

Hi I found a similar issue and is related what user is creating and running the wazuh docker compose commands, if is the root all runs good if not this errors start appearing related to cert permissions and folder permissions

The cert generation create some certs for root but in the docs there is no mention if root is needed advised etc, to make a clean install on a ubuntu for example, first go sudo su then go to root home folder, then clone the repo, generate the certs and compose up

I would suggest changing the cert generation to fully address this to allow other users or a docker rootless install, but adding this info in the current docs is good, and if any help needed just ping me

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

5 participants