-
Notifications
You must be signed in to change notification settings - Fork 1.2k
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
security-agent.yaml not found during one-step install #14836
Comments
I have the same issue, but I'm not entirely sure the problem is linked to that last line of log before the error. I also have a log above saying |
+1 for now im going to just do the rename myself, but this feels like a hack |
Hi, Thanks for raising these issues!
This is the normal behavior of the script:
We could improve this by stressing the fact that this log line is not an error (eg. by adding an
My guess here is that you are seeing a message like The security-agent is an optional component of the Agent, that is enabled by creating the When the That is why you are seeing the If you want to enable the security-agent components, you have to create the |
@KSerrania thanks for the detailed explanation.
Yes correct, but the script did also quit and not finish the installation, so I could not start the agent afterwards. |
Thanks for the reply! The fact that the script ends with an error is definitely not expected, would you be able to provide the full (redacted, in case the api key is visible in your command) logs of your failed installation attempt and details about your environment, so we can try troubleshooting your issue? Thanks! |
Sure, I'll try to get into this again tonight or asap and will post the logs here. |
sorry I don't find the time currently, if someone else could share their logs please. |
Hi @KSerrania I also tried running without the flag and this is what I get:
|
Hi @marcustxl, thanks for replying! Could you provide the contents of the Agent logs on that system (they should be in |
Here are the contents:
|
Thanks, that confirms my initial feeling. As mentioned above, the The real error is the In this specific case, you may be able to work around this by specifying |
Also, out of curiosity, could you give some more information on the system you are running the install script on (OS version, is this a physical host, a VM, a container)? |
Hi, just to confirm, setting I am installing the datadog agent inside a docker image |
Yes. To be precise, here are the options you have:
As for the value of the hostname, this is what is used to identify the host in Datadog (and used for the |
Hi @KSerrania, I manage to get it to work once I specify my hostname in the install script. Thank you so much for the prompt reply and suggestions! |
Alternatively, until it is resolved, I used: |
Is there a similar functionality on Windows? Similar to DD_INSTALL_ONLY=true ? |
I am trying to run the agent in a docker image based on Installed via
|
@lkoniecz did you have any luck with this? having the exact same issue with a Debian node image, exact same logs |
@danhuma I think I changed |
I want to install datadog agent on Debian 11 (bullseye). Therefor I use the one-step install script from the docs in the datdog-hq website:
bash -c "$(curl -L https://s3.amazonaws.com/dd-agent/scripts/install_script_agent7.sh)"
When installing the agent v7 on ubuntu using the one-step script, I get an error during installation saying the
/etc/datadog-agent/security-agent.yaml
file is missing. There is asecurity-agent.yaml.example
file, but it doesn't get copied.When using the
DD_INSTALL_ONLY=true
flag, the installation runs through smoothly. When I start the agent afterwards, I get the same error, but the agent runs because I can see continously added common metric checks in the datadog logs appearing.I can not find anything useful about the
security-agent.yaml
file, so are you already aware of this?Can I just copy over the example file as is? At least it seems to work.
The text was updated successfully, but these errors were encountered: