Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Serverlogs for missing information_schema.system_users table in mySQL DB

Kevin Kirchhof May 13, 2018

Having Trouble installing Crwod, when reviewing the logs after clean Setup before first execution of Crowd. The logs are telling, that the table "Information_schema"."System_users" cannot be found, resulting in a nullpointerexception on Startup Crowd Service.

I am running the mySQL database, as well the Crowd Service itself on a Windows Server 2012 R2. Altough I have no issues between the Connection of Crowd to the mySQL database, I recognize the sympthoms that the stored user credentials by Crowd (given in guided Setup process) are not readable as given in advance. I got this issue as I selected a Administrator username and Password for Crowd in the Setup, but was not able to Login with exact the same credentails right after the Setup process.

Setting up Crowd is right now not possible for me; Resetting the Password for the administrative user by mysql queries directly, Fails as well.

Are there any issues known regarding the same or related Problems?

I am using the x64 binaries for Crwod an Java, using the mysql JDBC Driver and Java 8 mysql connector.

 

Cheers

Kevin

 

The serverlogs from {crowd-dir}\Apache-tomcat\logs\atlassiancrowd-stderr.<timestampt>.log:

13-May-2018 23:40:24.954 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in 33841 ms
)
ERROR IdTableHelper Unable obtain JDBC Connection
 java.sql.SQLException: Cannot create PoolableConnectionFactory (Unknown table 'system_users' in information_schema)
 at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2303)
 at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createDataSource(BasicDataSource.java:2043)
 at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.getConnection(BasicDataSource.java:1543)
 at org.hibernate.engine.jdbc.connections.internal.DatasourceConnectionProviderImpl.getConnection(DatasourceConnectionProviderImpl.java:122)
 at org.hibernate.internal.SessionFactoryImpl$1.obtainConnection(SessionFactoryImpl.java:419)
 at org.hibernate.hql.spi.id.IdTableHelper.executeIdTableCreationStatements(IdTableHelper.java:67)
 at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.finishPreparation(GlobalTemporaryTableBulkIdStrategy.java:125)
 at org.hibernate.hql.spi.id.global.GlobalTemporaryTableBulkIdStrategy.finishPreparation(GlobalTemporaryTableBulkIdStrategy.java:42)
 at org.hibernate.hql.spi.id.AbstractMultiTableBulkIdStrategyImpl.prepare(AbstractMultiTableBulkIdStrategyImpl.java:88)
 at org.hibernate.internal.SessionFactoryImpl.<init>(SessionFactoryImpl.java:302)
 at org.hibernate.boot.internal.SessionFactoryBuilderImpl.build(SessionFactoryBuilderImpl.java:452)
 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:710)
 at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:726)
 at org.springframework.orm.hibernate5.LocalSessionFactoryBean.buildSessionFactory(LocalSessionFactoryBean.java:511)
 at org.springframework.orm.hibernate5.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:495)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowireCapableBeanFactory.java:1688)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.initializeBean(AbstractAutowireCapableBeanFactory.java:1626)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:555)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
 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.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueResolver.java:351)
 at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionValueResolver.java:108)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAutowireCapableBeanFactory.java:1533)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCapableBeanFactory.java:1280)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.doCreateBean(AbstractAutowireCapableBeanFactory.java:553)
 at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapableBeanFactory.java:483)
 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 org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:443)
 at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:325)
 at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:107)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
Caused by: java.sql.SQLSyntaxErrorException: Unknown table 'system_users' in information_schema
 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:118)
 at com.mysql.cj.jdbc.exceptions.SQLError.createSQLException(SQLError.java:95)
 at com.mysql.cj.jdbc.exceptions.SQLExceptionsMapping.translateException(SQLExceptionsMapping.java:122)
 at com.mysql.cj.jdbc.ClientPreparedStatement.executeInternal(ClientPreparedStatement.java:960)
 at com.mysql.cj.jdbc.ClientPreparedStatement.executeQuery(ClientPreparedStatement.java:1019)
 at org.apache.tomcat.dbcp.dbcp2.PoolableConnection.validate(PoolableConnection.java:300)
 at org.apache.tomcat.dbcp.dbcp2.PoolableConnectionFactory.validateConnection(PoolableConnectionFactory.java:359)
 at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.validateConnectionFactory(BasicDataSource.java:2316)
 at org.apache.tomcat.dbcp.dbcp2.BasicDataSource.createPoolableConnectionFactory(BasicDataSource.java:2299)
 ... 51 more
