Not able to install external app
Asked by Fr?d?ric Legrand:

Hi

I am getting the following issue while installing external app (the issue is occurring for several app).

Here is the log output:

01-Jun-2020 13:14:48.376 INFO \[http-nio-8090-exec-5\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
Exception in thread "com.atlassian.upm.core.async.AutoProgressIncrementer" org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is net.sf.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection  
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:473)  
at com.atlassian.confluence.impl.hibernate.ConfluenceHibernateTransactionManager.doBegin(ConfluenceHibernateTransactionManager.java:41)  
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:378)  
at jdk.internal.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)  
at com.sun.proxy.$Proxy69.getTransaction(Unknown Source)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$2(ConfluenceSpringHostContextAccessor.java:59)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:59)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:50)  
at jdk.internal.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
at com.sun.proxy.$Proxy374.doInTransaction(Unknown Source)  
at jdk.internal.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)  
at com.sun.proxy.$Proxy374.doInTransaction(Unknown Source)  
at com.atlassian.sal.confluence.pluginsettings.ConfluencePluginSettings.get(ConfluencePluginSettings.java:67)  
at com.atlassian.upm.core.impl.NamespacedPluginSettings.get(NamespacedPluginSettings.java:29)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.getTaskInternal(AsynchronousTaskStatusStoreImpl.java:134)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.lambda$updateTaskStatus$1(AsynchronousTaskStatusStoreImpl.java:67)  
at com.atlassian.upm.impl.Locks.runWithLock(Locks.java:113)  
at com.atlassian.upm.impl.Locks.writeWithLock(Locks.java:70)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.updateTaskStatus(AsynchronousTaskStatusStoreImpl.java:66)  
at com.atlassian.upm.core.async.AsynchronousTaskManager$2.updateStatus(AsynchronousTaskManager.java:118)  
at com.atlassian.upm.core.async.AutoProgressIncrementer.updateProgress(AutoProgressIncrementer.java:68)  
at com.atlassian.upm.core.async.AutoProgressIncrementer.access$500(AutoProgressIncrementer.java:14)  
at com.atlassian.upm.core.async.AutoProgressIncrementer$UpdateTask.run(AutoProgressIncrementer.java:88)  
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)  
at java.base/java.util.TimerThread.run(Timer.java:506)  
Caused by: net.sf.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection  
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:115)  
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)  
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)  
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:102)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:129)  
at org.hibernate.internal.SessionImpl.connection(SessionImpl.java:514)  
at com.atlassian.hibernate.adapter.adapters.session.SessionV2Adapter.connection(SessionV2Adapter.java:159)  
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:422)  
... 37 more  
Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.  
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:337)  
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446)  
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370)  
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:311)  
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:297)  
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:274)  
at org.postgresql.jdbc.PgConnection.execSQLUpdate(PgConnection.java:440)  
at org.postgresql.jdbc.PgConnection.setTransactionIsolation(PgConnection.java:857)  
at com.mchange.v2.c3p0.impl.NewProxyConnection.setTransactionIsolation(NewProxyConnection.java:809)  
at net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:37)  
at com.atlassian.hibernate.adapter.adapters.ConnectionProviderV5Adapter.getConnection(ConnectionProviderV5Adapter.java:35)  
at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:99)  
... 41 more  
Caused by: java.io.EOFException  
at org.postgresql.core.PGStream.receiveChar(PGStream.java:337)  
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2000)  
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)  
... 53 more  
01-Jun-2020 13:15:19.801 INFO \[http-nio-8090-exec-10\] com.sun.jersey.server.impl.application.WebApplicationImpl._initiate Initiating Jersey application, version 'Jersey: 1.19.4 05/24/2017 03:20 PM'  
Exception in thread "com.atlassian.upm.core.async.AutoProgressIncrementer" org.springframework.transaction.CannotCreateTransactionException: Could not open Hibernate Session for transaction; nested exception is net.sf.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection  
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:473)  
at com.atlassian.confluence.impl.hibernate.ConfluenceHibernateTransactionManager.doBegin(ConfluenceHibernateTransactionManager.java:41)  
at org.springframework.transaction.support.AbstractPlatformTransactionManager.getTransaction(AbstractPlatformTransactionManager.java:378)  
at jdk.internal.reflect.GeneratedMethodAccessor205.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:343)  
at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:205)  
at com.sun.proxy.$Proxy69.getTransaction(Unknown Source)  
at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:137)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$2(ConfluenceSpringHostContextAccessor.java:59)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:84)  
at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:68)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:59)  
at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:50)  
at jdk.internal.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)  
at com.sun.proxy.$Proxy374.doInTransaction(Unknown Source)  
at jdk.internal.reflect.GeneratedMethodAccessor263.invoke(Unknown Source)  
at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)  
at java.base/java.lang.reflect.Method.invoke(Method.java:566)  
at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:131)  
at com.sun.proxy.$Proxy374.doInTransaction(Unknown Source)  
at com.atlassian.sal.confluence.pluginsettings.ConfluencePluginSettings.get(ConfluencePluginSettings.java:67)  
at com.atlassian.upm.core.impl.NamespacedPluginSettings.get(NamespacedPluginSettings.java:29)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.getTaskInternal(AsynchronousTaskStatusStoreImpl.java:134)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.lambda$updateTaskStatus$1(AsynchronousTaskStatusStoreImpl.java:67)  
at com.atlassian.upm.impl.Locks.runWithLock(Locks.java:113)  
at com.atlassian.upm.impl.Locks.writeWithLock(Locks.java:70)  
at com.atlassian.upm.core.async.AsynchronousTaskStatusStoreImpl.updateTaskStatus(AsynchronousTaskStatusStoreImpl.java:66)  
at com.atlassian.upm.core.async.AsynchronousTaskManager$2.updateStatus(AsynchronousTaskManager.java:118)  
at com.atlassian.upm.core.async.AutoProgressIncrementer.updateProgress(AutoProgressIncrementer.java:68)  
at com.atlassian.upm.core.async.AutoProgressIncrementer.access$500(AutoProgressIncrementer.java:14)  
at com.atlassian.upm.core.async.AutoProgressIncrementer$UpdateTask.run(AutoProgressIncrementer.java:88)  
at java.base/java.util.TimerThread.mainLoop(Timer.java:556)  
at java.base/java.util.TimerThread.run(Timer.java:506)  
Caused by: net.sf.hibernate.exception.JDBCConnectionException: Unable to acquire JDBC Connection  
at org.hibernate.exception.internal.SQLStateConversionDelegate.convert(SQLStateConversionDelegate.java:115)  
at org.hibernate.exception.internal.StandardSQLExceptionConverter.convert(StandardSQLExceptionConverter.java:42)  
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:111)  
at org.hibernate.engine.jdbc.spi.SqlExceptionHelper.convert(SqlExceptionHelper.java:97)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:102)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.getPhysicalConnection(LogicalConnectionManagedImpl.java:129)  
at org.hibernate.internal.SessionImpl.connection(SessionImpl.java:514)  
at com.atlassian.hibernate.adapter.adapters.session.SessionV2Adapter.connection(SessionV2Adapter.java:159)  
at org.springframework.orm.hibernate.HibernateTransactionManager.doBegin(HibernateTransactionManager.java:422)  
... 37 more  
Caused by: org.postgresql.util.PSQLException: An I/O error occurred while sending to the backend.  
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:337)  
at org.postgresql.jdbc.PgStatement.executeInternal(PgStatement.java:446)  
at org.postgresql.jdbc.PgStatement.execute(PgStatement.java:370)  
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:311)  
at org.postgresql.jdbc.PgStatement.executeCachedSql(PgStatement.java:297)  
at org.postgresql.jdbc.PgStatement.executeWithFlags(PgStatement.java:274)  
at org.postgresql.jdbc.PgConnection.execSQLUpdate(PgConnection.java:440)  
at org.postgresql.jdbc.PgConnection.setTransactionIsolation(PgConnection.java:857)  
at com.mchange.v2.c3p0.impl.NewProxyConnection.setTransactionIsolation(NewProxyConnection.java:809)  
at net.sf.hibernate.connection.C3P0ConnectionProvider.getConnection(C3P0ConnectionProvider.java:37)  
at com.atlassian.hibernate.adapter.adapters.ConnectionProviderV5Adapter.getConnection(ConnectionProviderV5Adapter.java:35)  
at org.hibernate.internal.NonContextualJdbcConnectionAccess.obtainConnection(NonContextualJdbcConnectionAccess.java:35)  
at org.hibernate.resource.jdbc.internal.LogicalConnectionManagedImpl.acquireConnectionIfNeeded(LogicalConnectionManagedImpl.java:99)  
... 41 more  
Caused by: java.io.EOFException  
at org.postgresql.core.PGStream.receiveChar(PGStream.java:337)  
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:2000)  
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:310)  
... 53 more


Answers:
author: Nic Brough -Adaptavist-
body: This is a problem with your database connection. It looks like the connection is being dropped by the database, the database is being overwhelmed with load, you're running out of connections (although this usually throws an error with "pool" in it somewwhere), or possibly that your Java and/or database driver are not compatible with each other or Jira.

My be interesting to see what the database server was recording its logs next