Purging space trash causes error "Write operations are not allowed in read-only mode"

Still need help?

The Atlassian Community is here for you.

Ask the community

Platform notice: Server and Data Center only. This article only applies to Atlassian products on the server and data center platforms.

Summary


We have observed this issue after trying to delete a space from UI fails with "Delete space failed" message and then trying to purge the space trash.

Environment

  • 7.13.x

  • k15t 'Scroll Platform' plugin installed on the instance.

Diagnosis

You observe the following error on logs when you try to purge the space trash:

atlassian-confluence.log
2022-12-01 12:17:15,323 ERROR [http-nio-8090-exec-1904 url: /pages/doemptytrash.action; user: YButler] [content.render.xhtml.DefaultRenderer] renderWithoutMetrics Error rendering content for view: RuntimeException occurred while performing an XHTML storage transformation (Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.)
 -- space: 600670209 | url: /pages/doemptytrash.action | traceId: 910d84fd318fd435 | userName: YButler | referer: https://confluence-qa.analog.com/pages/emptytrash.action?key=BEL | action: doemptytrash
com.atlassian.confluence.content.render.xhtml.XhtmlException: RuntimeException occurred while performing an XHTML storage transformation (Write operations are not allowed in read-only mode (FlushMode.MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition.)
    at com.atlassian.confluence.content.render.xhtml.storage.StorageXhtmlTransformer.transform(StorageXhtmlTransformer.java:53)
    at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
    at com.atlassian.confluence.content.render.xhtml.TransformerChain.transform(TransformerChain.java:33)
    at com.atlassian.confluence.content.render.xhtml.PluggableTransformerChain.transform(PluggableTransformerChain.java:39)
    at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.renderWithoutMetrics(DefaultRenderer.java:189)
    at com.atlassian.confluence.content.render.xhtml.DefaultRenderer.renderWithResult(DefaultRenderer.java:150)
    at com.atlassian.confluence.content.render.xhtml.DefaultFormatConverter.convertToEditorFormatWithResult(DefaultFormatConverter.java:147)
    at sun.reflect.GeneratedMethodAccessor3045.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
...
    at com.k15t.scroll.platform.services.page.impl.DefaultScrollDraftManager.getDraftForPage(DefaultScrollDraftManager.java:159)
    at com.k15t.scroll.platform.services.listener.SharedDraftRemoveListener.onSharedDraftRemove(SharedDraftRemoveListener.java:49)
...
    at com.atlassian.confluence.pages.DefaultTrashManager.deleteBlock(DefaultTrashManager.java:113)
    at com.atlassian.confluence.pages.DefaultTrashManager.emptyTrash(DefaultTrashManager.java:69)
...


(info) Note that the error stack shows a method from 'k15t.scroll.platform' is involved, which relates to k15t 'Scroll Platform' plugin.

Cause


The root cause is currently unknown, but it seems the k15t 'Scroll Platform' plugin interferes on the space trash purge.

Solution

  1. Disable the k15t 'Scroll Platform' plugin.
  2. Try the space removal again

 If problems persist, try disable other k15t Scroll plugins that may be installed on your environment and try to purge the space trash again. 

(info) In case you don't find a reference to the k15t 'Scroll Platform' plugin on the error stack, try to identify any other plugin and proceed the same way.



Last modified on Dec 5, 2022

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.