Hey,

 

OK, we found the reason, the problem was disabling the default service
offering for console proxy. Normally it doesn't matter, but when a new
certificate is raised, the procedure skips the indicated service offering
and refers directly to the default one. I guess it qualifies for PR?

 

Best regards,

Piotr

 

 

From: Simon Weller <[email protected]> 
Sent: Thursday, January 21, 2021 8:02 PM
To: [email protected]; [email protected]
Subject: Re: manager does not start

 

Piotr,

 

When you restored your DB, did you drop the old one first just to make sure
a clean backup was restored? Are your positive this backup was taken before
the attempted change? Do you have an older backup available?

The log seems to indicate it rolled back a failed DB transaction related to
createSystemServiceOfferings. How did your colleague attempt to make the
cert change? 

 

-Si

 

  _____  

From: Piotr Pisz <[email protected] <mailto:[email protected]> >
Sent: Thursday, January 21, 2021 6:42 AM
To: [email protected] <mailto:[email protected]>
<[email protected] <mailto:[email protected]> >
Subject: manager does not start 

 

Hello,

We have a strange problem, after restart of mgmt serwer it no running
properly:

2021-01-21 13:28:31,769 INFO  [c.c.c.ConsoleProxyManagerImpl] (main:null)
(logid:) Start configuring console proxy manager : ConsoleProxyManagerImpl
2021-01-21 13:28:31,769 INFO  [c.c.c.ConsoleProxyManagerImpl] (main:null)
(logid:) Console proxy max session soft limit : 50
2021-01-21 13:28:31,769 INFO  [c.c.c.ConsoleProxyManagerImpl] (main:null)
(logid:) Console proxy standby capacity : 10
2021-01-21 13:28:31,771 DEBUG [c.c.a.m.AgentManagerImpl] (main:null)
(logid:) Registering listener ConsoleProxyListener with id 3
2021-01-21 13:28:31,785 DEBUG [c.c.u.d.T.Transaction] (main:null) (logid:)
Rolling back the transaction: Time = 3 Name =  createSystemServiceOfferings;
called by
-TransactionLegacy.rollback:890-TransactionLegacy.removeUpTo:833-Transaction
Legacy.close:657-TransactionContextInterceptor.invoke:36-ReflectiveMethodInv
ocation.proceed:175-ExposeInvocationInterceptor.invoke:95-ReflectiveMethodIn
vocation.proceed:186-JdkDynamicAopProxy.invoke:212-$Proxy102.createSystemSer
viceOfferings:-1-ConsoleProxyManagerImpl.configure:1328-CloudStackExtendedLi
feCycle$3.with:115-CloudStackExtendedLifeCycle.with:154
2021-01-21 13:28:31,786 WARN  [o.a.c.s.m.c.ResourceApplicationContext]
(main:null) (logid:) Exception encountered during context initialization -
cancelling refresh attempt:
org.springframework.context.ApplicationContextException: Failed to start
bean 'cloudStackLifeCycle'; nested exception is
java.lang.NullPointerException
2021-01-21 13:28:31,788 INFO  [o.a.c.s.NfsMountManager] (main:null) (logid:)
Clean up mounted NFS mount points used in current session.
2021-01-21 13:28:31,791 WARN  [o.e.j.w.WebAppContext] (main:null) (logid:)
Failed startup of context
o.e.j.w.WebAppContext@2d0399f4{/client,file:///usr/share/cloudstack-manageme
nt/webapp/,UNAVAILABLE}{/usr/share/cloudstack-management/webapp}
<mailto:o.e.j.w.WebAppContext@2d0399f4%7b/client,file:///usr/share/cloudstac
k-management/webapp/,UNAVAILABLE%7d%7b/usr/share/cloudstack-management/webap
p%7d> 
org.springframework.context.ApplicationContextException: Failed to start
bean 'cloudStackLifeCycle'; nested exception is
java.lang.NullPointerException
        at
org.springframework.context.support.DefaultLifecycleProcessor.doStart(Defaul
tLifecycleProcessor.java:185)
        at
org.springframework.context.support.DefaultLifecycleProcessor.access$200(Def
aultLifecycleProcessor.java:53)
        at
org.springframework.context.support.DefaultLifecycleProcessor$LifecycleGroup
.start(DefaultLifecycleProcessor.java:360)
        at
org.springframework.context.support.DefaultLifecycleProcessor.startBeans(Def
aultLifecycleProcessor.java:158)
        at
org.springframework.context.support.DefaultLifecycleProcessor.onRefresh(Defa
ultLifecycleProcessor.java:122)
        at
