-
Notifications
You must be signed in to change notification settings - Fork 290
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
Failed to connect to validate entity - Are entities not added automatically? #1320
Comments
Is Another thing to check is on the backend server run |
Yes, the passwords are identical. I guess, otherwise I could not get the access token at the beginning of the log above with HTTP response 200.
|
The sensu-agent daemon, when it starts, will register the entity with the sensu-backend and then after that Puppet is able to check the entity exists and perform other operations after the agent has registered the entity. I would check the logs for sensu-agent to see if anything indicates errors with registering the agent. If the entity list is empty then it also sounds like there was an issue with the backend's sensu-agent registering its entity too. |
What I see, that the sensu agent is running:
The sensu agent log I've started the agent in a terminal and I see the following messages more time:
The SSL certificate of
So I think, the problem is, that the API ports are forwarded with apache rproxy to the VM and apache gives the SSL connection. |
Description of problem
I've installed basic sensu-backend with sensu-puppet with an agent on the same machine (moni2....) and with an agent on another machine (drawmgt....). Both machines are VMs.
I see in the dashboard, that the events of the entity, where the backend and the agent are on the same VM, are working correctlly. However the agent on the separate machine fails already at running puppet with the error message "Failed to connect to validate entity". From the debug log I can see, that the connection to the backend is working correctly, but querying the entity fails with RESPONSE: 404 {"message":"not found","code":2}.
The backend should register new agents automatically.
Use the following manifest files, where moni2... is the backend and drawmgt... is the agent::
Command used and debugging output
See the manifests files above
masterless
Platform and version information
Anything else to add that you think will be helpful?
The debug output of the puppet agent:
The text was updated successfully, but these errors were encountered: