<?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: Can not start cloudera-scm-server-db because of &amp;quot;The CM is using external DB&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65836#M76429</link>
    <description>&lt;P&gt;Yes, As i wrote on p&lt;SPAN&gt;revious replies. I update my jdk version and restart the cluster. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the restart crashed. so on my master node"dbs01", I manually closed the server, agent and server-db service on terminal using instrunctions "stop". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then i want to restart server, agent and server-db service on terminal, but&amp;nbsp; encounter &lt;STRONG&gt;Can not start cloudera-scm-server-db because of "The CM is using external DB",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fortunately, on your colleague's help i restart above three service on "dbs01" and recover to visit CM web page. During this period i did nothing on HDFS datanode，such as “dbs02”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;I use CM web page to restart total cluster. However it fail at start HDFS datanode "dbs02"&amp;nbsp; I look up the status on dbs02, the information was shown in my previous reply. And the error in log is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;HTTP ERROR 502
Problem accessing /cmf/process/195/logs. Reason:

    BAD_GATEWAY&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;when starting and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;HTTP ERROR 500
Problem accessing /cmf/role/46/logs. Reason:

    INTERNAL_SERVER_ERROR&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;when starting fail.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The above is the detail .If need more detail, please contact me . thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Mar 2018 01:14:50 GMT</pubDate>
    <dc:creator>Chuang</dc:creator>
    <dc:date>2018-03-28T01:14:50Z</dc:date>
    <item>
      <title>Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65772#M76422</link>
      <description>&lt;P&gt;I've updated jdk from 1.8_131 to 1.8_151 for CDH5. So i need to restart the cluster to make it take affect. In the begining i use cloudrea manager web page to restart, but it failed when zookeeper started which is the first step. Then I made a bad choice which is close cloudrea manager in terminal including kill -9 postgresql process. After that, i could't open the cloudrea manager web page.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I use following instructions to start the cluster.&lt;/P&gt;&lt;P&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;&lt;STRONG&gt; service cloudera-scm-server-db start&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&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; service cloudera-scm-server start&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&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; service cloudera-scm-agent start&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;All of them are failed, because &lt;STRONG&gt;&lt;EM&gt;`/var/log/cloudera-scm-server`&lt;/EM&gt; &lt;/STRONG&gt;and &lt;STRONG&gt;&lt;EM&gt;`/var/log/cloudera-scm-agent`&lt;/EM&gt;&lt;/STRONG&gt; disappear.&lt;BR /&gt;&lt;BR /&gt;So I creat these two files manually also include&lt;EM&gt; &lt;STRONG&gt;`dg.log`&lt;/STRONG&gt;&lt;/EM&gt; and &lt;EM&gt;&lt;STRONG&gt;`cloudera-scm-agent.log`&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;At this time, the `server` and `agent` could start. But &lt;EM&gt;&lt;STRONG&gt;`server-db`&lt;/STRONG&gt; &lt;/EM&gt;still can not. The next is some details.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt; Starting cloudera-scm-server-db (via systemctl): Job for cloudera-scm-server-db.service failed because the control process exited with error code. &lt;BR /&gt; See "systemctl status cloudera-scm-server-db.service" and "journalctl -xe" for details&lt;/PRE&gt;&lt;P&gt;journalctl -xe&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;PRE&gt;The CM is using external DB. Failed to start embedded DB service, giving up&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://ip1.i.lithium.com/06d67c23433a5a2525d9d0fae0a5ba0ddb754060/68747470733a2f2f692e737461636b2e696d6775722e636f6d2f6c446b7a792e706e67" border="0" alt="status -all" width="1063" height="492" /&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, what should i do now? thank you thank you very much!!!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Mar 2018 10:41:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65772#M76422</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-26T10:41:05Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65793#M76423</link>
      <description>To troubleshoot your cloudera-scm-server-db startup, try taking a look at the log files postgresql writes under the following paths:&lt;BR /&gt;&lt;BR /&gt;/var/log/cloudera-scm-server-db/* and,&lt;BR /&gt;/var/lib/cloudera-scm-server-db/*&lt;BR /&gt;&lt;BR /&gt;I'd also strongly recommend migrating to a managed RDBMS so this is straightforward in future.</description>
      <pubDate>Tue, 27 Mar 2018 02:05:00 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65793#M76423</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-03-27T02:05:00Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65798#M76424</link>
      <description>&lt;P&gt;Yes，I read the log file. and change the&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;/etc/cloudera-scm-server/db.properties&lt;/PRE&gt;&lt;P&gt;before the change ，it had a line&lt;/P&gt;&lt;PRE&gt;com.cloudera.cmf.db.setType=External&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;I delete it .and now the server-db recover to run. cloudera-scm-server and agent work well too.&lt;/P&gt;&lt;P&gt;But the web page on port 7180 still can't be connect.&lt;/P&gt;&lt;P&gt;This is the error in cloudera-scm-server.out&lt;/P&gt;&lt;PRE&gt;JAVA_HOME=/usr/java/jdk1.8.0_151
Java HotSpot(TM) 64-Bit Server VM warning: ignoring option MaxPermSize=256m; support was removed in 8.0
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/cloudera-scm-server/cloudera-scm-server.log (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
        at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:133)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
        at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
        at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127)
        at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at com.cloudera.server.cmf.Main.&amp;lt;clinit&amp;gt;(Main.java:158)
log4j:ERROR setFile(null,true) call failed.
java.io.FileNotFoundException: /var/log/cloudera-scm-server/cmf-server-perf.log (Permission denied)
        at java.io.FileOutputStream.open0(Native Method)
        at java.io.FileOutputStream.open(FileOutputStream.java:270)
        at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:213)
        at java.io.FileOutputStream.&amp;lt;init&amp;gt;(FileOutputStream.java:133)
        at org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
        at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
        at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
        at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
        at org.apache.log4j.PropertyConfigurator.parseCatsAndRenderers(PropertyConfigurator.java:639)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:504)
        at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
        at org.apache.log4j.LogManager.&amp;lt;clinit&amp;gt;(LogManager.java:127)
        at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:242)
        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:254)
        at com.cloudera.server.cmf.Main.&amp;lt;clinit&amp;gt;(Main.java:158)
Exception in thread "main" org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'com.cloudera.server.cmf.TrialState': Cannot resolve reference to bean 'entityManagerFactoryBean' while setting constructor argument; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:328)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:106)
        at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:616)
        at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:148)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1003)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:907)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:485)
        at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:456)
        at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:293)
        at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:222)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:290)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:585)
        at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:895)
        at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:425)
        at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:392)
        at com.cloudera.server.cmf.Main.&amp;lt;init&amp;gt;(Main.java:242)
        at com.cloudera.server.cmf.Main.main(Main.java:216)
Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'entityManagerFactoryBean': FactoryBean threw exception on object creation; nested exception is org.hibernate.exception.GenericJDBCException: Could not open connection
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:149)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:102)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1440)
        at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:247)
        at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:192)
        at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:322)
        ... 17 more
Caused by: org.hibernate.exception.GenericJDBCException: Could not open connection
        at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:54)
        at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:125)
        at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:110)
        at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:221)
        at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.getConnection(LogicalConnectionImpl.java:157)
        at org.hibernate.engine.jdbc.internal.JdbcCoordinatorImpl.coordinateWork(JdbcCoordinatorImpl.java:282)
        at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:2000)
        at org.hibernate.internal.SessionImpl.doWork(SessionImpl.java:1986)
        at com.cloudera.enterprise.dbutil.DbUtil.getSchemaVersion(DbUtil.java:192)
        at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.checkVersionDoFail(EntityManagerFactoryBean.java:269)
        at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:127)
        at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:65)
        at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:142)
        ... 22 more
Caused by: java.sql.SQLException: Connections could not be acquired from the underlying database!
        at com.mchange.v2.sql.SqlUtils.toSQLException(SqlUtils.java:106)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:529)
        at com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource.getConnection(AbstractPoolBackedDataSource.java:128)
        at org.hibernate.service.jdbc.connections.internal.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:84)
        at org.hibernate.internal.AbstractSessionImpl$NonContextualJdbcConnectionAccess.obtainConnection(AbstractSessionImpl.java:292)
        at org.hibernate.engine.jdbc.internal.LogicalConnectionImpl.obtainConnection(LogicalConnectionImpl.java:214)
        ... 31 more
Caused by: com.mchange.v2.resourcepool.CannotAcquireResourceException: A ResourcePool could not acquire a resource from its primary factory or source.
        at com.mchange.v2.resourcepool.BasicResourcePool.awaitAvailable(BasicResourcePool.java:1319)
        at com.mchange.v2.resourcepool.BasicResourcePool.prelimCheckoutResource(BasicResourcePool.java:557)
        at com.mchange.v2.resourcepool.BasicResourcePool.checkoutResource(BasicResourcePool.java:477)
        at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool.checkoutPooledConnection(C3P0PooledConnectionPool.java:525)
        ... 35 more&lt;/PRE&gt;&lt;P&gt;I find the file &lt;EM&gt;&lt;STRONG&gt;cloudera-scm-server-db&lt;/STRONG&gt;&lt;/EM&gt; do not exist. So I manually creat one. Besides,&amp;nbsp;cloudera-scm-server.log is&amp;nbsp; also not exist. I manually creat on too.&amp;nbsp;&lt;/P&gt;&lt;P&gt;So now all the service is running unless the web page can't be accessed.&lt;/P&gt;&lt;P&gt;The port 7180 is not on listeing when use netstat to see.&lt;/P&gt;&lt;P&gt;The&amp;nbsp; selinux is disabled now.&lt;/P&gt;&lt;PRE&gt;pg_ctl: server is running (PID: 16867)
/usr/bin/postgres "-D" "/var/lib/cloudera-scm-server-db/data" "-k" "/var/run/cloudera-scm-server/"
&lt;STRONG&gt;Checking jexec statusnetconsole module not loaded&lt;/STRONG&gt;
Configured devices:
lo enp0s25 enp9s0
Currently active devices:
lo enp0s25 enp9s0 virbr0&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 06:11:43 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65798#M76424</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-27T06:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65800#M76425</link>
      <description>Thank you for clarifying!&lt;BR /&gt;When recreating the log directories, ensure its ownership is "cloudera-scm"&lt;BR /&gt;user, so the service can write into it. Once the logging is available, it&lt;BR /&gt;can be referenced for further diagnosis.&lt;BR /&gt;&lt;BR /&gt;Also, please do not change the db.properties unless you're actually&lt;BR /&gt;migrating to a new DB. Try a revert back to the old config after confirming&lt;BR /&gt;that the "scm" Postgres DB on port 7342 is live and available (via psql&lt;BR /&gt;commands/etc.).&lt;BR /&gt;</description>
      <pubDate>Tue, 27 Mar 2018 06:22:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65800#M76425</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-03-27T06:22:49Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65808#M76426</link>
      <description>&lt;P&gt;Thank you for your help!&amp;nbsp; I recreat those file by user "cloudera- scm" .Now the log can be wrote in .&lt;/P&gt;&lt;P&gt;Here is the error information in &lt;EM&gt;&lt;STRONG&gt;cloudera-scm-server.log&lt;/STRONG&gt;&lt;/EM&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;2018-03-27 16:21:49,681 WARN com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1:com.mchange.v2.resourcepool.BasicResourcePool: com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask@31d74216 -- 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 (5). Last acquisition attempt exception: 
org.postgresql.util.PSQLException: FATAL: password authentication failed for user "scm"
	at org.postgresql.core.v3.ConnectionFactoryImpl.doAuthentication(ConnectionFactoryImpl.java:291)
	at org.postgresql.core.v3.ConnectionFactoryImpl.openConnectionImpl(ConnectionFactoryImpl.java:108)
	at org.postgresql.core.ConnectionFactory.openConnection(ConnectionFactory.java:66)
	at org.postgresql.jdbc2.AbstractJdbc2Connection.&amp;lt;init&amp;gt;(AbstractJdbc2Connection.java:125)
	at org.postgresql.jdbc3.AbstractJdbc3Connection.&amp;lt;init&amp;gt;(AbstractJdbc3Connection.java:30)
	at org.postgresql.jdbc3g.AbstractJdbc3gConnection.&amp;lt;init&amp;gt;(AbstractJdbc3gConnection.java:22)
	at org.postgresql.jdbc4.AbstractJdbc4Connection.&amp;lt;init&amp;gt;(AbstractJdbc4Connection.java:30)
	at org.postgresql.jdbc4.Jdbc4Connection.&amp;lt;init&amp;gt;(Jdbc4Connection.java:24)
	at org.postgresql.Driver.makeConnection(Driver.java:393)
	at org.postgresql.Driver.connect(Driver.java:267)
	at com.mchange.v2.c3p0.DriverManagerDataSource.getConnection(DriverManagerDataSource.java:135)
	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:182)
	at com.mchange.v2.c3p0.WrapperConnectionPoolDataSource.getPooledConnection(WrapperConnectionPoolDataSource.java:171)
	at com.mchange.v2.c3p0.impl.C3P0PooledConnectionPool$1PooledConnectionResourcePoolManager.acquireResource(C3P0PooledConnectionPool.java:137)
	at com.mchange.v2.resourcepool.BasicResourcePool.doAcquire(BasicResourcePool.java:1014)
	at com.mchange.v2.resourcepool.BasicResourcePool.access$800(BasicResourcePool.java:32)
	at com.mchange.v2.resourcepool.BasicResourcePool$AcquireTask.run(BasicResourcePool.java:1810)
	at com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread.run(ThreadPoolAsynchronousRunner.java:547)&lt;/PRE&gt;&lt;P&gt;&amp;nbsp; So i check the db.&lt;SPAN&gt;properties&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[root@dbs01 cloudera-scm-server]# cat /etc/cloudera-scm-server/db.properties
# Auto-generated by scm_prepare_database.sh on Tue Mar 27 11:30:37 CST 2018
#
# For information describing how to configure the Cloudera Manager Server
# to connect to databases, see the "Cloudera Manager Installation Guide."
#
com.cloudera.cmf.db.type=postgresql
com.cloudera.cmf.db.host=localhost:7432
com.cloudera.cmf.db.name=scm
com.cloudera.cmf.db.user=scm
&lt;STRONG&gt;com.cloudera.cmf.db.password=scm_password&lt;/STRONG&gt;
com.cloudera.cmf.db.setupType=EMBEDDED&lt;/PRE&gt;&lt;P&gt;I changg &lt;STRONG&gt;db.password&lt;/STRONG&gt; to the password which i get from&amp;nbsp;&lt;STRONG&gt;generated_password.txt&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;But it still has the same error.&lt;/P&gt;&lt;P&gt;I check that port 7432 is listening&lt;/P&gt;&lt;P&gt;So what should i do next?&amp;nbsp; Very very thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 09:05:33 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65808#M76426</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-27T09:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65814#M76427</link>
      <description>&lt;P&gt;I change scm's password by&amp;nbsp;&lt;A href="https://www.cloudera.com/documentation/enterprise/5-6-x/topics/cm_ig_embed_pstgrs.html#cmig_topic_5_7__section_myy_czd_zm" target="_self"&gt;https://www.cloudera.com/documentation/enterprise/5-6-x/topics/cm_ig_embed_pstgrs.html#cmig_topic_5_7__section_myy_czd_zm&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and update it in db.properties .&lt;/P&gt;&lt;P&gt;Now, the web page could work.&amp;nbsp;&lt;/P&gt;&lt;P&gt;But my hdfs in datanode could not work.&lt;/P&gt;&lt;PRE&gt;[root@dbs02 ~]# service --status-all
● cloudera-scm-agent.service - LSB: Cloudera SCM Agent
   Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-agent; bad; vendor preset: disabled)
   Active: active (exited) since Tue 2018-03-27 17:45:30 CST; 26min ago
     Docs: man:systemd-sysv-generator(8)
  Process: 20467 ExecStop=/etc/rc.d/init.d/cloudera-scm-agent stop (code=exited, status=0/SUCCESS)
  Process: 20527 ExecStart=/etc/rc.d/init.d/cloudera-scm-agent start (code=exited, status=0/SUCCESS)

Mar 27 17:45:29 dbs02 systemd[1]: Starting LSB: Cloudera SCM Agent...
Mar 27 17:45:29 dbs02 su[20542]: (to root) root on none
Mar 27 17:45:30 dbs02 cloudera-scm-agent[20527]: Starting cloudera-scm-agent: [  OK  ]
Mar 27 17:45:30 dbs02 systemd[1]: Started LSB: Cloudera SCM Agent.
● cloudera-scm-server.service - LSB: Cloudera SCM Server
   Loaded: loaded (/etc/rc.d/init.d/cloudera-scm-server; bad; vendor preset: disabled)
   Active: active (exited) since Thu 2018-01-18 13:23:43 CST; 2 months 7 days ago
     Docs: man:systemd-sysv-generator(8)

Mar 04 16:08:49 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:15] Failed to add dependency on +postgresql.service, ignoring: Invalid argument
Mar 04 16:08:49 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:13] Failed to add dependency on +cloudera-scm-server-db.service, ignoring: Invalid argument
Mar 04 16:08:49 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:14] Failed to add dependency on +mysql.service, ignoring: Invalid argument
Mar 04 16:08:49 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:15] Failed to add dependency on +postgresql.service, ignoring: Invalid argument
Mar 04 16:12:23 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:13] Failed to add dependency on +cloudera-scm-server-db.service, ignoring: Invalid argument
Mar 04 16:12:23 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:14] Failed to add dependency on +mysql.service, ignoring: Invalid argument
Mar 04 16:12:23 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:15] Failed to add dependency on +postgresql.service, ignoring: Invalid argument
Mar 04 16:12:24 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:13] Failed to add dependency on +cloudera-scm-server-db.service, ignoring: Invalid argument
Mar 04 16:12:24 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:14] Failed to add dependency on +mysql.service, ignoring: Invalid argument
Mar 04 16:12:24 dbs02 systemd[1]: [/run/systemd/generator.late/cloudera-scm-server.service:15] Failed to add dependency on +postgresql.service, ignoring: Invalid argument
pg_ctl: server is running (PID: 1319)
/usr/bin/postgres "-D" "/var/lib/cloudera-scm-server-db/data" "-k" "/var/run/cloudera-scm-server/"
Checking jexec statusnetconsole module not loaded
Configured devices:
lo enp0s25 enp9s0
Currently active devices:
lo enp0s25 enp9s&lt;BR /&gt;&lt;BR /&gt;"bad gateway" is the error which the web page show . &lt;BR /&gt;And now the Zookeeper start to run.&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 10:22:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65814#M76427</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-27T10:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65833#M76428</link>
      <description>&lt;P&gt;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/26504"&gt;@Chuang&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I see you state "my hdfs in datanode could not work".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please show us or explain what you tried to do, what you expected, and what actually happened.&lt;/P&gt;&lt;P&gt;What helped you conclude there was something wrong with HDFS?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Ben&lt;/P&gt;</description>
      <pubDate>Tue, 27 Mar 2018 23:46:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65833#M76428</guid>
      <dc:creator>bgooley</dc:creator>
      <dc:date>2018-03-27T23:46:27Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65836#M76429</link>
      <description>&lt;P&gt;Yes, As i wrote on p&lt;SPAN&gt;revious replies. I update my jdk version and restart the cluster. &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;But the restart crashed. so on my master node"dbs01", I manually closed the server, agent and server-db service on terminal using instrunctions "stop". &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then i want to restart server, agent and server-db service on terminal, but&amp;nbsp; encounter &lt;STRONG&gt;Can not start cloudera-scm-server-db because of "The CM is using external DB",&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Fortunately, on your colleague's help i restart above three service on "dbs01" and recover to visit CM web page. During this period i did nothing on HDFS datanode，such as “dbs02”.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Then&amp;nbsp;I use CM web page to restart total cluster. However it fail at start HDFS datanode "dbs02"&amp;nbsp; I look up the status on dbs02, the information was shown in my previous reply. And the error in log is&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;HTTP ERROR 502
Problem accessing /cmf/process/195/logs. Reason:

    BAD_GATEWAY&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;when starting and&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;HTTP ERROR 500
Problem accessing /cmf/role/46/logs. Reason:

    INTERNAL_SERVER_ERROR&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;when starting fail.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;The above is the detail .If need more detail, please contact me . thanks for your help!&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Mar 2018 01:14:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65836#M76429</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-28T01:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: Can not start cloudera-scm-server-db because of "The CM is using external DB"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65892#M76430</link>
      <description>&lt;P&gt;I've check agent's log file /var/log/cloudera-scm-agent.log (dbs02).&lt;/P&gt;&lt;P&gt;The error is No route to host.&lt;/P&gt;&lt;P&gt;It's a common error, just need to check the firewall condition and close it .&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So until now, my problem is solved, thanks all of you.!!!&lt;/P&gt;</description>
      <pubDate>Thu, 29 Mar 2018 12:50:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Can-not-start-cloudera-scm-server-db-because-of-quot-The-CM/m-p/65892#M76430</guid>
      <dc:creator>Chuang</dc:creator>
      <dc:date>2018-03-29T12:50:51Z</dc:date>
    </item>
  </channel>
</rss>