org.springframework.context.support.AbstractApplicationContext.finishRefresh
(AbstractApplicationContext.java:894)
        at
org.springframework.context.support.AbstractApplicationContext.refresh(Abstr
actApplicationContext.java:553)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
adContext(DefaultModuleDefinitionSet.java:145)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet$2.
with(DefaultModuleDefinitionSet.java:122)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:245)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:250)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:250)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.wi
thModule(DefaultModuleDefinitionSet.java:233)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
adContexts(DefaultModuleDefinitionSet.java:117)
        at
org.apache.cloudstack.spring.module.model.impl.DefaultModuleDefinitionSet.lo
ad(DefaultModuleDefinitionSet.java:79)
        at
org.apache.cloudstack.spring.module.factory.ModuleBasedContextFactory.loadMo
dules(ModuleBasedContextFactory.java:37)
        at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.init(Clo
udStackSpringContext.java:71)
        at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(C
loudStackSpringContext.java:58)
        at
org.apache.cloudstack.spring.module.factory.CloudStackSpringContext.<init>(C
loudStackSpringContext.java:62)
        at
org.apache.cloudstack.spring.module.web.CloudStackContextLoaderListener.cont
extInitialized(CloudStackContextLoaderListener.java:52)
        at
org.eclipse.jetty.server.handler.ContextHandler.callContextInitialized(Conte
xtHandler.java:930)
        at
org.eclipse.jetty.servlet.ServletContextHandler.callContextInitialized(Servl
etContextHandler.java:553)
        at
org.eclipse.jetty.server.handler.ContextHandler.startContext(ContextHandler.
java:889)
        at
org.eclipse.jetty.servlet.ServletContextHandler.startContext(ServletContextH
andler.java:356)
        at
org.eclipse.jetty.webapp.WebAppContext.startWebapp(WebAppContext.java:1445)
        at
org.eclipse.jetty.webapp.WebAppContext.startContext(WebAppContext.java:1409)
        at
org.eclipse.jetty.server.handler.ContextHandler.doStart(ContextHandler.java:
822)
        at
org.eclipse.jetty.servlet.ServletContextHandler.doStart(ServletContextHandle
r.java:275)
        at
org.eclipse.jetty.webapp.WebAppContext.doStart(WebAppContext.java:524)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
ava:72)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle
.java:169)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCyc
le.java:110)
        at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.jav
a:97)
        at
org.eclipse.jetty.server.handler.gzip.GzipHandler.doStart(GzipHandler.java:4
25)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
ava:72)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle
.java:169)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCyc
le.java:117)
        at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.jav
a:97)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
ava:72)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.start(ContainerLifeCycle
.java:169)
        at org.eclipse.jetty.server.Server.start(Server.java:407)
        at
org.eclipse.jetty.util.component.ContainerLifeCycle.doStart(ContainerLifeCyc
le.java:110)
        at
org.eclipse.jetty.server.handler.AbstractHandler.doStart(AbstractHandler.jav
a:97)
        at org.eclipse.jetty.server.Server.doStart(Server.java:371)
        at
org.eclipse.jetty.util.component.AbstractLifeCycle.start(AbstractLifeCycle.j
ava:72)
        at org.apache.cloudstack.ServerDaemon.start(ServerDaemon.java:189)
        at org.apache.cloudstack.ServerDaemon.main(ServerDaemon.java:105)
Caused by: java.lang.NullPointerException
        at
com.cloud.service.dao.ServiceOfferingDaoImpl.createSystemServiceOfferings(Se
rviceOfferingDaoImpl.java:227)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
        at
java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodA
ccessorImpl.java:62)
        ... 63 more
2021-01-21 13:28:31,794 INFO  [o.e.j.s.h.ContextHandler] (main:null)
(logid:) Started o.e.j.s.h.MovedContextHandler@5b247367{/,null,AVAILABLE}
<mailto:o.e.j.s.h.MovedContextHandler@5b247367%7b/,null,AVAILABLE%7d> 
2021-01-21 13:28:31,823 INFO  [o.e.j.s.AbstractConnector] (main:null)
(logid:) Started ServerConnector@10feca44{HTTP/1.1,[http/1.1]}{0.0.0.0:8080}
<mailto:ServerConnector@10feca44%7bHTTP/1.1,%5bhttp/1.1%5d%7d%7b0.0.0.0:8080
%7d> 
2021-01-21 13:28:31,823 INFO  [o.e.j.s.Server] (main:null) (logid:) Started
@15910ms

A colleague tried to configure a new certificate for the console,
unfortunately after restarting the effect is as above, restoring the
database copy did not help. Can you tell me where the problem is?

Regards,
Piotr



Reply via email to