<?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: I could not log in in the Abari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110223#M50699</link>
    <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try to reindex the table but i need Superuser rights
to do this !&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select oid,relname from pg_class where oid =16384 or oid=2704;                               
 oid  |          relname                                                                              
------+---------------------------                                                                                                                                                                           
 2704 | pg_type_typname_nsp_index                                                                                                  
(1 row)                                                                                                 
&lt;/PRE&gt;&lt;P&gt;Then I try to REINDEX
how I can get own rights to the index ?&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; REINDEX INDEX pg_type_typname_nsp_index;                                                      
ERROR:  must be owner of relation pg_type_typname_nsp_index                                                                                                                                          
ambari=&amp;gt; \du                                                                                                        List of roles                                                                         
 Role name  | Attributes  | Member of                                                               
------------+-------------+-----------                                                                 
 ambari     |             | {}                                                                     
 kappacherr |             | {}                                                                      
 postgres   | Superuser   | {}                                                                         
            : Create role                                                                              
            : Create DB                          
&lt;/PRE&gt;</description>
    <pubDate>Thu, 05 Jan 2017 18:45:40 GMT</pubDate>
    <dc:creator>bob1212_human</dc:creator>
    <dc:date>2017-01-05T18:45:40Z</dc:date>
    <item>
      <title>I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110216#M50692</link>
      <description>&lt;P&gt;Hello every
body&lt;/P&gt;&lt;P&gt;I start with
the VM Sandbox and I could not log in in the Abari&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="11050-ambari.png" style="width: 443px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/23324iC063E0664ABBCDBA/image-size/medium?v=v2&amp;amp;px=400" role="button" title="11050-ambari.png" alt="11050-ambari.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;netstat -taupen |grep
8080&lt;/P&gt;&lt;P&gt;tcp  0 
0 :::18080   :::*  LISTEN  513 
65820  2221/java 
&lt;/P&gt;&lt;P&gt;tcp  0 
0 :::8080 
:::*  LISTEN  0 
162604  20044/java 
&lt;/P&gt;&lt;P&gt;[root@sandbox ~]#&lt;/P&gt;&lt;P&gt;  So that
looks god for me&lt;/P&gt;&lt;P&gt;Then I look
at the server log and I find that!&lt;/P&gt;&lt;P&gt;I hope that
someone could help me bat I had no idea wat I should do as next!&lt;/P&gt;&lt;P&gt;I also
restart the Amari service twice, but the same ;-(&lt;/P&gt;&lt;P&gt;tail
/var/log/ambari-server/ambari-server.log&lt;/P&gt;&lt;PRE&gt;aused by: org.postgresql.util.PSQLException: ERROR: could not read block 0 of relation base/16384/2704: read only 0 of 8192 bytes  &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2161)   &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1890)   &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)  &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:559)  &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)  &lt;/PRE&gt;&lt;PRE&gt; at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:302)   &lt;/PRE&gt;&lt;PRE&gt; at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.executeSelect(DatabaseAccessor.java:1009)   &lt;/PRE&gt;&lt;PRE&gt; at org.eclipse.persistence.internal.databaseaccess.DatabaseAccessor.basicExecuteCall(DatabaseAccessor.java:644)  
&lt;/PRE&gt;</description>
      <pubDate>Mon, 19 Aug 2019 11:28:19 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110216#M50692</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2019-08-19T11:28:19Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110217#M50693</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/15214/bob1212human.html" nodeid="15214"&gt;@bob human&lt;/A&gt;&lt;P&gt;Problem seems to be at postgres. Can you please try to connect to postgres and check if you can query any table. &lt;/P&gt;&lt;P&gt;#df -h&lt;/P&gt;&lt;P&gt;#psql -U ambari ambari &lt;/P&gt;&lt;P&gt;ambari&amp;gt;select * from host;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 01:36:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110217#M50693</guid>
      <dc:creator>rguruvannagari</dc:creator>
      <dc:date>2017-01-04T01:36:37Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110218#M50694</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3576/rguruvannagari.html"&gt;rguruvannagari&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;&lt;P&gt;I try to connect but I don’t know the Password for
user ambari !&lt;/P&gt;&lt;P&gt;Where I can find it or where can I set it?&lt;/P&gt;&lt;PRE&gt;[root@sandbox /]# psql -U ambari ambari                                                                                                                                                                            
Password for user ambari:                                                                                                                                                                                          
psql: FATAL:  password authentication failed for user "ambari" 
&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:41:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110218#M50694</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-04T18:41:50Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110219#M50695</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/15214/bob1212human.html" nodeid="15214"&gt;@bob human&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The default ambari DB password should be "bigdata". Did you try the same?&lt;/P&gt;&lt;P&gt;As your error clearly indicates DB corruption (need a DB fix). Hence if it is fresh installation then we will suggest you to reinstall the Ambari Server.As  while performing the &lt;EM&gt;"ambari-server setup"&lt;/EM&gt;  it will freshly setup an Embedded Postgres Database (with all the required configurations).    &lt;/P&gt;&lt;P&gt;Or else you can choose some external non default Databases as well if you want.  &lt;/P&gt;&lt;P&gt;&lt;A href="http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/ch_amb_ref_using_non_default_databases.html" target="_blank"&gt;http://docs.hortonworks.com/HDPDocuments/Ambari-2.2.2.0/bk_ambari_reference_guide/content/ch_amb_ref_using_non_default_databases.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 18:45:38 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110219#M50695</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-01-04T18:45:38Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110220#M50696</link>
      <description>&lt;PRE&gt;@jay SenSharma 

