Confluence Server crashes while set up
Asked by Lutz Bittner:

Hi there,

i am trying to set up a trial version of confluence server 7.3.4 on my ubuntu-server.

The installtion is successfull and i can access the setup page on localthost:8090. At the evaluation of my license confluence crashes and i am not able to coonect to the webpage anymore.

The last lines of the logfile are:

```
 at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.base/java.util.TimerThread.mainLoop(Unknown Source)
at java.base/java.util.TimerThread.run(Unknown Source)
2020-04-06 09:21:42,987 ERROR [Spring DM Context Creation Timer] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] fail Unable to create application context for [com.atlassian.confluence.plugins.confluence-masterdetail-plugin], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.confluence.plugins.createcontent.api.services.CreateButtonService)] (from bean [&createButtonService])
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.confluence.plugins.confluence-masterdetail-plugin' has timed out waiting for (objectClass=com.atlassian.confluence.plugins.createcontent.api.services.CreateButtonService)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.base/java.util.TimerThread.mainLoop(Unknown Source)
at java.base/java.util.TimerThread.run(Unknown Source)
2020-04-06 09:23:35,953 WARN [Spring DM Context Creation Timer] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] timeout Timeout occurred before finding service dependencies for [NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.upm.atlassian-universal-plugin-manager-plugin, config=osgibundle:/META-INF/spring/*.xml)]
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
2020-04-06 09:23:36,002 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] logAndClearOustandingDependencies Plugin 'com.atlassian.upm.atlassian-universal-plugin-manager-plugin' never resolved service '&requestFactory' with filter '(objectClass=com.atlassian.sal.api.net.RequestFactory)'
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
2020-04-06 09:23:36,015 ERROR [Spring DM Context Creation Timer] [plugin.osgi.factory.OsgiPlugin] onPluginContainerFailed Unable to start the plugin container for plugin 'com.atlassian.upm.atlassian-universal-plugin-manager-plugin'
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.upm.atlassian-universal-plugin-manager-plugin' has timed out waiting for (objectClass=com.atlassian.sal.api.net.RequestFactory)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.base/java.util.TimerThread.mainLoop(Unknown Source)
at java.base/java.util.TimerThread.run(Unknown Source)
2020-04-06 09:23:36,582 ERROR [Spring DM Context Creation Timer] [extender.internal.support.ExtenderConfiguration] onOsgiApplicationEvent Application context refresh failed (NonValidatingOsgiBundleXmlApplicationContext(bundle=com.atlassian.upm.atlassian-universal-plugin-manager-plugin, config=osgibundle:/META-INF/spring/*.xml))
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.upm.atlassian-universal-plugin-manager-plugin' has timed out waiting for (objectClass=com.atlassian.sal.api.net.RequestFactory)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.base/java.util.TimerThread.mainLoop(Unknown Source)
at java.base/java.util.TimerThread.run(Unknown Source)
2020-04-06 09:23:36,612 ERROR [Spring DM Context Creation Timer] [internal.dependencies.startup.DependencyWaiterApplicationContextExecutor] fail Unable to create application context for [com.atlassian.upm.atlassian-universal-plugin-manager-plugin], unsatisfied dependencies: Dependency on [(objectClass=com.atlassian.sal.api.net.RequestFactory)] (from bean [&requestFactory])
-- referer: http://localhost:8090/setup/evallicense.action | url: /setup/setupembeddeddb-default.action | traceId: 00c85dc7336cbe13 | userName: anonymous | action: setupembeddeddb-default
org.springframework.context.ApplicationContextException: Application context initialization for 'com.atlassian.upm.atlassian-universal-plugin-manager-plugin' has timed out waiting for (objectClass=com.atlassian.sal.api.net.RequestFactory)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.timeout(DependencyWaiterApplicationContextExecutor.java:489)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor.access$000(DependencyWaiterApplicationContextExecutor.java:54)
at org.eclipse.gemini.blueprint.extender.internal.dependencies.startup.DependencyWaiterApplicationContextExecutor$WatchDogTask.run(DependencyWaiterApplicationContextExecutor.java:109)
at java.base/java.util.TimerThread.mainLoop(Unknown Source)
at java.base/java.util.TimerThread.run(Unknown Source)
```

<br />

I hope someone could help me out!

Thanks in advance,

Lutz


Answers:
author: Daniel Eads
body: Hey Lutz, welcome to the Community!

Thanks for posting a bit from your log file. Although I can see that the plugin subsystem isn't starting up correctly, the log doesn't quite go back far enough to diagnose a specific cause. Would you be able to post more of the log file, or the file in its entirety?

If you're having trouble with the length of the file, you could also post it to a third-party paste site such as pastebin and link to the paste here.

Thanks,  
Daniel \| Atlassian Team

comments: author: Lutz Bittner
body: Hi Daniel,

thanks for your advice! I tried it this morning again with the same error.

Here is the full [log file.](https://pastebin.com/FFNdvHsy "log")

Thanks,

Lutz


author: Lutz Bittner
body: I still havent found a solution but would be also grateful about any ideas how to fix the problem


author: Daniel Eads
body: Looking through the log file, I see some signs of potential permission issues. You mentioned starting it again, but we see this line:

```
2020-04-07 07:37:39,951 WARN [Catalina-utility-1] [com.atlassian.config.ApplicationConfig] setApplicationHome Application home does not exist. Creating directory: /var/atlassian/application-data/confluence/shared-home
```

indicating that Confluence thinks it needs to create a home directory. If it was created previously and Confluence still had permissions to read/write it, Confluence would not be creating the directory.

You can use these commands to make sure the home directory has the correct permissions (using the path values from your log file) - by default the installer makes a user on your system called **confluence** but if you're launching the application as some other user, swap that out in the first command:

    chown -R confluence /var/atlassian/application-data/confluencechmod -R u=rwx,go-rwx /var/atlassian/application-data/confluence

After that try restarting the Confluence application and going through the web-based setup wizard again.


Tags: confluence-server

server