Issue to deploy confluence 6.15.7 with postgresql 9.4 : Cannot call sendError() after the response h
Asked by Lo?c BAUDOUIN:

Hello,

We try to install a dockerized confluence version found on docker hub (version 6.15.7-ubuntu-18.04-adoptopenjdk8) with a DB postgresql 9.4.

Once container launch we follow the wizard to install properly confluence, we reach the test connection DB step successfully but when we click on next we face the following error :

?tat HTTP 500 -- Erreur interne du serveur {#toc-hId--1324880883}
-----------------------------------------------------------------

*** ** * ** ***

**Type** Rapport d'exception

**message** Cannot call sendError() after the response has been committed

**description** Le serveur a rencontr? une erreur interne qui l'a emp?ch? de satisfaire la requ?te.

**exception**

```
java.lang.IllegalStateException: Cannot call sendError() after the response has been committed	org.apache.catalina.connector.ResponseFacade.sendError(ResponseFacade.java:456)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.atlassian.confluence.web.filter.DebugFilter$LoggingResponseWrapper.sendError(DebugFilter.java:132)	javax.servlet.http.HttpServletResponseWrapper.sendError(HttpServletResponseWrapper.java:120)	com.atlassian.confluence.servlet.FourOhFourErrorLoggingFilter$1.sendError(FourOhFourErrorLoggingFilter.java:52)

...
```

Looking to the DB we found that it is configured as expected :

Name \| Owner \| Encoding \| Collate \| Ctype \| Access privileges  
--------------+------------+----------+------------+------------+-----------------------  
confluencedb \| confdbuser \| UTF8 \| en_US.utf8 \| en_US.utf8 \|

our user iis dbowner and collate and ctype parameters are the expected one, moreover the postgre version is compatible with our confluence version.

Inside confluence logs we have some error :
>
> ```
> 26-Aug-2020 08:41:24.586 INFO [main] org.apache.catalina.startup.Catalina.start Server startup in [12,513] milliseconds
> 26-Aug-2020 08:45:54.721 WARNING [Catalina-utility-4] org.apache.catalina.valves.StuckThreadDetectionValve.notifyStuckThreadDetected Thread [http-nio-8090-exec-8] (id=[51]) has been active for [60,013] milliseconds (since [8/26/20 8:44 AM]) to serve the same request for [https://ci.mundiwebservices.com/confluence/setup/setupdbtype.action] and may be stuck (configured threshold for this StuckThreadDetectionValve is [60] seconds). There is/are [1] thread(s) in total that are monitored by this Valve and may be stuck.
> ?java.lang.Throwable
> ??at java.io.FileOutputStream.open0(Native Method)
> ??at java.io.FileOutputStream.open(FileOutputStream.java:270)
> ??at java.io.FileOutputStream.<init>(FileOutputStream.java:213)
> ??at java.io.FileOutputStream.<init>(FileOutputStream.java:162)
> [...]
> 26-Aug-2020 08:59:49.440 SEVERE [http-nio-8090-exec-3] org.apache.catalina.core.StandardHostValve.custom Exception Processing ErrorPage[errorCode=500, location=/500page.jsp]
> ?org.apache.jasper.JasperException: An exception occurred processing [/500page.jsp] at line [123]120: ???????? ?confluenceInfo = sysInfoService.getConfluenceInfo();
> 121: ???????? ?memoryInfo = sysInfoService.getMemoryInfo();
> 122: ???????? ?dbInfo = sysInfoService.getSafeDatabaseInfo();
> 123:???????????????? sysinfo = GeneralUtil.convertBeanToMap(sysInfoService.getSystemProperties());
> 124: 
> 125: ???? ??isOrion = "Orion".equals(sysinfo.get("appServer"));
> 126:???????? ?}
> Stacktrace:
> ??at org.apache.jasper.servlet.JspServletWrapper.handleJspException(JspServletWrapper.java:625)
> ??at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:514)
> ??at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:385)
> ??at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:329)
> ??at javax.servlet.http.HttpServlet.service(HttpServlet.java:741)
> [...]
> ?Caused by: java.util.concurrent.CompletionException: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.
> [...]?
> ?... 73 more
> ?Caused by: com.atlassian.confluence.tenant.VacantException: Confluence is vacant, a call to tenanted [public abstract org.hibernate.Session org.hibernate.SessionFactory.getCurrentSession() throws org.hibernate.HibernateException] is not allowed.
> [...]
> ??... 110 more
> ```

> Is someone has face same issue and then can support us to deploy confluence ?
>
> Thank you for your support!!


Answers:
author: Lo?c BAUDOUIN
body: Hello,

At the end we decided to installed last confluence dockerized version 7.7.2 with a postgresql 10 and issue hasn't been reproduced.

May be it is a known issue corrected in later version of confluence ?

As issue is solved for me I let you see if you close or not my post.

Thank you


Tags: confluence-server

server