I have tried installing multiple versions of Confluence in my Kubernetes cluster to no avail. I am running into the most horrible "Spring Application context has not been set" issues that seems to have plagued Confluence for over a decade looking at this forum.
2025-02-18 14:15:28,801 INFO [http-nio-8090-exec-43] [atlassian.confluence.status.SystemErrorInformationLogger] writeToLog \nRequest Unique ID : d19fb27c-041d-4399-801b-d3eb9622bb83\n--------------------------\nJVM Stats\n--------------------------\nxmx = 8589934592\nusedNonHeap = 436593856\navailableHeap = 7429866496\navailableNonHeap = -1\nallocatedHeap = 8589934592\nfreeAllocatedHeap = 7429866496\nmaxNonHeap = -1\navailablePermGen = 0\nmaxPermGen = -1\nmaxHeap = 8589934592\nusedHeap = 1160068096\nusedPermGen = -1\nxms = 8589934592\n--------------------------\nRequest Information\n--------------------------\nURL: https://confluence.REDACTED/500page.jsp\nScheme: https\nServer: confluence.REDACTED\nPort: 443\nURI: /500page.jsp\nContext Path: \nServlet Path: /500page.jsp\nPath Info: null\nQuery String: null\n--------------------------\nAttributes\n--------------------------\njavax.servlet.forward.request_uri: /bootstrap/selectsetupstep.action\njavax.servlet.forward.context_path: \njavax.servlet.forward.servlet_path: /bootstrap/selectsetupstep.action\njavax.servlet.forward.mapping: org.apache.catalina.core.ApplicationMapping$MappingImpl@68786f28\n__prepare_recursion_counter: 1\nstruts.actionMapping: noActionMapping\njavax.servlet.error.status_code: 500\nbrave.SpanCustomizer: SpanCustomizer(RealSpan(0a54cead6b4faa8b2820ba5bfa356064/93e0b5481b856fb0))\norg.apache.struts2.dispatcher.filter.StrutsPrepareFilter.REQUEST_EXCLUDED_FROM_ACTION_MAPPING: false\ncom.opensymphony.sitemesh.APPLIED_ONCE: true\natlas.webInterfaceContext: com.atlassian.confluence.plugin.descriptor.web.DefaultWebInterfaceContext@49fd7ee6\ncom.atlassian.confluence.util.message.MessagesDecoratorFilter__already_filtered__: true\n__wrap_recursion_counter: 1\ncom.atlassian.confluence.web.filter.validateparam.RequestParamValidationFilter_already_filtered: true\natlassian.core.seraph.original.url: /bootstrap/selectsetupstep.action\ncom.atlassian.labs.botkiller.BotKillerFilter: true\ncom.atlassian.gzipfilter.GzipFilter_already_filtered: true\nConfluence-Request-Time: 1739888128796\n3af_annotated_permitted_checker: com.atlassian.confluence.impl.security.access.NoCheckAnnotatedPermitChecker@4e908226\nstruts.valueStack: com.opensymphony.xwork2.ognl.OgnlValueStack@14729ca5\nsitemesh.secondaryStorageLimit: -1\nconfluence.messages: {9f37c294-ad60-4d6a-9ef0-886481e01969=com.atlassian.confluence.util.message.DefaultMessage@3fd8a02c}\njavax.servlet.error.message: java.lang.IllegalStateException: Spring Application context has not been set\njavax.servlet.error.servlet_name: default\nbrave.propagation.TraceContext: 0a54cead6b4faa8b2820ba5bfa356064/93e0b5481b856fb0\nbrave.servlet.TracingFilter$SendHandled: true\nconfluence.secure.access.original.url: /bootstrap/selectsetupstep.action\njavax.servlet.jsp.jspException: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set\njavax.servlet.error.request_uri: /bootstrap/selectsetupstep.action\ncom.atlassian.core.filters.HeaderSanitisingFilter_already_filtered: true\ncom.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFixupFilter: true\ncom.atlassian.confluence.impl.sitemesh.DecoratorTimings: com.atlassian.confluence.impl.sitemesh.DecoratorTimings@1df0e37f\njavax.servlet.error.exception: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set\ncom.atlassian.prettyurls.filter.PrettyUrlsSiteMeshFilter: true\n--------------------------\nParameters\n--------------------------\ncaused by: io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set\nat io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)\ncaused by: java.lang.IllegalStateException: Spring Application context has not been set\nat com.atlassian.spring.container.SpringContainerContext.getComponent(SpringContainerContext.java:48)\n 2025-02-18 14:15:28,802 ERROR [http-nio-8090-exec-43] [atlassian.confluence.status.SystemErrorInformationLogger] logException Unhandled exception, request unique ID: d19fb27c-041d-4399-801b-d3eb9622bb83
-- traceId: 2820ba5bfa356064
io.atlassian.util.concurrent.LazyReference$InitializationException: java.lang.IllegalStateException: Spring Application context has not been set
I have used the nfsPermissionFixer 3.21.
I have been following this document:
https://confluence.atlassian.com/confkb/confluence-does-not-start-due-to-spring-application-context-has-not-been-set-218278311.html
The confluence user is in the root group and has access.
The db and all its contents are owned by my user. I can wipe the DB and watch the tables, etc be recreated.
I am not looking for someone to respond with "try these 100 steps". I would very much like a solid answer on HOW I can pinpoint the exact problem. The above document is the equivalent of a crap shoot and the logging by Confluence is atrocious. I am looking for a way to get the right answer without doing the needle and a haystack approach. Please.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.