Postgres / Confluence - ERROR log - Healthcheck value too long task limit
Asked by ElodieB:

Hi,

I'm working on a Confluence 6.7.1 for a long time and after an upgrade from 5.10.3 on the development platform (the same problem isn't on the integration platform which has the same parameters) each hour we have this log on the confluence.log file :

```
2018-05-29 09:34:00,509 ERROR [Caesium-1-2] [healthcheck.persistence.service.HealthStatusPersistenceServiceImpl] - There's a problem persisting new health status, Limite de t?ches, into the database2018-05-29 09:34:00,509 ERROR [Caesium-1-2] [healthcheck.persistence.service.HealthStatusPersistenceServiceImpl] - Stacktrace for failure:com.atlassian.activeobjects.internal.ActiveObjectsSqlException: There was a SQL exception thrown by the Active Objects library:Database:        - name:PostgreSQL        - version:9.3.20        - minor version:3        - major version:9Driver:        - name:PostgreSQL Native Driver        - version:PostgreSQL 9.2 JDBC4 (build 1002)org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)        at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.create(EntityManagedActiveObjects.java:94)        at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.create(TenantAwareActiveObjects.java:266)        at sun.reflect.GeneratedMethodAccessor765.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)        at com.sun.proxy.$Proxy1328.create(Unknown Source)        at com.atlassian.troubleshooting.healthcheck.persistence.service.HealthStatusPersistenceServiceImpl.storeNewFailure(HealthStatusPersistenceServiceImpl.java:89)        at com.atlassian.troubleshooting.healthcheck.persistence.service.HealthStatusPersistenceServiceImpl.storeFailedStatuses(HealthStatusPersistenceServiceImpl.java:70)        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at com.atlassian.activeobjects.tx.TransactionalProxy.invoke(TransactionalProxy.java:60)        at com.atlassian.activeobjects.tx.TransactionalProxy.access$000(TransactionalProxy.java:18)        at com.atlassian.activeobjects.tx.TransactionalProxy$1.doInTransaction(TransactionalProxy.java:49)        at com.atlassian.sal.core.transaction.HostContextTransactionTemplate$1.doInTransaction(HostContextTransactionTemplate.java:21)        at com.atlassian.sal.spring.component.SpringHostContextAccessor$1.doInTransaction(SpringHostContextAccessor.java:71)        at org.springframework.transaction.support.TransactionTemplate.execute(TransactionTemplate.java:133)        at com.atlassian.sal.spring.component.SpringHostContextAccessor.doInTransaction(SpringHostContextAccessor.java:68)        at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.access$001(ConfluenceSpringHostContextAccessor.java:21)        at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.lambda$doInTransaction$3(ConfluenceSpringHostContextAccessor.java:72)        at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor$$Lambda$496/771044955.perform(Unknown Source)        at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)        at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)        at com.atlassian.confluence.spring.transaction.interceptor.ConfluenceSpringHostContextAccessor.doInTransaction(ConfluenceSpringHostContextAccessor.java:72)        at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26)        at com.sun.proxy.$Proxy292.doInTransaction(Unknown Source)        at sun.reflect.GeneratedMethodAccessor152.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at com.atlassian.plugin.osgi.bridge.external.HostComponentFactoryBean$DynamicServiceInvocationHandler.invoke(HostComponentFactoryBean.java:136)        at com.sun.proxy.$Proxy292.doInTransaction(Unknown Source)        at com.atlassian.sal.core.transaction.HostContextTransactionTemplate.execute(HostContextTransactionTemplate.java:18)        at sun.reflect.GeneratedMethodAccessor158.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)        at com.sun.proxy.$Proxy797.execute(Unknown Source)        at com.atlassian.activeobjects.internal.SalTransactionManager.inTransaction(SalTransactionManager.java:42)        at com.atlassian.activeobjects.internal.AbstractLoggingTransactionManager.doInTransaction(AbstractLoggingTransactionManager.java:16)        at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.executeInTransaction(EntityManagedActiveObjects.java:204)        at com.atlassian.activeobjects.osgi.TenantAwareActiveObjects.executeInTransaction(TenantAwareActiveObjects.java:336)        at sun.reflect.GeneratedMethodAccessor457.invoke(Unknown Source)        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)        at java.lang.reflect.Method.invoke(Method.java:497)        at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:302)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56)        at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70)        at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133)        at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121)        at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)        at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:208)        at com.sun.proxy.$Proxy1328.executeInTransaction(Unknown Source)        at com.atlassian.activeobjects.tx.TransactionalProxy.executeInTransaction(TransactionalProxy.java:46)        at com.atlassian.activeobjects.tx.TransactionalProxy.invokeInTransaction(TransactionalProxy.java:39)        at com.atlassian.activeobjects.tx.TransactionalProxy.invoke(TransactionalProxy.java:31)        at com.sun.proxy.$Proxy1635.storeFailedStatuses(Unknown Source)        at com.atlassian.troubleshooting.healthcheck.impl.DefaultHealthCheckProcessFactory$$Lambda$777/150367170.accept(Unknown Source)        at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckProcess.lambda$runSync$1(SupportHealthCheckProcess.java:84)        at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckProcess$$Lambda$804/1794278563.accept(Unknown Source)        at java.util.Optional.ifPresent(Optional.java:159)        at com.atlassian.troubleshooting.healthcheck.concurrent.SupportHealthCheckProcess.runSync(SupportHealthCheckProcess.java:84)        at com.atlassian.troubleshooting.healthcheck.impl.DefaultSupportHealthCheckManager.runHealthChecks(DefaultSupportHealthCheckManager.java:64)        at com.atlassian.troubleshooting.healthcheck.impl.DefaultSupportHealthCheckManager.runAllHealthChecks(DefaultSupportHealthCheckManager.java:70)        at com.atlassian.troubleshooting.healthcheck.scheduler.HealthCheckJob.execute(HealthCheckJob.java:36)        at com.atlassian.sal.core.scheduling.DefaultPluginScheduler$JobDescriptor.runJob(DefaultPluginScheduler.java:129)        at com.atlassian.sal.core.scheduling.DefaultPluginScheduler.runJobImpl(DefaultPluginScheduler.java:82)        at com.atlassian.sal.core.scheduling.DefaultPluginScheduler$1.runJob(DefaultPluginScheduler.java:92)        at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.doRunJob(JobRunnerWrapper.java:120)        at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.lambda$runJob$0(JobRunnerWrapper.java:91)        at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper$$Lambda$685/495122725.perform(Unknown Source)        at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContextInternal(VCacheRequestContextManager.java:87)        at com.atlassian.confluence.impl.vcache.VCacheRequestContextManager.doInRequestContext(VCacheRequestContextManager.java:71)        at com.atlassian.confluence.impl.schedule.caesium.JobRunnerWrapper.runJob(JobRunnerWrapper.java:91)        at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:134)        at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:106)        at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:90)        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:443)        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeLocalJob(CaesiumSchedulerService.java:410)        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:388)        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:285)        at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:282)        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)        at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)        at java.lang.Thread.run(Thread.java:745)Caused by: org.postgresql.util.PSQLException: ERROR: value too long for type character varying(255)        at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:2157)        at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1886)        at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:255)        at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:555)        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:417)        at org.postgresql.jdbc2.AbstractJdbc2Statement.executeUpdate(AbstractJdbc2Statement.java:363)        at org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:97)        at org.apache.tomcat.dbcp.dbcp2.DelegatingPreparedStatement.executeUpdate(DelegatingPreparedStatement.java:97)        at net.java.ao.db.PostgreSQLDatabaseProvider.executeInsertReturningKey(PostgreSQLDatabaseProvider.java:336)        at net.java.ao.DatabaseProvider.insertReturningKey(DatabaseProvider.java:1861)        at net.java.ao.db.PostgreSQLDatabaseProvider.insertReturningKey(PostgreSQLDatabaseProvider.java:298)        at net.java.ao.EntityManager.create(EntityManager.java:366)        at com.atlassian.activeobjects.internal.EntityManagedActiveObjects.create(EntityManagedActiveObjects.java:92)        ... 128 more2018-05-29 09:34:00,513 ERROR [Caesium-1-2] [healthcheck.persistence.service.HealthStatusPropertiesPersistenceServiceImpl] - There's a problem persisting the property last-run into the database
```

