<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Data Base Agent error in Splunk AppDynamics</title>
    <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717490#M519</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/157690"&gt;@Farzaneh.Dehghani&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;I found this information in an existing support ticket. Please use it as general guidelines for potentially helping you debug this and finding a solution.&lt;/P&gt;

&lt;DIV&gt;In the problematic environments, below is the component versions:&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;controller version : 4.5.17&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;db agent version:&amp;nbsp;22.2.&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;ES version : 4.5.2.20599&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;2nd problematic Env:&amp;nbsp;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;controller version : 4.5.17&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;db agent version:&amp;nbsp;4.5.18&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So we started by checking the 500 error in UI. Also, you were not getting any metrics for wait state/queries or activity tab of the database agent, rest all data was reporting.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Since this error meant a problem from the ES(Event Service) side, we thought of checking if other components using ES were working or not on this controller but you didn't have EUM or analytics setup.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- But when we went on the Analytics dashboard we could see the "Failed to receive query results [HtTTP 401 Unauthorized]" error there&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So We logged into the admin.jsp and checked if the ES key was correctly stored there or not as compared to the ES properties file. And we could see some keys had mismatch.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- The "on.premise.event.service.key" was not equals to the value of "ad.accountmanager.key.controller" key in the in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://events-service-api-store.properties/" rel="noreferrer nofollow noopener" target="_blank"&gt;events-service-api-store.properties&lt;/A&gt;&amp;nbsp;file of ES.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So we fixed it by setting the value correctly in admin.jsp. However still 401 error was showing up.&lt;/DIV&gt;
&lt;DIV&gt;- We checked the ES file again and noticed that one more key was incorrect. Basically, all these below property value should be same :&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;ad.accountmanager.key.controller=[Redacted]&lt;BR /&gt;ad.accountmanager.key.mds=[Redacted]&lt;BR /&gt;ad.accountmanager.key.ops=[Redacted]&lt;/PRE&gt;
&lt;DIV&gt;However in your case, "ad.accountmanager.key.ops" key was also different from the other two.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
- So we added value for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ad.accountmanager.key.mds&lt;/STRONG&gt;&amp;nbsp;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://events-service-api-store.properties/" rel="noreferrer nofollow noopener" target="_blank"&gt;events-service-api-store.properties&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as same as&amp;nbsp;&lt;STRONG&gt;ad.accountmanager.key.controller's value&amp;nbsp;&lt;/STRONG&gt;and restarted the event service.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- However ES failed to stop due to JAVA_HOME missing. So we set the JAVA_HOME first :&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;export JAVA_HOME= "/opt/appdynamics/platform/product/jre/&amp;lt;version&amp;gt;"&lt;/PRE&gt;
&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Then it was able to stop and restart.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Post restart we reloaded the UI and we could see the error was gone and all the db mon data was also reporting now.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So the issue is resolved for this controller and everything is working fine now.&amp;nbsp; Attaching a few screenshots captured during the call.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
    <pubDate>Fri, 22 Apr 2022 17:09:40 GMT</pubDate>
    <dc:creator>iamryan</dc:creator>
    <dc:date>2022-04-22T17:09:40Z</dc:date>
    <item>
      <title>Data Base Agent error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717487#M516</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;

&lt;P&gt;The reason for my question is that I have installed the database agent, but on the Controller, I can't see queries and activities.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;When I take a look at the logs, I have the following:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FarzanehDehghani_0-1650462151968.png" style="width: 1200px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35502i15D6436E999DDE16/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;and on controller UI I get this message:&lt;/P&gt;
&lt;P&gt;&lt;SPAN class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="FarzanehDehghani_1-1650462239846.png" style="width: 400px;"&gt;&lt;span class="lia-inline-image-display-wrapper" image-alt="image.png"&gt;&lt;img src="https://community.splunk.com/t5/image/serverpage/image-id/35500iCEB3CDD65BAF6B8E/image-size/large?v=v2&amp;amp;px=999" role="button" title="image.png" alt="image.png" /&gt;&lt;/span&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;Thanks for your Help!&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 13:46:50 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717487#M516</guid>
      <dc:creator>Farzaneh_Dehgha</dc:creator>
      <dc:date>2022-04-20T13:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Data Base Agent error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717488#M517</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/157690"&gt;@Farzaneh.Dehghani&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;Is your Controller On-prem or SaaS? Can you let me know what Controller version you are running?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Apr 2022 20:50:05 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717488#M517</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2022-04-20T20:50:05Z</dc:date>
    </item>
    <item>
      <title>Re: Data Base Agent error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717489#M518</link>
      <description>&lt;P&gt;Hi Ryan Paredez,&lt;/P&gt;&lt;P&gt;my controller is On-prem and the version is 21.4.4-1301.&lt;/P&gt;&lt;P&gt;Thanks for your Help&lt;/P&gt;</description>
      <pubDate>Thu, 21 Apr 2022 09:13:09 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717489#M518</guid>
      <dc:creator>Farzaneh_Dehgha</dc:creator>
      <dc:date>2022-04-21T09:13:09Z</dc:date>
    </item>
    <item>
      <title>Re: Data Base Agent error</title>
      <link>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717490#M519</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;A href="https://community.appdynamics.com/t5/user/viewprofilepage/user-id/157690"&gt;@Farzaneh.Dehghani&lt;/A&gt;,&lt;/P&gt;

