Interestingly enough, the issue below happened during savanna’s attempt to 
setup and start ambari server.  Manual attempts to do so on the given host 
succeeded.  Does that provide a hint?

— Jon

On Jan 21, 2014, at 9:03 AM, Jon Maron <[email protected]> wrote:

> Hi,
> 
>  On a centos 6 VM image I am seeing the output below from the ambari server.  
> Any help diagnosing the underlying database issue would be appreciated.
> 
> 07:00:41,564  INFO [main] Configuration:323 - Generation of file with password
> 07:00:41,596  INFO [main] Configuration:514 - Hosts Mapping File null
> 07:00:41,596  INFO [main] HostsMap:60 - Using hostsmap file null
> 07:00:42,594 ERROR [main] MasterKeyServiceImpl:109 - Master key is not 
> provided as a System property or an environment varialble.
> 07:00:42,595  INFO [main] Configuration:415 - Credential provider creation 
> failed.
> Master key initialization failed.
> 07:00:43,522  INFO [main] AmbariServer:447 - Getting the controller
> 07:00:45,455 ERROR [main] AmbariServer:457 - Failed to run the Ambari Server
> com.google.inject.ProvisionException: Guice provision errors:
> 
> 1) Error injecting method, javax.persistence.PersistenceException: Exception 
> [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): 
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: FATAL: the database 
> system is shutting down
> Error Code: 0
>  at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:140)
>  at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.class(AmbariMetaInfo.java:67)
>  while locating org.apache.ambari.server.api.services.AmbariMetaInfo
>    for field at 
> org.apache.ambari.server.controller.AmbariServer.ambariMetaInfo(AmbariServer.java:86)
>  at 
> org.apache.ambari.server.controller.AmbariServer.class(AmbariServer.java:86)
>  while locating org.apache.ambari.server.controller.AmbariServer
> 
> 1 error
>       at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:987)
>       at 
> com.google.inject.internal.InjectorImpl.getInstance(InjectorImpl.java:1013)
>       at 
> org.apache.ambari.server.controller.AmbariServer.main(AmbariServer.java:449)
> Caused by: javax.persistence.PersistenceException: Exception 
> [EclipseLink-4002] (Eclipse Persistence Services - 2.4.0.v20120608-r11652): 
> org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: FATAL: the database 
> system is shutting down
> Error Code: 0
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:602)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.getDatabaseSession(EntityManagerFactoryDelegate.java:186)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryDelegate.createEntityManagerImpl(EntityManagerFactoryDelegate.java:278)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManagerImpl(EntityManagerFactoryImpl.java:304)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryImpl.createEntityManager(EntityManagerFactoryImpl.java:282)
>       at 
> com.google.inject.persist.jpa.JpaPersistService.begin(JpaPersistService.java:70)
>       at 
> com.google.inject.persist.jpa.JpaLocalTxnInterceptor.invoke(JpaLocalTxnInterceptor.java:49)
>       at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.getRepository(AmbariMetaInfo.java:810)
>       at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.getConfigurationInformation(AmbariMetaInfo.java:651)
>       at 
> org.apache.ambari.server.api.services.AmbariMetaInfo.init(AmbariMetaInfo.java:142)
>       at 
> org.apache.ambari.server.api.services.AmbariMetaInfo$$FastClassByGuice$$202844bc.invoke(<generated>)
>       at 
> com.google.inject.internal.cglib.reflect.$FastMethod.invoke(FastMethod.java:53)
>       at 
> com.google.inject.internal.SingleMethodInjector$1.invoke(SingleMethodInjector.java:56)
>       at 
> com.google.inject.internal.SingleMethodInjector.inject(SingleMethodInjector.java:90)
>       at 
> com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
>       at 
> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
>       at 
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>       at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>       at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>       at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>       at 
> com.google.inject.internal.SingleFieldInjector.inject(SingleFieldInjector.java:53)
>       at 
> com.google.inject.internal.MembersInjectorImpl.injectMembers(MembersInjectorImpl.java:110)
>       at 
> com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:94)
>       at 
> com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:254)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter$1.call(ProviderToInternalFactoryAdapter.java:46)
>       at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1031)
>       at 
> com.google.inject.internal.ProviderToInternalFactoryAdapter.get(ProviderToInternalFactoryAdapter.java:40)
>       at com.google.inject.Scopes$1$1.get(Scopes.java:65)
>       at 
> com.google.inject.internal.InternalFactoryToProviderAdapter.get(InternalFactoryToProviderAdapter.java:40)
>       at 
> com.google.inject.internal.InjectorImpl$4$1.call(InjectorImpl.java:978)
>       at 
> com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1024)
>       at com.google.inject.internal.InjectorImpl$4.get(InjectorImpl.java:974)
>       ... 2 more
> Caused by: Exception [EclipseLink-4002] (Eclipse Persistence Services - 
> 2.4.0.v20120608-r11652): org.eclipse.persistence.exceptions.DatabaseException
> Internal Exception: org.postgresql.util.PSQLException: FATAL: the database 
> system is shutting down
> Error Code: 0
>       at 
> org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:324)
>       at 
> org.eclipse.persistence.exceptions.DatabaseException.sqlException(DatabaseException.java:319)
>       at 
> org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:138)
>       at 
> org.eclipse.persistence.sessions.DatasourceLogin.connectToDatasource(DatasourceLogin.java:162)
>       at 
> org.eclipse.persistence.internal.sessions.DatabaseSessionImpl.loginAndDetectDatasource(DatabaseSessionImpl.java:685)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerFactoryProvider.login(EntityManagerFactoryProvider.java:213)
>       at 
> org.eclipse.persistence.internal.jpa.EntityManagerSetupImpl.deploy(EntityManagerSetupImpl.java:542)
>       ... 35 more
> Caused by: org.postgresql.util.PSQLException: FATAL: the database system is 
> shutting down
>       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.<init>(AbstractJdbc2Connection.java:125)
>       at 
> org.postgresql.jdbc3.AbstractJdbc3Connection.<init>(AbstractJdbc3Connection.java:30)
>       at 
> org.postgresql.jdbc3g.AbstractJdbc3gConnection.<init>(AbstractJdbc3gConnection.java:22)
>       at 
> org.postgresql.jdbc4.AbstractJdbc4Connection.<init>(AbstractJdbc4Connection.java:30)
>       at org.postgresql.jdbc4.Jdbc4Connection.<init>(Jdbc4Connection.java:24)
>       at org.postgresql.Driver.makeConnection(Driver.java:393)
>       at org.postgresql.Driver.connect(Driver.java:267)
>       at java.sql.DriverManager.getConnection(DriverManager.java:582)
>       at java.sql.DriverManager.getConnection(DriverManager.java:154)
>       at 
> org.eclipse.persistence.sessions.DefaultConnector.connect(DefaultConnector.java:98)
>       ... 39 more
> 


-- 
CONFIDENTIALITY NOTICE
NOTICE: This message is intended for the use of the individual or entity to 
which it is addressed and may contain information that is confidential, 
privileged and exempt from disclosure under applicable law. If the reader 
of this message is not the intended recipient, you are hereby notified that 
any printing, copying, dissemination, distribution, disclosure or 
forwarding of this communication is strictly prohibited. If you have 
received this communication in error, please contact the sender immediately 
and delete it from your system. Thank You.

Reply via email to