<?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 500 status code received on DELETE method for API: /api/v1/clusters/mycluster in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133330#M31558</link>
    <description>&lt;P&gt;In "Cluster install wizard", "Review" step, when I hit "Deploy" button I get the error message&lt;/P&gt;&lt;PRE&gt;500 status codereceived on DELETE method for API: /api/v1/clusters/mycluster
Error message: Server error&lt;/PRE&gt;&lt;P&gt;The ambari-server log is&lt;/P&gt;&lt;PRE&gt;10 Jun 2016 18:31:19,317 ERROR [pool-3-thread-1] AmbariJpaLocalTxnInterceptor:180 - [DETAILED ERROR] Rollback reason: 
Local Exception Stack: 
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: DELETE command denied to user 'ambari'@'localhost' for table 'alert_notice'
Error Code: 1142
Call: DELETE FROM alert_notice WHERE (history_id IN (?))
        bind =&amp;gt; [1 parameter bound]
Query: DeleteAllQuery(name="AlertNoticeEntity.removeByHistoryIds" referenceClass=AlertNoticeEntity sql="DELETE FROM alert_notice WHERE (history_id IN ?)")&lt;/PRE&gt;&lt;P&gt;And the ambari user privileges on MySQL&lt;/P&gt;&lt;PRE&gt;+--------------+--------+-------------------------------------------+------------+------------+
| host         | user   | password                                  | Grant_priv | Super_priv |
+--------------+--------+-------------------------------------------+------------+------------+
| localhost    | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
| 192.168.1.2  | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
| 127.0.0.1    | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
+--------------+--------+-------------------------------------------+------------+------------+&lt;/PRE&gt;&lt;P&gt;Also, ambari user has granted privileges on `ambari.*`.&lt;/P&gt;&lt;P&gt;I running ambari-server (2.2.2.0) on Debian 7.11 (Wheezy), and MySQL server version is 5.5.49. Thanks in advance.&lt;/P&gt;</description>
    <pubDate>Sat, 11 Jun 2016 04:44:24 GMT</pubDate>
    <dc:creator>facundo</dc:creator>
    <dc:date>2016-06-11T04:44:24Z</dc:date>
    <item>
      <title>500 status code received on DELETE method for API: /api/v1/clusters/mycluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133330#M31558</link>
      <description>&lt;P&gt;In "Cluster install wizard", "Review" step, when I hit "Deploy" button I get the error message&lt;/P&gt;&lt;PRE&gt;500 status codereceived on DELETE method for API: /api/v1/clusters/mycluster
Error message: Server error&lt;/PRE&gt;&lt;P&gt;The ambari-server log is&lt;/P&gt;&lt;PRE&gt;10 Jun 2016 18:31:19,317 ERROR [pool-3-thread-1] AmbariJpaLocalTxnInterceptor:180 - [DETAILED ERROR] Rollback reason: 
Local Exception Stack: 
Exception [EclipseLink-4002] (Eclipse Persistence Services - 2.6.2.v20151217-774c696): org.eclipse.persistence.exceptions.DatabaseException
Internal Exception: com.mysql.jdbc.exceptions.jdbc4.MySQLSyntaxErrorException: DELETE command denied to user 'ambari'@'localhost' for table 'alert_notice'
Error Code: 1142
Call: DELETE FROM alert_notice WHERE (history_id IN (?))
        bind =&amp;gt; [1 parameter bound]
Query: DeleteAllQuery(name="AlertNoticeEntity.removeByHistoryIds" referenceClass=AlertNoticeEntity sql="DELETE FROM alert_notice WHERE (history_id IN ?)")&lt;/PRE&gt;&lt;P&gt;And the ambari user privileges on MySQL&lt;/P&gt;&lt;PRE&gt;+--------------+--------+-------------------------------------------+------------+------------+
| host         | user   | password                                  | Grant_priv | Super_priv |
+--------------+--------+-------------------------------------------+------------+------------+
| localhost    | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
| 192.168.1.2  | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
| 127.0.0.1    | ambari | *AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA | Y          | Y          |
+--------------+--------+-------------------------------------------+------------+------------+&lt;/PRE&gt;&lt;P&gt;Also, ambari user has granted privileges on `ambari.*`.&lt;/P&gt;&lt;P&gt;I running ambari-server (2.2.2.0) on Debian 7.11 (Wheezy), and MySQL server version is 5.5.49. Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 04:44:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133330#M31558</guid>
      <dc:creator>facundo</dc:creator>
      <dc:date>2016-06-11T04:44:24Z</dc:date>
    </item>
    <item>
      <title>Re: 500 status code received on DELETE method for API: /api/v1/clusters/mycluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133331#M31559</link>
      <description>&lt;P&gt;seems you dont have delete on alert_notice table can you check it with mysql&lt;/P&gt;&lt;P&gt;in mysql prompt&lt;/P&gt;&lt;P&gt;use information_schema&lt;/P&gt;&lt;P&gt;select * from TABLE_PRIVILEGES;&lt;/P&gt;</description>
      <pubDate>Sat, 11 Jun 2016 15:55:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133331#M31559</guid>
      <dc:creator>rajkumar_singh</dc:creator>
      <dc:date>2016-06-11T15:55:56Z</dc:date>
    </item>
    <item>
      <title>Re: 500 status code received on DELETE method for API: /api/v1/clusters/mycluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133332#M31560</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11071/facundo.html" nodeid="11071"&gt;@Facundo Bianco&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Is it a fresh installation of the cluster? It's strange that in a fresh cluster installation, there are entries in alert_notice table. &lt;/P&gt;&lt;P&gt;What is observed when you do a select * from alert_notice ? how many rows are returned? Please backup the database using mysql dump and then try to remove a row from this table to check the privileges [without committing]&lt;/P&gt;</description>
      <pubDate>Mon, 13 Jun 2016 16:32:36 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133332#M31560</guid>
      <dc:creator>vpoornalingam</dc:creator>
      <dc:date>2016-06-13T16:32:36Z</dc:date>
    </item>
    <item>
      <title>Re: 500 status code received on DELETE method for API: /api/v1/clusters/mycluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133333#M31561</link>
      <description>&lt;BR /&gt;&lt;P&gt;&lt;A href="https://community.hortonworks.com/users/11071/facundo.html"&gt;@Facundo Bianco&lt;/A&gt; Please check disk space on the master node&lt;/P&gt;</description>
      <pubDate>Tue, 14 Aug 2018 17:59:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133333#M31561</guid>
      <dc:creator>santoshh</dc:creator>
      <dc:date>2018-08-14T17:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: 500 status code received on DELETE method for API: /api/v1/clusters/mycluster</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133334#M31562</link>
      <description>&lt;UL&gt;
&lt;LI&gt;I managed to solve the problem&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;ambari-server restart &lt;/P&gt;,</description>
      <pubDate>Tue, 12 Feb 2019 17:15:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/500-status-code-received-on-DELETE-method-for-API-api-v1/m-p/133334#M31562</guid>
      <dc:creator>dewei123</dc:creator>
      <dc:date>2019-02-12T17:15:09Z</dc:date>
    </item>
  </channel>
</rss>

