No user exists with the user key


When a user tries to login to Confluence, an error is thrown:

java.lang.RuntimeException: javax.servlet.ServletException: org.apache.velocity.exception.MethodInvocationException: Invocation of method 'getConfluenceResourceTags' in class com.atlassian.confluence.setup.velocity.VelocityFriendlyPageBuilderService threw exception java.lang.IllegalArgumentException: No user exists with the user key 8ada960257425b3001578f655756008a at /decorators/includes/header.vm[line 84, column 20]

The user exists in the DB with this key. Any ideas how to fix this?

Tried to flush:
User Information By Username
User keys (by username)
User Login Information
User Property Set References
Username to Id Mappings

1 answer

0 votes
Ann Worley Atlassian Team Aug 21, 2017

I understand you are seeing an error when a user tries to log in. You have checked in the database for the user key and flushed the database caches under Confluence Admin>Cache Management.

Please let me know:

  • Is this a new installation, a test instance copied from Production or a Production instance?
  • Is the error you posted from the log or from the browser when the user tries to log in?
  • Does it only happen for one user, if so, is that the same user that is associated with the user key?
  • What table did you find the user key in?

To support user renaming, the user_mapping table associates users with user keys and the keys are then used elsewhere in the database to identify users.

One way to chase down which table Confluence is querying when it fails to find the expected user key is to turn on detailed sql logging and see what is logged when the user tries to log in. Please see Enabling Detailed SQL Logging.

The log to check is <confluence_home>/logs/atlassian-confluence.log. (The <confluence_home> directory is the path defined in the following file: <confluence_install>/confluence/WEB-INF/classes/


Restart helped.

Thank you for the support :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 12, 2019 in Confluence

Confluence Admin Certification now $150 for Community Members

More and more people are building their careers with Atlassian, and we want you to be at the front of this wave! Important Dates Start the Certification Prep Course by 2 April 2019 Take your e...

278 views 2 10
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you