Confluence had problems starting up

jitendramohan July 31, 2018

All of a sudden, confluence web server displays the following error. Restarting confluence doesn't fix it. Rebooting the machine doesn't either.

Any suggestions? Which config file is it complaining about?

Could not load bootstrap from environment
2018-08-01 04:38:05fatalBootstrapException: Unable to bootstrap application: Failed to parse config file: Error on line -1 of document : Premature end of file. Nested exception: Premature end of file.

 

Other logs:

catalina.out (last few messages are similar):

2018-08-01 05:33:55,329 ERROR [http-nio-8090-exec-3] [atlassian.confluence.util.AbstractBootstrapHotSwappingFilter] doFilter Could not get swap target filter
-- referer: http://10.0.32.204:8090/ | url: /johnson/data | traceId: 00055b01cc7dcef2

 

 

Full logs: 

https://www.dropbox.com/s/q277d7k2e5309lp/catalina.out?dl=0

 

https://www.dropbox.com/s/5oi05cb5yh2ysei/Screenshot%202018-08-01%2013.55.43.png?dl=0

 

1 answer

1 vote
Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
July 31, 2018

Hi @jitendramohan,

 

first, the log you provided for "atlassian-confluence.log" does not show an error but only a warning, could you please try to find a line starting with "ERROR" ? that would help a lot.

 

Did you  change anything recently on your server ? an upgrade a few weeks ago maybe ?

This error is probably caused by a syntax error in one of the Confluence configuration files, most likely server.xml or confluence-init.properties. Can you please check both files are correctly formatted ? 

 

Let me know if this helps, 

 

 

--Alexis

jitendramohan August 1, 2018

@Alexis Robert

Uploaded full logs and error screenshot.

jitendramohan August 1, 2018

Also server.xml is identical to a restored (from backup) server. Not yet sure of confluence-init.properties

jitendramohan August 1, 2018

And confluence-init.properties seems ok too (just has one line pointing to the home directory).

Alexis Robert
Community Leader
Community Leader
Community Leaders are connectors, ambassadors, and mentors. On the online community, they serve as thought leaders, product experts, and moderators.
August 1, 2018

Hi @jitendramohan

 

looking at the log file, it's confirmed that the problem is with your confluence-init.properties:

 

2018-08-01 08:10:50,310 ERROR [localhost-startStop-1] [atlassian.config.bootstrap.DefaultAtlassianBootstrapManager] init Home is not configured properly:
com.atlassian.config.ConfigurationException: Failed to parse config file: Error on line -1 of document  : Premature end of file. Nested exception: Premature end of file.

 

It could be as simple as an extra space or tab somewhere, or a character missing.

If you can, try to replace your current configuration file with one from a clean installation and restart confluence to see if it fixes the problem.

 

Regards, 

 

Alexis 

jitendramohan August 2, 2018

It did not. We ended up reinstalling the server.

Many thanks for your suggestions!

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events