No user exists with the user key

Hello,

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/confluence-init.properties)

Hello,

Restart helped.

Thank you for the support :)

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Nov 29, 2018 in New to Confluence

How to use Confluence Cloud for stakeholder management

Most of us don’t need much convincing that stakeholder management is important. It just makes sense that keeping everyone in-the-know on projects and assigning clearly defined roles is key to having ...

1,086 views 0 5
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