ERROR SqlExceptionHelper Cannot create PoolableConnectionFactory (Unknown table 'system_users' in information_schema)
FATAL StrutsSpringObjectFactory Error creating bean with name 'transactionManager' defined in class path resource [applicationContext-OpenIDBootstrap.xml]: Cannot resolve reference to bean 'sessionFactory' while setting bean property 'sessionFactory'; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'sessionFactory' defined in class path resource [applicationContext-OpenIDBootstrap.xml]: Invocation of init method failed; nested exception is org.hibernate.exception.GenericJDBCException: Unable to open JDBC Connection for DDL execution
ERROR DefaultConversionPropertiesProcessor Conversion registration error
 java.lang.NullPointerException
 at com.opensymphony.xwork2.spring.SpringObjectFactory.buildBean(SpringObjectFactory.java:165)
 at com.opensymphony.xwork2.ObjectFactory.buildBean(ObjectFactory.java:177)
 at com.opensymphony.xwork2.conversion.impl.DefaultTypeConverterCreator.createTypeConverter(DefaultTypeConverterCreator.java:40)
 at com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor.loadConversionProperties(DefaultConversionPropertiesProcessor.java:86)
 at com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor.processRequired(DefaultConversionPropertiesProcessor.java:68)
 at com.opensymphony.xwork2.conversion.impl.DefaultConversionPropertiesProcessor.init(DefaultConversionPropertiesProcessor.java:59)
 at com.opensymphony.xwork2.inject.InitializableFactory.create(InitializableFactory.java:45)
 at com.opensymphony.xwork2.inject.Scope$2$1.create(Scope.java:52)
 at com.opensymphony.xwork2.inject.ContainerBuilder$3.create(ContainerBuilder.java:118)
 at com.opensymphony.xwork2.inject.ContainerBuilder$8.call(ContainerBuilder.java:626)
 at com.opensymphony.xwork2.inject.ContainerBuilder$8.call(ContainerBuilder.java:623)
 at com.opensymphony.xwork2.inject.ContainerImpl.callInContext(ContainerImpl.java:555)
 at com.opensymphony.xwork2.inject.ContainerBuilder.create(ContainerBuilder.java:623)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:187)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
 at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
 at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
 at org.apache.struts2.dispatcher.listener.StrutsListener.contextInitialized(StrutsListener.java:44)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)
ERROR Dispatcher Dispatcher initialization failed
 java.lang.NullPointerException
 at com.opensymphony.xwork2.spring.SpringObjectFactory.getClassInstance(SpringObjectFactory.java:249)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.verifyResultType(XmlConfigurationProvider.java:622)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addResultTypes(XmlConfigurationProvider.java:594)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.addPackage(XmlConfigurationProvider.java:548)
 at com.opensymphony.xwork2.config.providers.XmlConfigurationProvider.loadPackages(XmlConfigurationProvider.java:326)
 at org.apache.struts2.config.StrutsXmlConfigurationProvider.loadPackages(StrutsXmlConfigurationProvider.java:108)
 at com.opensymphony.xwork2.config.impl.DefaultConfiguration.reloadContainer(DefaultConfiguration.java:196)
 at com.opensymphony.xwork2.config.ConfigurationManager.getConfiguration(ConfigurationManager.java:66)
 at org.apache.struts2.dispatcher.Dispatcher.getContainer(Dispatcher.java:957)
 at org.apache.struts2.dispatcher.Dispatcher.init_PreloadConfiguration(Dispatcher.java:463)
 at org.apache.struts2.dispatcher.Dispatcher.init(Dispatcher.java:496)
 at org.apache.struts2.dispatcher.InitOperations.initDispatcher(InitOperations.java:73)
 at org.apache.struts2.dispatcher.listener.StrutsListener.contextInitialized(StrutsListener.java:44)
 at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4745)
 at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5207)
 at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
 at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:752)
 at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:728)
 at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:734)
 at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:630)
 at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1842)
 at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
 at java.util.concurrent.FutureTask.run(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
 at java.lang.Thread.run(Unknown Source)

1 answer

0 votes
Marcin Kempa
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
May 13, 2018

Hi @Kevin Kirchhof,

 

Can you check your DB configuration and Crowd's DB connection settings?

Your MySQL DB should be running an INNODB engine as described here. Also how does your DB setting looks like for Crowd? Would you mind posting your crowd.cfg.xml file? It can be found in Crowd's shared home directory, just please make sure you remove any passwords and sensitive data from this file before sharing it here.

Best Regards,

Marcin Kempa

Kevin Kirchhof May 14, 2018

Hi @Marcin Kempa,

i figured out that the sympthoms, that the user created on setup of crowd is not recognized and selected user for applications in directories are not regocgnized on logon to these applications, is not related to the fact this special table of database information_schema cannot be found.

Anyway the login works successful for Crowd with the created user, the logon to the other applications are not working though configuration by several documentation guides, provided by your team.

I guess that the problem belongs to a missconfiguration of my proxy. All my Atlassian applications are running beneath an indivudal subdomain e.g. "jira.<my-domain>.com". Each application with its own authentication directory worked until I've switched to Crowd, obviously. Since I've set the application to use the Crowd instance to authenticate users, I am not able anymore to authenticate with eaxctly the same account, I have set on setup of Crowd and I am able to login to Crowd.

All instances runs on the same machine. I have set the application "jira" inside Crowd to acceppt as well the remote ip adress / hostname as well the internal (127.0.0.1 / localhost). But even though the authentication is not working in the realted applications. I have configured the applications as described in Atlassians documentation, e.g. for Jira creating the relevant groups inside the directory of Crowd and set these groups for authentication for application "jira" inside Crowd and configured Jira itself to use Crowd as authentication service.

Are there any issues known regarding the proxy settings of atlassian's application to Crowd?

Best thanks and regards,

Kevin

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events