-
Notifications
You must be signed in to change notification settings - Fork 238
unable to reach /latest/meta-data/iam/security-credentials/; Status 500 #201
Comments
Looks like you have an issue with the Agent being unable to contact the Server. I'd check all the usual issues:
The Agent uses gRPC client load-balancing to forward requests to all running servers, if no servers are available then it can't make requests. To help diagnose things you can add some environment variables to cause the gRPC lib to log more output. For more background please see #94 (comment). Let me know what you find- I'm 99.9% certain it'll be a configuration/cluster error rather than something in Kiam. |
Thanks Paul, I was able to get into the containers and run the health commands with extra logging but I don't seem to be getting any better ideas since there isn't much detail in the error to go on.. Since the server seems to work, I am assuming that means the TLS certs are ok. From the agent output it appears that DNS is working as well. btw, I am using v2.7. Are the liveness and readiness probes needed? I have them commented out as I read there was some issues with them. Agent output:
Server output:
|
Ok, so TLS doesn't appear to be a problem- there does appear to be some kind of problem with the Agent connecting to the Server though- are there any other quirks in how your pods connect/networking is configured? What happens if you try and curl to the server? |
I was able to figure out the communication issue was due to a misconfiguration in the security groups which was prevent the agent from talking to the server. I then was able to rerun the health commands and now I see more meaningful error messages. Thank you for taking the time to work through this issue, much appreciated!
|
Hello, I am running into an issue where it appears the kiam_agent is not able to get credentials but I am thinking it is ultimately not able to talk to the kiam_server. I haven't gotten any errors on the server side so I am not sure if it is even getting that far.
This is running on EKS.
I have checked the kubedns and dnsmasq logs and they are clean. I am able to curl the meta-data service from the pod without issue, it is just this endpoint that is not working. Any input would be awesome as I am kind of spinning my wheels on this one for a while. I have debug logging enabled but I am wondering if there is a way to get more details on what is causing the 500 error.
Kiam agent logs:
Kiam agent intercepting other meta-data commands successfully:
Kiam server logs:
The text was updated successfully, but these errors were encountered: