Confluence had problems starting up
Asked by jitendramohan:

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:05 | fatal | BootstrapException: 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>


Answers:
author: Alexis Robert
body: Hi [@jitendramohan](/t5/user/viewprofilepage/user-id/1499292),

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

comments: author: jitendramohan
body: [@Alexis Robert](/t5/user/viewprofilepage/user-id/1213386)

Uploaded full logs and error screenshot.


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


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


author: Alexis Robert
body: Hi [@jitendramohan](/t5/user/viewprofilepage/user-id/1499292),

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


author: jitendramohan
body: It did not. We ended up reinstalling the server.

Many thanks for your suggestions!


Tags: confluence-server

server