Unable to deploy package: ConnectionBus not yet initialized

0
Hi,   I have an app hosted in the public cloud, Mendix runtime version: 10.12.5.45892.   Last week, I had no problems deploying to acceptance and production. Today it failed while initializing the ConnectionBus while deploying to production. Here's the part of the application log that contains the trace:   2024-12-09T08:42:41.107189 [APP/PROC/WEB/0] INFO - Core: Initializing ConnectionBus... 2024-12-09T08:42:41.205607 [APP/PROC/WEB/0] WARNING - io.micrometer.core.instrument.internal.DefaultGauge: Failed to apply the value function for the gauge 'mx.runtime.stats.sessions.named_user_sessions'. Note that subsequent logs will be logged at debug level. 2024-12-09T08:42:41.205638 [APP/PROC/WEB/0] com.mendix.core.CoreRuntimeException: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"COUNT(//System.Session[System.Session_User/System.User/IsAnonymous=false()])","type":"RetrieveXPathAggregateActionLong"}', all database changes executed by this action were rolled back 2024-12-09T08:42:41.205702 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:109) 2024-12-09T08:42:41.205859 [APP/PROC/WEB/0] Caused by: com.mendix.systemwideinterfaces.MendixRuntimeException: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"COUNT(//System.Session[System.Session_User/System.User/IsAnonymous=false()])","type":"RetrieveXPathAggregateActionLong"}', all database changes executed by this action were rolled back 2024-12-09T08:42:41.205881 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:23) 2024-12-09T08:42:41.206215 [APP/PROC/WEB/0] Caused by: com.mendix.core.CoreRuntimeException: Exception occurred in action '{"xpath":"COUNT(//System.Session[System.Session_User/System.User/IsAnonymous=false()])","type":"RetrieveXPathAggregateActionLong"}', all database changes executed by this action were rolled back 2024-12-09T08:42:41.206230 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.processErrorState(CoreActionHandlerImpl.scala:153) 2024-12-09T08:42:41.206307 [APP/PROC/WEB/0] Caused by: com.mendix.connectionbus.ConnectionBusRuntimeException: ConnectionBus not yet initialized 2024-12-09T08:42:41.206340 [APP/PROC/WEB/0] at com.mendix.connectionbus.ConnectionBusImpl.verifyRunningState(ConnectionBusImpl.scala:382) 2024-12-09T08:42:41.206398 [APP/PROC/WEB/0] at com.mendix.connectionbus.ConnectionBusImpl.doRequest(ConnectionBusImpl.scala:460) 2024-12-09T08:42:41.206482 [APP/PROC/WEB/0] at com.mendix.basis.action.user.AggregateCalculator.calculateAggregate(RetrieveXPathAggregateActions.scala:27) 2024-12-09T08:42:41.206512 [APP/PROC/WEB/0] at com.mendix.basis.action.user.AggregateCalculator.calculateAggregate$(RetrieveXPathAggregateActions.scala:15) 2024-12-09T08:42:41.206546 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathAggregateActionLong.calculateAggregate(RetrieveXPathAggregateActions.scala:58) 2024-12-09T08:42:41.206631 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathAggregateActionLong.executeAction(RetrieveXPathAggregateActions.scala:69) 2024-12-09T08:42:41.206660 [APP/PROC/WEB/0] at com.mendix.basis.action.user.RetrieveXPathAggregateActionLong.executeAction(RetrieveXPathAggregateActions.scala:58) 2024-12-09T08:42:41.206691 [APP/PROC/WEB/0] at com.mendix.systemwideinterfaces.core.UserAction.execute(UserAction.java:58) 2024-12-09T08:42:41.206797 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.doCall(CoreActionHandlerImpl.scala:71) 2024-12-09T08:42:41.206896 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:48) 2024-12-09T08:42:41.206909 [APP/PROC/WEB/0] at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) 2024-12-09T08:42:41.206942 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.$anonfun$runMonitoredAction$1(CoreActionHandlerImpl.scala:59) 2024-12-09T08:42:41.206999 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionMonitoring$.$anonfun$monitor$1(ActionMonitoring.scala:52) 2024-12-09T08:42:41.207077 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 2024-12-09T08:42:41.207112 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionMonitoring$.monitor(ActionMonitoring.scala:52) 2024-12-09T08:42:41.207124 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.runMonitoredAction(CoreActionHandlerImpl.scala:59) 2024-12-09T08:42:41.207189 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.CoreActionHandlerImpl.call(CoreActionHandlerImpl.scala:46) 2024-12-09T08:42:41.207244 [APP/PROC/WEB/0] at com.mendix.core.actionmanagement.internal.InternalCoreAction.call(InternalCoreAction.java:57) 2024-12-09T08:42:41.207317 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.$anonfun$executeSync$2(ActionManager.scala:105) 2024-12-09T08:42:41.207378 [APP/PROC/WEB/0] at com.mendix.util.classloading.Runner$.withContextClassLoader(Runner.scala:20) 2024-12-09T08:42:41.207483 [APP/PROC/WEB/0] at com.mendix.basis.actionmanagement.ActionManager.executeSync(ActionManager.scala:104) 2024-12-09T08:42:41.207836 [APP/PROC/WEB/0] at com.mendix.basis.action.InternalXPathQuery.executeAggregate(InternalXPathQuery.scala:132) 2024-12-09T08:42:41.207876 [APP/PROC/WEB/0] at com.mendix.basis.action.InternalXPathQuery.executeAggregateLong(InternalXPathQuery.scala:113) 2024-12-09T08:42:41.207915 [APP/PROC/WEB/0] at com.mendix.basis.session.SessionManager.$anonfun$getConcurrentUserCount$2(SessionManager.scala:215) 2024-12-09T08:42:41.208040 [APP/PROC/WEB/0] at scala.util.Using$.$anonfun$apply$1(Using.scala:262) 2024-12-09T08:42:41.208054 [APP/PROC/WEB/0] at scala.util.Using$.apply(Using.scala:113) 2024-12-09T08:42:41.208073 [APP/PROC/WEB/0] at com.mendix.basis.session.SessionManager.getConcurrentUserCount(SessionManager.scala:212) 2024-12-09T08:42:41.209179 [APP/PROC/WEB/0] at com.mendix.basis.component.SessionCore.getConcurrentUserCount(SessionCore.scala:50) 2024-12-09T08:42:41.209192 [APP/PROC/WEB/0] at com.mendix.basis.component.SessionCore.getConcurrentUserCount$(SessionCore.scala:50) 2024-12-09T08:42:41.209205 [APP/PROC/WEB/0] at com.mendix.basis.component.InternalCore.getConcurrentUserCount(InternalCore.scala:24) 2024-12-09T08:42:41.209417 [APP/PROC/WEB/0] at com.mendix.basis.stats.RuntimeStatistics.$anonfun$gaugeNamedUserSessions$1(RuntimeStatistics.scala:32) 2024-12-09T08:42:41.209460 [APP/PROC/WEB/0] at com.mendix.metrics.AutoGaugeImpl.get(AutoGaugeImpl.scala:11) 2024-12-09T08:42:41.209651 [APP/PROC/WEB/0] at com.mendix.metrics.micrometer.MicrometerGauge$.$anonfun$builder$5(MicrometerGauge.scala:37) 2024-12-09T08:42:41.209677 [APP/PROC/WEB/0] at io.micrometer.core.instrument.Gauge.lambda$builder$0(Gauge.java:58) 2024-12-09T08:42:41.209724 [APP/PROC/WEB/0] at io.micrometer.core.instrument.StrongReferenceGaugeFunction.applyAsDouble(StrongReferenceGaugeFunction.java:48) 2024-12-09T08:42:41.209791 [APP/PROC/WEB/0] at io.micrometer.core.instrument.internal.DefaultGauge.value(DefaultGauge.java:53) 2024-12-09T08:42:41.209840 [APP/PROC/WEB/0] at io.micrometer.influx.InfluxMeterRegistry.lambda$publish$2(InfluxMeterRegistry.java:138) 2024-12-09T08:42:41.210133 [APP/PROC/WEB/0] at io.micrometer.core.instrument.Meter.match(Meter.java:101) 2024-12-09T08:42:41.210146 [APP/PROC/WEB/0] at io.micrometer.influx.InfluxMeterRegistry.lambda$publish$6(InfluxMeterRegistry.java:137) 2024-12-09T08:42:41.210150 [APP/PROC/WEB/0] at java.base/java.util.stream.ReferencePipeline$7$1.accept(Unknown Source) 2024-12-09T08:42:41.210213 [APP/PROC/WEB/0] at java.base/java.util.ArrayList$SubList$2.forEachRemaining(Unknown Source) 2024-12-09T08:42:41.210292 [APP/PROC/WEB/0] at java.base/java.util.stream.AbstractPipeline.copyInto(Unknown Source) 2024-12-09T08:42:41.210486 [APP/PROC/WEB/0] at java.base/java.util.stream.AbstractPipeline.wrapAndCopyInto(Unknown Source) 2024-12-09T08:42:41.210542 [APP/PROC/WEB/0] at java.base/java.util.stream.ReduceOps$ReduceOp.evaluateSequential(Unknown Source) 2024-12-09T08:42:41.210624 [APP/PROC/WEB/0] at java.base/java.util.stream.AbstractPipeline.evaluate(Unknown Source) 2024-12-09T08:42:41.210700 [APP/PROC/WEB/0] at java.base/java.util.stream.ReferencePipeline.collect(Unknown Source) 2024-12-09T08:42:41.210937 [APP/PROC/WEB/0] at io.micrometer.influx.InfluxMeterRegistry.publish(InfluxMeterRegistry.java:147) 2024-12-09T08:42:41.210946 [APP/PROC/WEB/0] at io.micrometer.core.instrument.push.PushMeterRegistry.publishSafelyOrSkipIfInProgress(PushMeterRegistry.java:64) 2024-12-09T08:42:41.211020 [APP/PROC/WEB/0] at java.base/java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source) 2024-12-09T08:42:41.211082 [APP/PROC/WEB/0] at java.base/java.util.concurrent.FutureTask.runAndReset(Unknown Source) 2024-12-09T08:42:41.211151 [APP/PROC/WEB/0] at java.base/java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source) 2024-12-09T08:42:41.211302 [APP/PROC/WEB/0] at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) 2024-12-09T08:42:41.211307 [APP/PROC/WEB/0] at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) 2024-12-09T08:42:41.211505 [APP/PROC/WEB/0] at java.base/java.lang.Thread.run(Unknown Source) 2024-12-09T08:42:41.364486 [APP/PROC/WEB/0] INFO - Core: Initialized ConnectionBus.   Deployment to acceptance doesn't have this issue.   On Sunday Dec 8, 09:00 CET, maintenance was performed on the cloud, affecting the following component: Mendix Services - Deploy - Mendix Cloud. Is this a known issue?   Any help is greatly appreciated!   Thanks, André
asked
2 answers
1

Long answer short: If you encounter this problem, don't use the "New theme" (beta). Even if it worked fine before.

answered
0

Hi There,

 

Can you check how many connections has been established to database in last week for production.

I suspect there is no connection pool is available.

Please check the matrices.

 

answered