I run the ambari-server setup 
And ambari-admin-password-reset But the same log entry and the same ;-( 
I check the pg_hba.conf file and maybe there is the problem!

cat /var/lib/pgsql/data/pg_hba.conf

# TYPE  DATABASE    USER        CIDR-ADDRESS          METHOD 
# "local" is for Unix domain socket connections only         
local   all   postgres                               ident   
# IPv4 local connections:                                    
host    all   postgres         127.0.0.1/32          ident   
# IPv6 local connections:                                    
host    all   postgres         ::1/128               ident   
local  all  ambari,mapred md5                                
host  all   ambari,mapred 0.0.0.0/0  md5                     
host  all   ambari,mapred ::/0 md5                           

&lt;/PRE&gt;</description>
      <pubDate>Wed, 04 Jan 2017 21:28:42 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110220#M50696</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-04T21:28:42Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110221#M50697</link>
      <description>&lt;PRE&gt;[root@sandbox /]# psql -U raj_ops ambari                                                           
psql: FATAL:  no pg_hba.conf entry for host "[local]", user "raj_ops", database "ambari", SSL off
&lt;/PRE&gt;&lt;P&gt;Now I try to connect with raj_ops to ambari and I
get that error!&lt;/P&gt;</description>
      <pubDate>Wed, 04 Jan 2017 22:07:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110221#M50697</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-04T22:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110222#M50698</link>
      <description>&lt;P&gt;I solve this problem
whit update the file /var/lib/pgsql/data/pg_hba.conf&lt;/P&gt;&lt;P&gt;to &lt;/P&gt;&lt;PRE&gt;# "local" is for Unix domain socket connections only                                            
local   all   postgres                               trust                               
# IPv4 local connections:                                                                                                                                                                      
host    all   postgres         127.0.0.1/32          trust                                     
host    all   all              172.16.4.183/24       trust                                                                                           
# IPv6 local connections:                                                                                                                                                                                          
host    all   postgres         ::1/128               trust                                      
local  all   all md5                                                                           
host  all   ambari,mapred 0.0.0.0/0  md5                                                       
host  all   ambari,mapred ::/0 md5              
&lt;/PRE&gt;&lt;P&gt;It is a work around!&lt;/P&gt;&lt;P&gt;but anyway the ambari login did not work !&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 00:12:09 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110222#M50698</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-05T00:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110223#M50699</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I try to reindex the table but i need Superuser rights
to do this !&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; select oid,relname from pg_class where oid =16384 or oid=2704;                               
 oid  |          relname                                                                              
------+---------------------------                                                                                                                                                                           
 2704 | pg_type_typname_nsp_index                                                                                                  
(1 row)                                                                                                 
&lt;/PRE&gt;&lt;P&gt;Then I try to REINDEX
how I can get own rights to the index ?&lt;/P&gt;&lt;PRE&gt;ambari=&amp;gt; REINDEX INDEX pg_type_typname_nsp_index;                                                      
ERROR:  must be owner of relation pg_type_typname_nsp_index                                                                                                                                          
ambari=&amp;gt; \du                                                                                                        List of roles                                                                         
 Role name  | Attributes  | Member of                                                               
------------+-------------+-----------                                                                 
 ambari     |             | {}                                                                     
 kappacherr |             | {}                                                                      
 postgres   | Superuser   | {}                                                                         
            : Create role                                                                              
            : Create DB                          
&lt;/PRE&gt;</description>
      <pubDate>Thu, 05 Jan 2017 18:45:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110223#M50699</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-05T18:45:40Z</dc:date>
    </item>
    <item>
      <title>Re: I could not log in in the Abari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110224#M50700</link>
      <description>&lt;P&gt;I solve the problem
now !!!!!!&lt;/P&gt;&lt;P&gt;it is working ! &lt;span class="lia-unicode-emoji" title=":winking_face:"&gt;😉&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I reindex the index withe the posgres user and it
works now!&lt;/P&gt;&lt;PRE&gt;ambari=# REINDEX INDEX pg_type_typname_nsp_index;                                                     
REINDEX                                                                                               
ambari=# \di pg_type_typname_nsp_index;                                                                                                                                                                       
                          List of relations                                                                                                                                                                   
   Schema   |           Name            | Type  |  Owner   |  Table                                    -----------+---------------------------+-------+----------+---------                                  pg_catalog | pg_type_typname_nsp_index | index | postgres | pg_type                                                                                                                                          
(1 row)                                                     
&lt;/PRE&gt;&lt;P&gt;Many thanks to all
for the great support!&lt;/P&gt;&lt;P&gt;special thanx to &lt;A href="https://community.hortonworks.com/users/3418/jsensharma.html"&gt;Jay SenSharma&lt;/A&gt;&lt;/P&gt;&lt;P&gt;BOB&lt;/P&gt;</description>
      <pubDate>Thu, 05 Jan 2017 19:07:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/I-could-not-log-in-in-the-Abari/m-p/110224#M50700</guid>
      <dc:creator>bob1212_human</dc:creator>
      <dc:date>2017-01-05T19:07:01Z</dc:date>
    </item>
  </channel>
</rss>

