Personal spaces are no longer linked and creator is anonymous

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.

Problem

User is unable to access his personal space via User Interface under the top right drop-down menu. User only sees Add Personal Space option instead of Personal Space.

Symptoms

  • Personal space links missing after a Confluence upgrade.
  • Personal space still exists if accessed directly using the URL.
  • The creator of the personal space is Anonymous

Diagnosis

Run this SQL query to check the CREATOR of the space. If it's NULL, then proceed to the solution below.

select * from SPACES WHERE SPACETYPE='personal' 

Cause

During the upgrade, for some unknown cause, all the personal space creator has changed to NULL causing the creator to be anonymous.

Resolution

Always back up your data before performing any modifications to the database. If possible, test any alter, insert, update, or delete SQL commands on a staging server first.

tip/resting Created with Sketch.

Also backup the Confluence Home directory before proceeding.


Run the query below and it will restore all the personal spaces to the original creator.

MySQL :

 update spaces set creator = (select user_key from user_mapping where concat('~', username) = spacekey) where spacetype = 'personal' and creator is null;

PostgreSQL

 update spaces set creator = (select user_key from user_mapping where spacekey = '~' || username) where spacetype = 'personal' and creator is null;

Last modified on Nov 14, 2018

Was this helpful?

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