Skip to end of metadata
Go to start of metadata

Problem:


We installed Tomcat and Signavio Workflow Accelerator. We are using a MongoDB Cluster and during the start up we are getting the following error:

Effektif.log
ERROR[ost-startStop-1] c.s.w.h.WorkflowServlet Error during initialization: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address=xx.xx.xx.xx:port, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]
com.mongodb.MongoTimeoutException: Timed out after 30000 ms while waiting to connect. Client view of cluster state is {type=UNKNOWN, servers=[{address==xx.xx.xx.xx:port, type=UNKNOWN, state=CONNECTING, exception={com.mongodb.MongoSocketReadException: Prematurely reached end of stream}}]
                at com.mongodb.internal.connection.BaseCluster.getDescription(BaseCluster.java:182)
                at com.mongodb.internal.connection.AbstractMultiServerCluster.getDescription(AbstractMultiServerCluster.java:52)
                at com.mongodb.client.internal.MongoClientDelegate.getConnectedClusterDescription(MongoClientDelegate.java:136)
                at com.mongodb.client.internal.MongoClientDelegate.createClientSession(MongoClientDelegate.java:94)
                at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.getClientSession(MongoClientDelegate.java:249)
                at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:190)
                at com.mongodb.client.internal.MongoClientDelegate$DelegateOperationExecutor.execute(MongoClientDelegate.java:166)
                at com.mongodb.DBCollection.createIndex(DBCollection.java:1669)
                at com.effektif.product.db.stores.AbstractStore.createIndexes(AbstractStore.java:54)
                at com.effektif.product.db.stores.AbstractStore.start(AbstractStore.java:47)
                at com.effektif.workflow.impl.configuration.Brewery.start(Brewery.java:242)
                at com.effektif.workflow.impl.configuration.Brewery.ensureStarted(Brewery.java:442)
                at com.effektif.workflow.impl.configuration.Brewery.getOpt(Brewery.java:129)
                at com.effektif.workflow.impl.configuration.Brewery.get(Brewery.java:111)
                at com.effektif.workflow.impl.configuration.Brewery.get(Brewery.java:82)
                at com.effektif.workflow.impl.DefaultDependencies.get(DefaultDependencies.java:33)
                at com.effektif.product.engine.ApplicationLifeCycle.start(ApplicationLifeCycle.java:47)
                at com.effektif.product.engine.EngineDependencies.start(EngineDependencies.java:290)
                at com.signavio.workflow.http.WorkflowServlet.init(WorkflowServlet.java:80)
                at org.apache.catalina.core.StandardWrapper.initServlet(StandardWrapper.java:1132)
                at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:1079)
                at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:973)
                at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java:4885)
                at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5199)
                at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
                at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:743)
                at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:719)
                at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:714)
                at org.apache.catalina.startup.HostConfig.deployDirectory(HostConfig.java:1125)
                at org.apache.catalina.startup.HostConfig$DeployDirectory.run(HostConfig.java:1859)
                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)



Solution:


Please check if the access from external servers is possible and check the configuration of the MongoDB instance.

You can find the link with all needed details:

https://docs.mongodb.com/manual/reference/configuration-options/#net.bindIp