Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

CDP Private cloud command line install miss license.txt

avatar
New Contributor

Tried to install 7.4.4 on Ubuntu 2004 on a VM

We do have a license for private use
On starting server (Base) we have follwing log

 

2022-03-31 16:25:44,839 INFO main:com.cloudera.server.cmf.Main: ================================================================================
2022-03-31 16:25:44,852 INFO main:com.cloudera.server.cmf.Main: Starting SCM Server. JVM Args: [-Dlog4j.configuration=file:/etc/cloudera-scm-server/log4j.properties, -Dfile.encoding=UTF-8, -Dcmf.root.logger=INFO,LOGFILE, -Dcmf.log.dir=/var/log/cloudera-scm-server, -Dcmf.log.file=cloudera-scm-server.log, -Dcmf.jetty.threshhold=WARN, -Dcmf.schema.dir=/opt/cloudera/cm/schema, -Djava.awt.headless=true, -Djava.net.preferIPv4Stack=true, -Dpython.home=/opt/cloudera/cm/python, -XX:+HeapDumpOnOutOfMemoryError, -Xmx4G, -XX:MaxPermSize=256m, -XX:+HeapDumpOnOutOfMemoryError, -XX:HeapDumpPath=/tmp, -XX:+UseConcMarkSweepGC, -XX:+UseParNewGC, -XX:OnOutOfMemoryError={CMF_PATH}/bin/killparent-cm-server], Args: [], Version: 7.4.4 (#15850731 built by jenkins on 20210730-1954 git: aa2740de2751a99075f3d170fd5e55fdfb4c6121)
2022-03-31 16:25:44,996 INFO main:org.springframework.context.support.ClassPathXmlApplicationContext: Refreshing org.springframework.context.support.ClassPathXmlApplicationContext@40f08448: startup date [Thu Mar 31 16:25:44 CEST 2022]; root of context hierarchy
2022-03-31 16:25:45,050 INFO main:org.springframework.beans.factory.xml.XmlBeanDefinitionReader: Loading XML bean definitions from class path resource [webapp/WEB-INF/spring/beanRefFactory.xml]
2022-03-31 16:25:45,446 INFO main:org.springframework.context.support.GenericApplicationContext: Refreshing org.springframework.context.support.GenericApplicationContext@483f6d77: startup date [Thu Mar 31 16:25:45 CEST 2022]; root of context hierarchy
2022-03-31 16:25:45,521 INFO main:com.cloudera.enterprise.CommonMain: Reading database properties from /etc/cloudera-scm-server/db.properties
2022-03-31 16:25:45,526 INFO main:com.cloudera.enterprise.CommonMain: Statistics not enabled, c3p0 JMX disabled
2022-03-31 16:25:49,246 INFO MLog-Init-Reporter:com.mchange.v2.log.MLog: MLog clients using slf4j logging.
2022-03-31 16:25:49,315 INFO main:com.mchange.v2.c3p0.C3P0Registry: Initializing c3p0-0.9.5.5 [built 11-December-2019 22:18:33 -0800; debug? true; trace: 10]
2022-03-31 16:25:49,386 INFO main:com.mchange.v2.c3p0.impl.AbstractPoolBackedDataSource: Initializing c3p0 pool... com.mchange.v2.c3p0.PoolBackedDataSource@4a6bf13 [ connectionPoolDataSource -> com.mchange.v2.c3p0.WrapperConnectionPoolDataSource@c4ab47d6 [ acquireIncrement -> 3, acquireRetryAttempts -> 5, acquireRetryDelay -> 1000, autoCommitOnClose -> false, automaticTestTable -> null, breakAfterAcquireFailure -> false, checkoutTimeout -> 20000, connectionCustomizerClassName -> null, connectionTesterClassName -> com.mchange.v2.c3p0.impl.DefaultConnectionTester, contextClassLoaderSource -> caller, debugUnreturnedConnectionStackTraces -> false, factoryClassLocation -> null, forceIgnoreUnresolvedTransactions -> false, forceSynchronousCheckins -> false, identityToken -> z8kfsxan1q95h461j0ctl4|69e05f61, idleConnectionTestPeriod -> 300, initialPoolSize -> 5, maxAdministrativeTaskTime -> 0, maxConnectionAge -> 0, maxIdleTime -> 0, maxIdleTimeExcessConnections -> 0, maxPoolSize -> 100, maxStatements -> 2500, maxStatementsPerConnection -> 0, minPoolSize -> 5, nestedDataSource -> com.mchange.v2.c3p0.DriverManagerDataSource@f224f59 [ description -> null, driverClass -> null, factoryClassLocation -> null, forceUseNamedDriverClass -> false, identityToken -> z8kfsxan1q95h461j0ctl4|50a691d3, jdbcUrl -> jdbc:postgresql://localhost/scm, properties -> {user=******, password=******} ], preferredTestQuery -> null, privilegeSpawnedThreads -> false, propertyCycle -> 0, statementCacheNumDeferredCloseThreads -> 0, testConnectionOnCheckin -> false, testConnectionOnCheckout -> false, unreturnedConnectionTimeout -> 0, usesTraditionalReflectiveProxies -> false; userOverrides: {} ], dataSourceName -> null, extensions -> {}, factoryClassLocation -> null, identityToken -> z8kfsxan1q95h461j0ctl4|71cb3139, numHelperThreads -> 3 ]
2022-03-31 16:25:54,079 INFO main:com.cloudera.enterprise.CommonMain: Statistics not enabled, JMX will not be registered
2022-03-31 16:25:54,257 INFO main:com.cloudera.enterprise.dbutil.DbUtil: Schema version table already exists.
2022-03-31 16:25:54,261 INFO main:com.cloudera.enterprise.dbutil.DbUtil: DB Schema version 70401.
2022-03-31 16:25:54,263 ERROR main:com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean: Could not read license file /etc/cloudera-scm-server/license.txt
2022-03-31 16:25:54,276 INFO main:com.cloudera.enterprise.dbutil.DbUtil: Schema version table already exists.
2022-03-31 16:25:54,276 INFO main:com.cloudera.enterprise.dbutil.DbUtil: DB Schema version 70401.
2022-03-31 16:25:54,300 INFO main:com.cloudera.enterprise.dbutil.DbUtil: Schema version table already exists.
2022-03-31 16:25:54,301 INFO main:com.cloudera.enterprise.dbutil.DbUtil: DB Schema version 70401.
2022-03-31 16:25:54,302 INFO main:com.cloudera.enterprise.dbutil.DbUtil: Current database schema version: 70401
2022-03-31 16:25:54,332 ERROR main:com.cloudera.server.cmf.components.ScmActive: ScmActive: Unable to retrieve non-local non-loopback IP address. Seeing address: docchris-VirtualBox/127.0.1.1.
2022-03-31 16:25:54,332 ERROR main:com.cloudera.server.cmf.components.ScmActive: ScmActive failed. Bootup = true
2022-03-31 16:25:54,332 ERROR main:com.cloudera.server.cmf.components.ScmActive: ScmActive was not able to access CM identity to validate it.
2022-03-31 16:25:54,332 ERROR main:com.cloudera.server.cmf.components.ScmActive: ScmActive is deferring the validation to the next run in 15 seconds.
2022-03-31 16:25:54,333 INFO main:com.cloudera.enterprise.AbstractWrappedEntityManager: Rolling back transaction that wasn't marked for rollback-only.
java.lang.Exception: Non-thrown exception for stack trace.
at com.cloudera.enterprise.AbstractWrappedEntityManager.close(AbstractWrappedEntityManager.java:163)
at com.cloudera.cmf.persist.CmfEntityManager.close(CmfEntityManager.java:392)
at com.cloudera.server.cmf.components.ScmActive.markScmActive(ScmActive.java:231)
at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.runScmActiveAtBootup(EntityManagerFactoryBean.java:837)
at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:199)
at com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean.getObject(EntityManagerFactoryBean.java:87)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.doGetObjectFromFactoryBean(FactoryBeanRegistrySupport.java:178)
at org.springframework.beans.factory.support.FactoryBeanRegistrySupport.getObjectFromFactoryBean(FactoryBeanRegistrySupport.java:103)
at org.springframework.beans.factory.support.AbstractBeanFactory.getObjectForBeanInstance(AbstractBeanFactory.java:1640)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:254)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
at org.springframework.beans.factory.support.ConstructorResolver.resolveConstructorArguments(ConstructorResolver.java:634)
at org.springframework.beans.factory.support.ConstructorResolver.autowireConstructor(ConstructorResolver.java:145)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAutowireCapableBeanFactory.java:1198)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance(AbstractAutowireCapableBeanFactory.java:1100)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:511)
at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:481)
at org.springframework.beans.factory.support.AbstractBeanFactory$1.getObject(AbstractBeanFactory.java:312)
at org.springframework.beans.factory.support.DefaultSingletonBeanRegistry.getSingleton(DefaultSingletonBeanRegistry.java:230)
at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:308)
at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListableBeanFactory.java:761)
at org.springframework.context.support.AbstractApplicationContext.finishBeanFactoryInitialization(AbstractApplicationContext.java:867)
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:543)
at com.cloudera.server.cmf.Main.bootstrapSpringContext(Main.java:512)
at com.cloudera.server.cmf.Main.<init>(Main.java:281)
at com.cloudera.server.cmf.Main.main(Main.java:254)
2022-03-31 16:25:54,337 INFO main:com.cloudera.server.cmf.bootstrap.EntityManagerFactoryBean: ScmActive at bootup: Completed successfully.
2022-03-31 16:25:54,616 ERROR main:com.cloudera.cmf.crypto.LicenseLoaderImpl: Could not read license file /etc/cloudera-scm-server/license.txt
2022-03-31 16:25:54,617 INFO main:com.cloudera.cmf.crypto.LicenseLoaderImpl: The license state of the product is UNLICENSED
2022-03-31 16:25:54,700 INFO main:org.springframework.context.support.ClassPathXmlApplicationContext: Refreshing

