I got the same issue and after restarting the whole environment it didn't work, the issue in my case was the EUM database not working properly. the error was Analytics service unavailable: Host 'nginx:9080' returned code 401 with message 'Status code: [401], Message: HTTP 401 Unauthorized'. Please contact support if this error persists. FYI: I'm sure it was working well but I was testing stoping EUM and going in the upgrade process before this case. my solution is ps -ef | grep -i eum | grep -v grep
kill -9 eum-PID
ps -ef | grep -i database | grep -v grep
kill -9 eum-database-PID
cd /opt/appdynamics/eum/mysql
bin/mysqld_safe --defaults-file=/opt/appdynamics/eum/mysql/db.cnf
cd /opt/appdynamics/eum/eum-processor
./bin/eum.sh start You need to make sure no errors go out from the eum start command and run ps command again to make sure the process is running well and sure analytics.accountAccessKey == ad.accountmanager.key.eum ==appdynamics.es.eum.key as Rayan has mentioned above also, this could happen if the event service is not in a healthy state in this scenario, you should go cd /opt/appdynamics/platform/platform-admin/
bin/platform-admin.sh show-events-service-health
#in case it's not healthy but every node is running
curl http://localhost:9200/_cat/shards?v
curl http://localhost:9200/_cat/indices?v
#Note to make sure port 9200 is enabled in each event service node by enabling it from each node
vi /opt/appdynamics/platform/product/events-service/processor/conf/events-service-api-store.properties
ad.es.node.http.enabled=true
curl http://localhost:9081/healthcheck?pretty=true
# to grep Un Assingned indexes
curl -XGET localhost:9200/_cat/shards?h=index,shard,prirep,state,unassigned.reason| grep UNASSIGNED
#Manually assign each node by
curl -XPOST 'localhost:9200/_cluster/reroute' -d '{
"commands" : [ {
"allocate" : {
"index" : "manually-add-each-index-name",
"shard" : 0,
"node" : "event-service-ip",
"allow_primary" : true
}
}
]}'
... View more