Key not valid Docker installation
I installed crowdsec with docker, the install works fine
Volumes are mounted with docker-compose.yml
volumes:
- ./config/crowdsec:/etc/crowdsec
- ./config/crowdsec/db:/var/lib/crowdsec/data
- ./config/crowdsec_logs/auth.log:/var/log/auth.log:ro
- ./config/crowdsec_logs/syslog:/var/log/syslog:ro
- ./config/crowdsec_logs:/var/log
- ./config/traefik/logs:/var/log/traefik
- ./config/traefik/conf/captcha.html:/etc/traefik/conf/captcha.html
I try to register my ops inside the docker container
cscli capi register
cscli console enroll <id>
It seems to work
online_api_credentials has a login a password. Login matches the string on my crowdsec account
With docker logs crowdsec I get the error
API error: the attachment key provided is not valid (hint: get your enrollement key from console, crowdsec login or machine id are not valid values)
I do not know where to start to find the error
6 Replies
Important Information
This post has been marked as resolved. If this is a mistake please press the red button below or type
/unresolve
© Created By WhyAydan for CrowdSec ❤️
So the
online_api_credentials.yaml
is a random UUID and password, this is NOT your login and password for the console, the only thing that ties this engine to your console account is the <id> you pasted to enroll.
So if you modify this file it will break things, once you ran cscli capi register
you never need to touch the file again
maybe I misread online_api_credentials has a login a password. Login matches the string on my crowdsec account
but you meant the username matches the UUID under the engine page?No what I wanted to say is, that the files have been created, I did not touch the content. I understood that the file is created automaticly. Thats the only thing i checked. I do not have idea what went wrong and how to solve the problem. Yes I meant the unsername matches the UUID under the engine page.
Do you have any environment variables that are defined in the container if you inspect it?
and re reading your post so the installation is working right now:?
Sorry I needed some time to check the enviroment variables. You had the right idea, I forgot to define the ENROLL_KEY within my docker-comose.yml. No it works. I do not know why I did not check that.
Resolving Key not valid Docker installation
This has now been resolved. If you think this is a mistake please run
/unresolve