<?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>question Re: Consistency check failed on Ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133705#M18784</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt; Clean the browser cache and refresh the ambari console to see the behavior before any other change. &lt;/P&gt;</description>
    <pubDate>Wed, 10 Feb 2016 02:42:39 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2016-02-10T02:42:39Z</dc:date>
    <item>
      <title>Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133699#M18778</link>
      <description>&lt;P&gt;I installed Ambari 2.1.2.1 and HDP 2.3.2 on RH Linux 6.6. Installation went fine and services are all up and running but when I try to make any config change on Ambari UI, I see the following message.&lt;/P&gt;&lt;P&gt;The configuration changes could not be validated for consistency due to an unknown error. Your changes have not been saved yet. Would you like to proceed and save the changes?&lt;/P&gt;&lt;P&gt;How to get rid of this error?&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="1958-ambari-check-failed.png" style="width: 978px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22172iFBDA996281DC3A35/image-size/medium?v=v2&amp;amp;px=400" role="button" title="1958-ambari-check-failed.png" alt="1958-ambari-check-failed.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 09:08:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133699#M18778</guid>
      <dc:creator>rbalam</dc:creator>
      <dc:date>2019-08-19T09:08:48Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133700#M18779</link>
      <description>&lt;P&gt;this is the first time I see this, you might have problems in the ambari database. Can you inspect the browser console and see what commands it executes against database &lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:13:16 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133700#M18779</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-10T02:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133701#M18780</link>
      <description>&lt;P&gt;I am using Firefox 44.0&lt;/P&gt;&lt;P&gt;and here is the trace from it.&lt;/P&gt;&lt;P&gt;
