Copy Wildfly Bundle from one server to another

1
0
-1

I tarred up the Bonita installation (wildfly 7.5.4) on one server and backed up the mysql databases.
I then extracted tar file on new server and restored backup on new server mysql database.
I changed the database.properties to point to the new server and changed the wildfly templates/ standalone.xml to allow the new server to be rendered remotely.

I started up the server and everything seems fine until I get the following exceptions....

14:59:42,924 INFO [org.bonitasoft.engine.EngineInitializer] (ServerService Thread Pool -- 58) Starting node...
14:59:46,025 SEVERE [org.bonitasoft.engine.EngineInitializer] (ServerService Thread Pool -- 58) Exception while initializing the engine: : org.bonitasoft.engine.platform.StartNodeException: Platform starting failed.
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.startNode(PlatformAPIImpl.java:211)
at org.bonitasoft.engine.EngineInitializer.initializeEngine(EngineInitializer.java:79)
at org.bonitasoft.engine.api.internal.servlet.EngineInitializerListener.contextInitialized(EngineInitializerListener.java:33)
at io.undertow.servlet.core.ApplicationListeners.contextInitialized(ApplicationListeners.java:187)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:200)
at io.undertow.servlet.core.DeploymentManagerImpl$1.call(DeploymentManagerImpl.java:171)
at io.undertow.servlet.core.ServletRequestContextThreadSetupAction$1.call(ServletRequestContextThreadSetupAction.java:42)
at io.undertow.servlet.core.ContextClassLoaderSetupAction$1.call(ContextClassLoaderSetupAction.java:43)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.api.LegacyThreadSetupActionWrapper$1.call(LegacyThreadSetupActionWrapper.java:44)
at io.undertow.servlet.core.DeploymentManagerImpl.deploy(DeploymentManagerImpl.java:234)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService.startContext(UndertowDeploymentService.java:100)
at org.wildfly.extension.undertow.deployment.UndertowDeploymentService$1.run(UndertowDeploymentService.java:82)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at java.lang.Thread.run(Thread.java:745)
at org.jboss.threads.JBossThread.run(JBossThread.java:320)
Caused by: org.bonitasoft.engine.exception.UpdateException: Unable to start service: org.bonitasoft.engine.page.impl.PageServiceImpl
at org.bonitasoft.engine.api.impl.transaction.SetServiceState.call(SetServiceState.java:81)
at org.bonitasoft.engine.api.impl.transaction.SetServiceState.call(SetServiceState.java:40)
at org.bonitasoft.engine.transaction.JTATransactionServiceImpl.executeInTransaction(JTATransactionServiceImpl.java:274)
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.startServicesOfTenants(PlatformAPIImpl.java:397)
at org.bonitasoft.engine.api.impl.PlatformAPIImpl.startNode(PlatformAPIImpl.java:195)
... 21 more
Caused by: org.bonitasoft.engine.persistence.SBonitaReadException: the page is not a valid zip file
at org.bonitasoft.engine.page.impl.PageServiceImpl.getPageContent(PageServiceImpl.java:485)
at org.bonitasoft.engine.page.impl.PageServiceImpl.importProvidedPage(PageServiceImpl.java:641)
at org.bonitasoft.engine.page.impl.PageServiceImpl.importProvidedPage(PageServiceImpl.java:628)
at org.bonitasoft.engine.page.impl.PageServiceImpl.start(PageServiceImpl.java:618)
at org.bonitasoft.engine.api.impl.transaction.StartServiceStrategy.changeState(StartServiceStrategy.java:33)
at org.bonitasoft.engine.api.impl.transaction.SetServiceState.call(SetServiceState.java:79)
... 25 more
Caused by: java.util.zip.ZipException: invalid code lengths set
at java.util.zip.InflaterInputStream.read(InflaterInputStream.java:164)
at java.util.zip.ZipInputStream.read(ZipInputStream.java:194)
at java.io.FilterInputStream.read(FilterInputStream.java:107)
at org.bonitasoft.engine.commons.io.IOUtil.unzip(IOUtil.java:433)
at org.bonitasoft.engine.page.impl.PageServiceImpl.getPageContent(PageServiceImpl.java:472)
... 30 more

Any ideas on how to resolve this? I want to keep the workflows created on the previous server intact and do a new installation.

1 answer

1
0
-1

So far what I can tell from the log file is that error is related to the unzip operation of a "page". A "page" for the Engine can either be a UI Designer page but also a REST API extension.

Content of the "page" is read from the database as a compressed zip file and unzip to a temporary folder. Here issue is related to one of the default provided "page" (method importProvidedPage).

So my best guest is that somehow the content in the database is maybe not properly restored.

Can you double check that the content of the restored database is the same as the original one?

Notifications