Although, it is not mentionned in the instalation manual, we tried to copy the license file we have either as is or renamed as license.txt and it still gives the same message.

We are stuck, is there a solution or something

4 REPLIES 4

avatar
Master Collaborator

Hi @modususer , 

This may indicate a problem with your license file (e.g. corruption or expired dates). The easiest check is to open the file and check the license expiry date. It will be in plain text. If that is good, there still may be a problem with the hash, if it got corrupted. Does the same exact license file work in any other environment in your organization? Also, is this a trial or production installation of CDP Base you are trying to do? 

 

Regards,

Alex

avatar
New Contributor

License file has a valid expiration date, currently December of 2022

It is a development license

Licence was recognize in another intent of installation via installler on another VM under CentOs 7

avatar
Super Guru

@modususer ,

 

After installation, log on to Cloudera Manager and select Administration > License to go to the license page.

Upload your license file on that page to activate it.

 

If you want/need to apply the license from the command line, you can do so using the REST API. The curl command below is an example of how you can do that:

curl \
  -X POST \
  -u admin:admin \
  "http://cm-home.example.com:7180/api/v43/cm/license" \
  -F license=@/path/to/license.txt

 

Cheers,

André

 

--
Was your question answered? Please take some time to click on "Accept as Solution" below this post.
If you find a reply useful, say thanks by clicking on the thumbs up button.

avatar
New Contributor

Unfortunately, there is no API to call yet as the Base is not starting. It is strange as I thought the licence would be ask at login in Cloud Manager