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

Constant error: "datadog.api: No agent or invalid configuration file found" #416

Closed
apenney opened this issue Jul 3, 2019 · 3 comments
Closed

Comments

@apenney
Copy link

apenney commented Jul 3, 2019

I'm getting a lot of errors like:

2019-07-03 16:20:12,233 [INFO:140620589405376:26627] datadog.api: No agent or invalid configuration file found

After digging in a bit I realized in datadog/util/config.py we have:

    path = os.path.join('/etc/dd-agent', DATADOG_CONF)
    if os.path.exists(path):
        return path
    raise PathNotFound(path)

However, on my machines (AWS Linux 2):

# ls -lad /etc/datadog-agent/
drwxr-xr-x 4 dd-agent dd-agent 187 Jun 10 19:04 /etc/datadog-agent/

Does it make sense to check for both paths, change this, etc? Something definitely feels wrong here.

@dabcoder
Copy link
Contributor

dabcoder commented Aug 1, 2019

Thanks for reporting this @apenney, we'll be looking into this and get back to you, thanks for the details.

@dabcoder
Copy link
Contributor

dabcoder commented Oct 2, 2019

We've taken care of this in #428 (downgrade to warning and add an option hostname_from_config=False) to turn this off completely - it will be available in the next release, and we aim to deprecate this feature in the future.

@bkabrda
Copy link
Contributor

bkabrda commented Oct 2, 2019

Closing this issue now, see @dabcoder's comment above on how to get rid of these errors.

@bkabrda bkabrda closed this as completed Oct 2, 2019
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

3 participants