cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Analytic service is unavailable

deepanshu.arya
Creator

Hi,

 

We have installed the AppD 4.4 & event service and EUM on different hosts, now we are getting the error that analytic service is unavailable status code error 401.

 

Please help.

 

19 REPLIES 19

Hi.

I have the same problems with the EUM, Analytics on-premise install.

 

First, I received 401 errors, and in this week, the controller and the events servers were upgraded to the las version 4.5.15, also the EUM... but now the error:

 

com.appdynamics.eum.rest.exception.ApiException: Resource Timing is not enabled for accountName XXX

 

happen's.

 

Can you solve this and say me what's happening?

 

Note: check the coincidence of the license as you recommended, and is the same in the 3 places.

 

When you did your upgrade, did you re-provision the license.lic file on your EUM server seperately from your Controller, as per this documentation? https://docs.appdynamics.com/display/PRO45/Provision+EUM+Licenses





Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

Yes,

 

The aprovision license was realized again.

 

Certainly, while I do test EUM with a system, this working in almost metrics, not all work showing that errors.

 

In a widgets like Resource Performance, I see another error (image attached)

 

"Event type does not exist for account ..."

 

2019-11-13_13-04-34.jpg

Interesting. Could it be an error with the eum_db mySQL database? What does the server.log say? I see the Internal Error in the top-right hand corner. You can usually click the cog wheel in the top right and then click on "Export Controller logs" and just unzip and pull out the server.log account.





Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

When "Internal Server Error" shows, in EUM logs write:

 

com.appdynamics.eum.rest.exception.ApiException: Resource Timing is not enabled for accountName XXX

 

I Believe that the other error in widget, is not related... Is very strange

Can you check server.log, not the EUM log?





Found something helpful? Click the Accept as Solution button to help others find answers faster.
Liked something? Click the Thumbs Up button.

https://docs.appdynamics.com/display/PRO45/Connect+to+the+Events+Service

 

in my on-premise case, In admin.jsp - I changed the value from analytics.api.appdynamics.com to myproxyiptoeventsservice:9080

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 
} 
}
]}'

 

Ryan.Paredez
Community Manager

Hi @Abdulrahman.Kazamel,

Thanks for sharing your solution!


Thanks,

Ryan, Cisco AppDynamics Community Manager




Found something helpful? Click the Accept as Solution button to help others find answers faster.

Liked something? Click the Thumbs Up button.



Check out Observabiity in Action

new deep dive videos weekly in the Knowledge Base.

Nour.Alghamdi
Creator

Hi team,

I have the same issue and I make sure all keys are correct