TRACE: The url is: /api/v1/clusters/hwtest?fields=Clusters/health_report,Clusters/total_hosts,alerts_summary_hosts&amp;amp;minimal_response=true app.js:154162:7
Status code 200: Success. app.js:54173:3
App.componentsStateMapper execution time: timer started app.js:55315
App.componentsStateMapper execution time: 29.04ms app.js:55360
TRACE: The url is: /api/v1/clusters/hwtest/host_components?fields=HostRoles/component_name,HostRoles/host_name&amp;amp;minimal_response=true app.js:154162:7
Status code 200: Success. app.js:54173:3
TRACE: The url is: /api/v1/clusters/hwtest/configurations?type=cluster-env app.js:154162:7
Status code 200: Success. app.js:54173:3
App.componentConfigMapper execution time: timer started app.js:55076
App.componentConfigMapper execution time: 5.95ms app.js:55125&lt;/P&gt;&lt;P&gt;
&lt;STRONG&gt;Config validation failed:  Object { readyState: 4, setRequestHeader: .ajax/v.setRequestHeader(), getAllResponseHeaders: .ajax/v.getAllResponseHeaders(), getResponseHeader: .ajax/v.getResponseHeader(), overrideMimeType: .ajax/v.overrideMimeType(), abort: .ajax/v.abort(), done: f.Callbacks/p.add(), fail: f.Callbacks/p.add(), progress: f.Callbacks/p.add(), state: .Deferred/h.state(), 14 more… } error Internal Server Error Object { type: "POST", timeout: 180000, dataType: "json", statusCode: Object, headers: Object, url: "/api/v1/stacks/HDP/versions/2.3/val…", data: "{"hosts":["falbdcdq0001v.farmersinsurance.com","falbdcdq0002v.farmersinsurance.com","falbdcdq0003v.farmersinsurance.com","falbdcdq0004v.farmersinsurance.com","falbdcdq0005v.farmersinsurance.com","falbdcdq0006v.farmersinsurance.com","falbdcdq0007v.farmersinsurance.com"],"services":["AMBARI_METRICS","ATLAS","FALCON","FLUME","HBASE","HDFS","HIVE","KAFKA","KNOX","MAPREDUCE2","OOZIE","PIG","RANGER","RANGER_KMS","SPARK","SQOOP","STORM","TEZ","YARN","ZOOKEEPER"],"validate":"configurations","recommendations":{"blueprint":{"host_groups":[{"name":"host-group-1","components":[{"name":"FALCON_CLIENT"},{"name":"HBASE_CLIENT"},{"name":"HDFS_CLIENT"},{"name":"HCAT"},{"name":"HIVE_CLIENT"},{"name":"MAPREDUCE2_CLIENT"},{"name":"OOZIE_CLIENT"},{"name":"PIG"},{"name":"SPARK_CLIENT"},{"name":"SQOOP"},{"name":"TEZ_CLIENT"},{"name":"YARN_CLIENT"},{"name":"ZOOKEEPER_CLIENT"},{"name":"METRICS_MONITOR"},{"name":"FALCON_CLIENT"},{"name":"HBASE_CLIENT"},{"name":"HCAT"},{"name":"HDFS_CLIENT"},{"name":"HIVE_CLIENT"[…], context: Object, beforeSend: ajax&amp;lt;.send/opt.beforeSend(), success: ajax&amp;lt;.send/opt.success(), 2 more… } app.js:64175:5
&lt;/STRONG&gt;
Error code 500: Internal Error on server side. app.js:54195:3
Config validation failed. Going ahead with saving of configs app.js:64188:7

TRACE: The url is: /api/v1/clusters?fields=Clusters/provisioning_state app.js:154162:7
Status code 200: Success. app.js:54173:3
TRACE: The url is: /api/v1/clusters/hwtest/requests?to=end&amp;amp;page_size=10&amp;amp;fields=Requests app.js:154162:7
Status code 200: Success. app.js:54173:3
&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:33:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133701#M18780</guid>
      <dc:creator>rbalam</dc:creator>
      <dc:date>2016-02-10T02:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133702#M18781</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt;
&lt;/P&gt;&lt;P&gt;What happens when you hit proceed? and while doing that do tail -f on /var/log/ambari-server/ambari-server.log&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:34:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133702#M18781</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T02:34:04Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133703#M18782</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt;&lt;P&gt; try restarting ambari server and agents, then try again. HTTP code 500 means a problem on the server side.&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:35:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133703#M18782</guid>
      <dc:creator>aervits</dc:creator>
      <dc:date>2016-02-10T02:35:44Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133704#M18783</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt; See this thread &lt;A href="http://stackoverflow.com/questions/4789613/ajax-500-internal-server-error" target="_blank"&gt;http://stackoverflow.com/questions/4789613/ajax-500-internal-server-error&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:36:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133704#M18783</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T02:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133705#M18784</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt; Clean the browser cache and refresh the ambari console to see the behavior before any other change. &lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 02:42:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133705#M18784</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T02:42:39Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133706#M18785</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/392/rbalam.html" nodeid="392"&gt;@rbalam&lt;/A&gt;  You may want to check few settings on permissions...I had the same issue with this&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# ls -l  /etc/login.defs&lt;/P&gt;&lt;P&gt;-rw-r--r--. 1 root root 1816 2015-03-27 13:14 /etc/login.defs&lt;/P&gt;&lt;P&gt;[root@sandbox ~]# &lt;/P&gt;</description>
      <pubDate>Wed, 10 Feb 2016 03:45:41 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133706#M18785</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2016-02-10T03:45:41Z</dc:date>
    </item>
    <item>
      <title>Re: Consistency check failed on Ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133707#M18786</link>
      <description>&lt;P&gt;I have experienced this problem after changing Ambari Server to run as a non privileged user "&lt;EM&gt;ambari-server&lt;/EM&gt;". In my case I can see in the logs (/var/log/ambari-server/ambari-server.log) the following:&lt;/P&gt;&lt;PRE&gt;12 Sep 2018 22:06:57,515 ERROR [ambari-client-thread-6396] BaseManagementHandler:61 - Caught a system exception while attempting to create a resource: Error occured during stack advisor command invocation: Cannot create /var/run/ambari-server/stack-recommendations
&lt;/PRE&gt;&lt;P&gt;This error happens because in CentOS/RedHat  &lt;STRONG&gt;/var/run&lt;/STRONG&gt; is really a symlink to &lt;STRONG&gt;/run&lt;/STRONG&gt; which is a &lt;STRONG&gt;tmpfs&lt;/STRONG&gt; filesystem mounted at boot time from RAM. So if I manually create the folder with the required privileges it won't survive a reboot and because the unprivileged user running Ambari Server is unable to create the required directory the error occurs.&lt;/P&gt;&lt;P&gt;I was able to partially fix this using &lt;STRONG&gt;systemd-tmpfiles&lt;/STRONG&gt; feature by creating a file /etc/tmpfiles.d/ambari-server.conf with following content:&lt;/P&gt;&lt;PRE&gt;d /run/ambari-server 0775 ambari-server hadoop -
d /run/ambari-server/stack-recommendations 0775 ambari-server hadoop -&lt;/PRE&gt;&lt;P&gt;With this file in place running "&lt;STRONG&gt;systemd-tmpfiles --create&lt;/STRONG&gt;" will create the folders with the required privileges. According to the following RedHat documentation this should be automagically run at boot time to setup everything:&lt;/P&gt;&lt;P&gt;&lt;A href="https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7/" target="_blank"&gt;https://developers.redhat.com/blog/2016/09/20/managing-temporary-files-with-systemd-tmpfiles-on-rhel7/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;However sometimes this doesn't happens (I don't know why) and I have to run the previous command manually to fix this error.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Sep 2018 08:29:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Consistency-check-failed-on-Ambari/m-p/133707#M18786</guid>
      <dc:creator>lvazquez</dc:creator>
      <dc:date>2018-09-13T08:29:36Z</dc:date>
    </item>
  </channel>
</rss>

