Unable To Delete User with com.atlassian.confluence.spaces.Space.pageTemplates Exception
Platform Notice: Data Center Only - This article only applies to Atlassian products on the Data Center platform.
Note that this KB was created for the Data Center version of the product. Data Center KBs for non-Data-Center-specific features may also work for Server versions of the product, however they have not been tested. Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Except Fisheye and Crucible
Summary
Symptoms
Unable to remove specific user even though all content related to this user has already been removed.
The following appears in the atlassian-confluence.log
: (PostgreSQL database)
1
2
3
4
5
6
7
8
9
2014-03-14 09:06:42,802 ERROR [http-8090-4] [atlassian.confluence.servlet.ConfluenceServletDispatcher] sendError Could not execute action
-- referer: http://localhost:8090/admin/users/removeuser.action?username=test| url: /admin/users/removeuser-confirm.action | userName: test
com.atlassian.core.exception.InfrastructureException: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection
...
Caused by: net.sf.hibernate.LazyInitializationException: Failed to lazily initialize a collection
...
Caused by: net.sf.hibernate.exception.GenericJDBCException: could not initialize collection: [com.atlassian.confluence.spaces.Space.pageTemplates#1933313]
...
Caused by: org.postgresql.util.PSQLException: ERROR: current transaction is aborted, commands ignored until end of transaction block
Diagnosis
Try to do the instruction following articles before attempting the removal:
Cause
The personal space of the user is not properly removed from the database.
Solution
Resolution
Run the following query to find the problematic row:
1
select * from spaces where substr(spacekey,2) = 'username';
Follow the instruction from the article 'Delete a Space' to remove the problematic personal space
Restart Confluence and click on 'Flush All' in
Confluence Admin >> Cache Statistics
screenRemove the user from Confluence Administration panel
Was this helpful?