&lt;P&gt;I found this information in an existing support ticket. Please use it as general guidelines for potentially helping you debug this and finding a solution.&lt;/P&gt;

&lt;DIV&gt;In the problematic environments, below is the component versions:&lt;/DIV&gt;
&lt;PRE&gt;&lt;CODE&gt;controller version : 4.5.17&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;db agent version:&amp;nbsp;22.2.&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;ES version : 4.5.2.20599&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;&lt;BR /&gt;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;2nd problematic Env:&amp;nbsp;&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;controller version : 4.5.17&lt;/CODE&gt;&lt;BR /&gt;&lt;CODE&gt;db agent version:&amp;nbsp;4.5.18&lt;/CODE&gt;&lt;/PRE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So we started by checking the 500 error in UI. Also, you were not getting any metrics for wait state/queries or activity tab of the database agent, rest all data was reporting.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Since this error meant a problem from the ES(Event Service) side, we thought of checking if other components using ES were working or not on this controller but you didn't have EUM or analytics setup.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- But when we went on the Analytics dashboard we could see the "Failed to receive query results [HtTTP 401 Unauthorized]" error there&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So We logged into the admin.jsp and checked if the ES key was correctly stored there or not as compared to the ES properties file. And we could see some keys had mismatch.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- The "on.premise.event.service.key" was not equals to the value of "ad.accountmanager.key.controller" key in the in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://events-service-api-store.properties/" rel="noreferrer nofollow noopener" target="_blank"&gt;events-service-api-store.properties&lt;/A&gt;&amp;nbsp;file of ES.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So we fixed it by setting the value correctly in admin.jsp. However still 401 error was showing up.&lt;/DIV&gt;
&lt;DIV&gt;- We checked the ES file again and noticed that one more key was incorrect. Basically, all these below property value should be same :&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;ad.accountmanager.key.controller=[Redacted]&lt;BR /&gt;ad.accountmanager.key.mds=[Redacted]&lt;BR /&gt;ad.accountmanager.key.ops=[Redacted]&lt;/PRE&gt;
&lt;DIV&gt;However in your case, "ad.accountmanager.key.ops" key was also different from the other two.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
- So we added value for&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;STRONG&gt;ad.accountmanager.key.mds&lt;/STRONG&gt;&amp;nbsp;in&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;A href="http://events-service-api-store.properties/" rel="noreferrer nofollow noopener" target="_blank"&gt;events-service-api-store.properties&lt;/A&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;as same as&amp;nbsp;&lt;STRONG&gt;ad.accountmanager.key.controller's value&amp;nbsp;&lt;/STRONG&gt;and restarted the event service.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- However ES failed to stop due to JAVA_HOME missing. So we set the JAVA_HOME first :&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;PRE&gt;export JAVA_HOME= "/opt/appdynamics/platform/product/jre/&amp;lt;version&amp;gt;"&lt;/PRE&gt;
&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Then it was able to stop and restart.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- Post restart we reloaded the UI and we could see the error was gone and all the db mon data was also reporting now.&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;- So the issue is resolved for this controller and everything is working fine now.&amp;nbsp; Attaching a few screenshots captured during the call.&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;</description>
      <pubDate>Fri, 22 Apr 2022 17:09:40 GMT</pubDate>
      <guid>https://community.splunk.com/t5/Splunk-AppDynamics/Data-Base-Agent-error/m-p/717490#M519</guid>
      <dc:creator>iamryan</dc:creator>
      <dc:date>2022-04-22T17:09:40Z</dc:date>
    </item>
  </channel>
</rss>

