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 vote
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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jul 10, 2018 in Confluence

We want to see the templates you've created in Confluence!

Hi Community, Jessica here from the Confluence Product Marketing team!  July’s community challenge is all about sharing pictures  — and as an extension of our first post on what ...

902 views 23 12
Join discussion

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