Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
12-26-2017 06:21 AM
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.
Solved! Go to Solution.
11-13-2019 09:33 AM - last edited on 11-13-2019 09:59 AM by Ryan.Paredez
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.
11-13-2019 02:04 PM - edited 11-13-2019 02:05 PM
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
11-13-2019 02:24 PM
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 ..."
11-14-2019 11:19 AM
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.
11-14-2019 11:28 AM
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
11-14-2019 11:42 AM
Can you check server.log, not the EUM log?
05-05-2020 01:36 PM
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
01-16-2024 05:47 AM - edited 01-18-2024 03:43 AM
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
}
}
]}'
01-16-2024 10:07 AM
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.
02-06-2024 04:15 AM
Hi team,
I have the same issue and I make sure all keys are correct
User | Count |
---|---|
3 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form