Symptoms
The command to configure the snapshot for events service fails with the below error:
[2017-02-15T13:24:49,558+01:00] Error occurred [Error executing request to event service. Status code: [401]. Exception message: ["The supplied auth information is incorrect or not authorized."]. For more information, view the event service logs.]
Diagnosis
For creating the snapshots for the Events Service, the key ad.accountmanager.key.ops is used from the Events Service properties file for authorization. However, this property is not picked up at run time by the Events Service. If you are changing or adding this key to the property file, the Events Service needs to be restarted.
Solution
Restart the events service if the value for the property ad.accountmanager.key.ops in the events-service-api-store.properties file is added or modified.