Error during agent enrollment

Hello everyone,
I am trying to install Elastic Agent version 8.16.2 on Windows servers.
On some servers the installation succeeds, but on others it fails with the error:
failed to create new agent info: could not get agent info from store: failed to load from ioStore: failed to ensure key during encrypted disk store Load: could not get agent key: Key not valid for use in specific state.

Does anyone recognize this issue and found a solution?

Hi @Viktor_Movita

So there is always the question of what is different about the servers that are failing?
Different Security Setup? Permissions etc...

Also, there were some potential related issues, perhaps update to 8.17

And I always suggest reviewing

Hello @Viktor_Movita

I had seen a similar error and the issue was that the host was unable to connect to the fleet server, which turned out to be a connectivity problem:

failed to create new agent info: could not get agent info from store: failed to load from ioStore: failed to ensure key during encrypted disk store Load

Could you please confirm if you experienced the same situation? This would help others troubleshoot more effectively in the future.

Thanks!!