<?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: Clouder Manager Timeout - Problem with PostgreSQL in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4617#M773</link>
    <description>&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The postgres instance in question here may be in quick shutdown mode where it's honoring only existing connections but not servicing new ones. The postgres instance that you are probably using is 'cloudera-scm-server-db', not just postgresql. Check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# service cloudera-scm-server-db status&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# psql -U scm -p 7432&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then provide the password as found in /etc/cloudera-scm-server/db.properties to login if desired.&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2014 22:21:56 GMT</pubDate>
    <dc:creator>smark</dc:creator>
    <dc:date>2014-01-06T22:21:56Z</dc:date>
    <item>
      <title>Clouder Manager Timeout - Problem with PostgreSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4615#M772</link>
      <description>&lt;P&gt;I haven't logged into the Clouder Manager web portal in a few weeks so I don't know for how long this has happened, but when I tried to log into it today via a web browser, it took a long time and responded with a Server Not Found.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I SSHed into the node with cloudera manager and ran the following commands, receiving the following responses:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;curl localhost:7180&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;lt;head&amp;gt;&amp;lt;meta http-equiv="refresh" content="0;url=/cmf/"&amp;gt;&amp;lt;/head&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;wget localhost:7180&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HTTP request sent, awaiting response... No data received.&lt;BR /&gt;Retrying.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I was able to "telnet 7180" successfully.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;netstat -nltp | grep 7180&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;tcp&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0 0.0.0.0:7180&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 0.0.0.0:*&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; LISTEN&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 10875/java&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Here is some sample output from /var/log/cloudera-scm/server/cloudera-scm-server.log:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2014-01-06 12:09:44,361&amp;nbsp; WARN [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@7090b499:resourcepool.BasicResourcePool@1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@5a670992 --&lt;STRONG&gt; Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Caused by: java.net.ConnectException: Connection refused&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at java.net.PlainSocketImpl.socketConnect(Native Method)&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;2014-01-06 12:26:34,367&amp;nbsp; INFO [591785153@scm-web-5346:cmf.&lt;STRONG&gt;AuthenticationFailureEventListener@19] Authentication failure for user: __cloudera_internal_user__mgmt1-SERVICEMONITOR-7e2762fc6af4771300e7773daf64993b&lt;/STRONG&gt;&lt;BR /&gt;2014-01-06 12:26:34,379&amp;nbsp; WARN [773346975@scm-web-5366:spi.SqlExceptionHelper@143]&lt;STRONG&gt; SQL Error: 0, SQLState: null&lt;/STRONG&gt;&lt;BR /&gt;2014-01-06 12:26:34,388 ERROR [773346975@scm-web-5366:spi.SqlExceptionHelper@144] &lt;STRONG&gt;Connections could not be acquired from the underlying database!&lt;/STRONG&gt;&lt;BR /&gt;2014-01-06 12:26:34,389&amp;nbsp; INFO [773346975@scm-web-5366:cmf.AuthenticationFailureEventListener@19] &lt;STRONG&gt;Authentication failure for user: __cloudera_internal_user__mgmt1-EVENTSERVER-7e2762fc6af4771300e7773daf64993b&lt;/STRONG&gt;&lt;BR /&gt;2014-01-06 12:27:03,384&amp;nbsp; WARN [Task-Thread-for-com.mchange.v2.async.ThreadPerTaskAsynchronousRunner@4995f35:resourcepool.BasicResourcePool@1841] com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@255f13b -- Acquisition Attempt Failed!!! Clearing pending acquires. While trying to acquire a needed new resource, we failed to succeed more than the maximum number of allowed acquisition attempts (30). Last acquisition attempt exception:&lt;BR /&gt;&lt;STRONG&gt;org.postgresql.util.PSQLException: Connection refused. Check that the hostname and port are correct and that the postmaster is accepting TCP/IP connections.&lt;/STRONG&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:136)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Seeing there was a problem with PostgreSQL, issuing "psql" returned the following:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;psql: could not connect to server: No such file or directory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is the server running locally and accepting&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connections on Unix domain socket "/tmp/.s.PGSQL.5432"?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issuing "service postgresql status" returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;postmaster is stopped&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Issuing "service postgresql start" returned:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;/var/lib/pgsql/data is missing. Use "service postgresql initdb" to initialize the cluster first.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; [FAILED]&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Any ideas on why this occurred and what I may do to fix it?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 08:52:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4615#M772</guid>
      <dc:creator>MatthewMoisen</dc:creator>
      <dc:date>2022-09-16T08:52:04Z</dc:date>
    </item>
    <item>
      <title>Re: Clouder Manager Timeout - Problem with PostgreSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4617#M773</link>
      <description>&lt;P&gt;Hi Matthew,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The postgres instance in question here may be in quick shutdown mode where it's honoring only existing connections but not servicing new ones. The postgres instance that you are probably using is 'cloudera-scm-server-db', not just postgresql. Check&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# service cloudera-scm-server-db status&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;# psql -U scm -p 7432&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;then provide the password as found in /etc/cloudera-scm-server/db.properties to login if desired.&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2014 22:21:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4617#M773</guid>
      <dc:creator>smark</dc:creator>
      <dc:date>2014-01-06T22:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Clouder Manager Timeout - Problem with PostgreSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4619#M774</link>
      <description>&lt;P&gt;Hi Smark; thanks for your reply.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;service cloudera-scm-server-db status &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pg_ctl: no server running&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;psql -U scm -p 7432&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;psql: could not connect to server: No such file or directory&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Is the server running locally and accepting&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; connections on Unix domain socket "/tmp/.s.PGSQL.7432"?&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;service cloudera-scm-server-db start&lt;/PRE&gt;&lt;P&gt;DB initialization done.&lt;BR /&gt;waiting for server to start....... done&lt;BR /&gt;server started&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;service cloudera-scm-server-db status &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;pg_ctl: server is running (PID: 24118)&lt;BR /&gt;/usr/bin/postgres "-D" "/var/lib/cloudera-scm-server-db/data"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;After turning on the server, it worked.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 07 Jan 2014 00:52:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/4619#M774</guid>
      <dc:creator>MatthewMoisen</dc:creator>
      <dc:date>2014-01-07T00:52:46Z</dc:date>
    </item>
    <item>
      <title>Re: Clouder Manager Timeout - Problem with PostgreSQL</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/25468#M775</link>
      <description>&lt;P&gt;hey smark , i am having Matthew's same problem but his fix didn't work with me&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;when i tried&amp;nbsp;&lt;/P&gt;&lt;P&gt;service cloudera-scm-server-db start&lt;/P&gt;&lt;P&gt;the output was :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Creating DB navms for role NAVIGATORMETASERVER&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;waiting for server to start.... done&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;server started&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;psql: could not connect to server: Connection timed out&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Is the server running on host "localhost" and accepting&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;TCP/IP connections on port 7432?&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;waiting for server to shut down..... done&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;server stopped&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Unable to create database role navms, giving up&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;waiting for server to start..... done&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;server started&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;its status :&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pg_ctl: server is running (PID: 3808)&lt;BR /&gt;/usr/bin/postgres "-D" "/var/lib/cloudera-scm-server-db/data"&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;but when i tried to turn the server on :&lt;/P&gt;&lt;P&gt;service cloudera-scm-server start&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;it says server running [ok]&lt;/P&gt;&lt;P&gt;but when i get its status after a while i found it dead&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;service cloudera-scm-server status&lt;BR /&gt;cloudera-scm-server dead but pid file exists&lt;BR /&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;My log error is same as the above&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 10 Mar 2015 13:10:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Clouder-Manager-Timeout-Problem-with-PostgreSQL/m-p/25468#M775</guid>
      <dc:creator>tarekabouzeid91</dc:creator>
      <dc:date>2015-03-10T13:10:49Z</dc:date>
    </item>
  </channel>
</rss>

