-
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
[BUG] Unable to read authentication token file #16559
Comments
I have the same exact issue. I was able to fix this by manually setting Running from Windows 11, WSL2 Ubuntu 22.04, Agent version 7.46.0. |
I have the same issue running as sidecar on ECS fargate. |
Hi everyone, I'm having the same issue, this problem started when I updated datadog agent from 7.38.2 to 7.49.1. I can't use the same soluction as @azaky because we have a fleet of hots, we don't have the exacle hostname for all. |
Happens for me as well when upgrading from 7.45.1 to 7.49 or even 7.49.1.
Downgrading to 7.45.1 worked for me. |
Happening for me too. (Agent is running Kubernetes, on nodes using Debian Bullseye.) Why is this marked as completed when there is no resolution? Manually declaring the hostname doesn't even make sense as a solution here, it has nothing to do with "no such file or directory" errors. Our agents are not having problems finding their hostnames anyway. Some sample logs when it goes to write the file:
Of course we have tried changing By the way, I tested 7.45.1 per the last user's comment, but it still has this issue. I even tried as old of images as 7.38.2, still has the issue. I know 7.32.4 works, because that's what we're running now. |
We figured the problem out. At some point, the docker image was changed so that it didn't declare these directories as Apparently, other features of the agent require even more capabilities, so running as root removes the most roadblocks for you, so, pick your poison, I guess. |
2rs2ts so what did you do to give it the necessary capabilities |
@baltox61 it seems to depend on the exact stuff your container is doing, but, you at least have to give the container Alternatively you can just run the container as root, which is the default configuration when you pull a manifest from DataDog's docs site. The image itself says not to run as root, but the manifest they provide on their docs site overrides the If you are asking "how does one give a container extra capabilities in Kubernetes," then it's all in the |
Agent Environment
Describe what happened:
Describe what you expected:
Steps to reproduce the issue:
Result: Agent installed and started up correctly:
sudo datadog-agent status
Result:
Additional environment details (Operating System, Cloud provider, etc):
The text was updated successfully, but these errors were encountered: