Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make sure the cluster stuff works in all dbs #4806

Closed
wezell opened this issue Jan 30, 2014 · 2 comments
Closed

Make sure the cluster stuff works in all dbs #4806

wezell opened this issue Jan 30, 2014 · 2 comments

Comments

@wezell
Copy link
Contributor

wezell commented Jan 30, 2014

Make sure the cluster stuff works in all dbs

I get this (and a lot more) on startup on H2 - looks like the cluster tables are not getting created.

2014-01-30 19:38:53,740 INFO  com.dotmarketing.startup.StartupTasksExecutor - Database upgraded to version: 1306
2014-01-30 19:38:53,740 INFO  com.dotmarketing.startup.StartupTasksExecutor - Database upgraded to version: 1310
2014-01-30 19:38:53,740 INFO  com.dotmarketing.startup.StartupTasksExecutor - Database upgraded to version: 1311
2014-01-30 19:38:53,740 INFO  com.dotmarketing.startup.StartupTasksExecutor - Database upgraded to version: 1320
2014-01-30 19:38:53,740 INFO  com.dotmarketing.common.reindex.ReindexThread - ContentIndexationThread ordered to start processing
2014-01-30 19:38:53,742 INFO  com.dotmarketing.startup.StartupTasksExecutor - Finishing upgrade tasks.
2014-01-30 19:38:53,746 ERROR com.dotcms.cluster.business.ClusterFactory - Could not get Cluster ID
com.dotmarketing.exception.DotDataException: Table "DOT_CLUSTER" not found; SQL statement:
select cluster_id from dot_cluster [42102-169]
    at com.dotmarketing.common.db.DotConnect.loadResult(DotConnect.java:234)
    at com.dotmarketing.common.db.DotConnect.loadObjectResults(DotConnect.java:859)
    at com.dotcms.cluster.business.ClusterFactory.getClusterId(ClusterFactory.java:50)
    at com.dotcms.cluster.business.ClusterFactory.generateClusterId(ClusterFactory.java:33)
    at com.liferay.portal.servlet.MainServlet.init(MainServlet.java:133)
    at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1266)
    at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1185)
    at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:1080)
    at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:5027)
    at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5314)
    at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:655)
    at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1628)
    at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
    at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
    at java.util.concurrent.FutureTask.run(FutureTask.java:166)
    at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
    at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
    at java.lang.Thread.run(Thread.java:722)
Caused by: org.h2.jdbc.JdbcSQLException: Table "DOT_CLUSTER" not found; SQL statement:
select cluster_id from dot_cluster [42102-169]
    at org.h2.message.DbException.getJdbcSQLException(DbException.java:329)
    at org.h2.message.DbException.get(DbException.java:169)
    at org.h2.message.DbException.get(DbException.java:146)
    at org.h2.command.Parser.readTableOrView(Parser.java:4775)
    at org.h2.command.Parser.readTableFilter(Parser.java:1084)
    at org.h2.command.Parser.parseSelectSimpleFromPart(Parser.java:1690)
    at org.h2.command.Parser.parseSelectSimple(Parser.java:1797)
@dsilvam
Copy link
Contributor

dsilvam commented Jan 30, 2014

I was looking at that right now, it's not included in the dotcms_extra file, I will fix this

@ghost ghost assigned dsilvam Jan 30, 2014
wezell added a commit that referenced this issue Jan 30, 2014
wezell added a commit that referenced this issue Jan 30, 2014
dsilvam added a commit that referenced this issue Jan 30, 2014
@jtesser jtesser closed this as completed Jan 31, 2014
@bryanboza
Copy link
Member

Fixed, tested on nigthly build 2014-03-20

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

5 participants