Unable to save a page
Asked by Pierpaolo Rebecchi:

We have radom problems in saving document. When we click on save we have randomly the following error  
"Unable to communicate with server. Saving is not possible at the moment".

But if we repeat the operation then from time to time saving works and document is saved

Synchonicity is off. We do not use it.

the following exception:

2019-10-09 17:14:48,301 ERROR \[http-nio-8090-exec-3\] \[engine.jdbc.spi.SqlExceptionHelper\] logExceptions Duplicate entry '63275010' for key 'PRIMARY'  
-- referer: <http://confluence.xxxx.yyy/pages/editpage.action> \| url: /rest/api/content/60719137 \| traceId: 4f550bfd9fa6dcd3 \| userName: vz01  
2019-10-09 17:14:48,305 ERROR \[http-nio-8090-exec-3\] \[atlassian.confluence.event.ConfluenceEventDispatcher\] run There was an exception thrown trying to dispatch event \[com.atlassian.confluence.event.events.conten  
t.mail.notification.ContentNotificationAddedEvent\[source=com.atlassian.confluence.mail.notification.DefaultNotificationManager@2aec889\]\] from the invoker \[SingleParameterMethodListenerInvoker{method=public void c  
om.atlassian.confluence.contributors.listeners.NotificationEventListener.onEvent(com.atlassian.confluence.event.events.content.mail.notification.ContentNotificationEvent), listener=com.atlassian.confluence.contri  
butors.listeners.NotificationEventListener@1bedfdf6} (timed)\]  
-- referer: <http://confluence.xxxx.yyy/pages/editpage.action> \| url: /rest/api/content/60719137 \| traceId: 4f550bfd9fa6dcd3 \| userName: vz01  
java.lang.RuntimeException: Failed to add entry to queue. Listener: com.atlassian.confluence.contributors.listeners.NotificationEventListener event: com.atlassian.confluence.event.events.content.mail.notification  
.ContentNotificationAddedEvent  
at at com.atlassian.event.internal.SingleParameterMethodListenerInvoker.invoke(SingleParameterMethodListenerInvoker.java:57)  
at com.atlassian.confluence.event.ConfluenceListenerHandlersConfiguration$TimedListenerInvoker.invoke(ConfluenceListenerHandlersConfiguration.java:96)  
at com.atlassian.confluence.event.ConfluenceEventDispatcher$VCacheRequestContextRunnableFactory$1.lambda$run$0(ConfluenceEventDispatcher.java:93)  
....

Any idea about which problem could be ?


Answers:
author: Stephen Sifers
body: Hello Pierpaolo,

Thanks for taking the time to relay details around your issue and including the log output from when you're having the issue. From the looks of the problem, it seems like you're having an issue with the database and a duplicate entry or key problem. With this said, I would be interested to know if your problem exists within a staging instance (a copy of the database).

Please see if you're able to recreate the issue within a staging instance and let us know. Make sure you copy the database over from production once you have a staging instance running. More information on a staging instance may be found at [Create a staging environment for upgrading Confluence](https://confluence.atlassian.com/doc/create-a-staging-environment-for-upgrading-confluence-866094180.html). (If the issue is a database issue then a staging instance will help us test resolution).

If you are still having the problem, please let us know what database application you're using (MSSQL, MySQL, Postgres) along with the version as well.

Please let us know how testing on staging plays out.

Regards,  
Stephen Sifers


Tags: confluence-server

server