I have the postgresql-9.2-1002.jdbc4.jar driver in the /lib and /confluence/WEB-INF/lib folders.

Any idea about this log please ?

Best regards,

Elodie


Answers:
author: Shannon S
body: Elodie,

The Postgres driver is already bundled with Confluence. It should be found in the `installation-directory>/confluence/WEB-INF/lib `directory.

I would recommend re-downloading the driver that came with Confluence and adding it back to that folder.

* [Database JDBC Drivers](https://confluence.atlassian.com/doc/database-jdbc-drivers-171742.html)

You can stop Confluence first to do this.

Let me know if you have any trouble.

Regards,

Shannon

comments: author: df rac
body: I fellow your solution, so i put in confluence lib directory JDBC Driver 4.22 but still have the same issue , i try also the driver 9.4.x noting change, the same issue..


author: AnnWorley
body: Hi Elodie,

I found your suggestion ticket on our bug tracker. Thank you for reporting the issue because the ticket we are tracking the bug on only mentioned Jira until you pointed it out in Confluence. Here is the ticket we are tracking the issue on, in our Health Check plugin project since it has cross-application impact: [Healthcheck reports thread limit description is too long](https://ecosystem.atlassian.net/browse/ATST-861?)

The health check plugin is trying to insert a phrase into the database:

```
Limite de t?ches
```

that is too long for the definition of the field. It should not cause any issue with your instance (though the errors look alarming). If you do run into any performance issues or unexpected behavior I will be very interested in researching it and helping out however I can.


Tags: confluence-server

server