java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist

Atlassian JIRA | Janet Albion [Atlassian] | 2 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    *Symptom*: * error thrown in the JIRA UI indicating "'<user>' does not exist" * repeating the same step will throws random username does not exist *Step to reproduce*: # install JIRA with internal directory # create a new Internal with Delegated Authentication directory # migrate the users directory from internal to delegated authentication directory # (bug) error thrown in the JIRA UI indicating "'<user>' does not exist" # (bug) in the JIRA logs: {code} /plugins/servlet/embedded-crowd/directories/migrate/ [embedded.admin.directory.MigrateDirectoryUsersController] User migration failed java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146) ... Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizDelegatingMembershipDao.addUserToGroup(OfBizDelegatingMembershipDao.java:81) at com.atlassian.crowd.directory.AbstractInternalDirectory.addUserToGroup(AbstractInternalDirectory.java:821) at com.atlassian.crowd.directory.DelegatedAuthenticationDirectory.addUserToGroup(DelegatedAuthenticationDirectory.java:805) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:757) {code} # (bug) username thrown in the error cannot login into JIRA using the password stored in LDAP *To verify*: # make sure the error is not caused by bug [JRA-24889|https://jira.atlassian.com/browse/JRA-24889] # in the JIRA database check if the user does exist correctly in the {{app_user}}, {{cwd_user}}, {{cwd_membership}}. The SQL queries below can be use: {code:sql} select * from app_user where lower_user_name='<sample_username>'; select * from cwd_user where user_name ='<sample_username>'; select * from cwd_membership where child_name ='<sample_username>'; select * from cwd_directory; {code} # Important note: restoring the JIRA's data into a test instance and the problem is not reproducible in the test instance. *Root Cause*: Broken Cache when creating the user in the new directory.

    Atlassian JIRA | 2 years ago | Janet Albion [Atlassian]
    java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist
  2. 0

    *Symptom*: * error thrown in the JIRA UI indicating "'<user>' does not exist" * repeating the same step will throws random username does not exist *Step to reproduce*: # install JIRA with internal directory # create a new Internal with Delegated Authentication directory # migrate the users directory from internal to delegated authentication directory # (bug) error thrown in the JIRA UI indicating "'<user>' does not exist" # (bug) in the JIRA logs: {code} /plugins/servlet/embedded-crowd/directories/migrate/ [embedded.admin.directory.MigrateDirectoryUsersController] User migration failed java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146) ... Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist at com.atlassian.jira.crowd.embedded.ofbiz.OfBizUserDao.findByName(OfBizUserDao.java:85) at com.atlassian.jira.crowd.embedded.ofbiz.OfBizDelegatingMembershipDao.addUserToGroup(OfBizDelegatingMembershipDao.java:81) at com.atlassian.crowd.directory.AbstractInternalDirectory.addUserToGroup(AbstractInternalDirectory.java:821) at com.atlassian.crowd.directory.DelegatedAuthenticationDirectory.addUserToGroup(DelegatedAuthenticationDirectory.java:805) at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.addUserToGroup(DirectoryManagerGeneric.java:757) {code} # (bug) username thrown in the error cannot login into JIRA using the password stored in LDAP *To verify*: # make sure the error is not caused by bug [JRA-24889|https://jira.atlassian.com/browse/JRA-24889] # in the JIRA database check if the user does exist correctly in the {{app_user}}, {{cwd_user}}, {{cwd_membership}}. The SQL queries below can be use: {code:sql} select * from app_user where lower_user_name='<sample_username>'; select * from cwd_user where user_name ='<sample_username>'; select * from cwd_membership where child_name ='<sample_username>'; select * from cwd_directory; {code} # Important note: restoring the JIRA's data into a test instance and the problem is not reproducible in the test instance. *Root Cause*: Broken Cache when creating the user in the new directory.

    Atlassian JIRA | 2 years ago | Janet Albion [Atlassian]
    java.lang.RuntimeException: com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist

    Root Cause Analysis

    1. java.lang.RuntimeException

      com.atlassian.crowd.exception.UserNotFoundException: User <johndoe> does not exist

      at com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction()
    2. com.atlassian.crowd
      MigrateDirectoryUsersController$1.doInTransaction
      1. com.atlassian.crowd.embedded.admin.directory.MigrateDirectoryUsersController$1.doInTransaction(MigrateDirectoryUsersController.java:146)
      1 frame