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

Atlassian JIRA | Janet Albion [Atlassian] | 2 years ago
  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
  3. 0

    GitHub comment 1#183945092

    GitHub | 10 months ago | JrJensen
    java.lang.RuntimeException: Maps directory does not exist!
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Adventures in Spark on Elastic MapReduce 4 | Control F1

    wordpress.com | 4 months ago
    java.lang.RuntimeException: Local file does not exist.
  6. 0

    AWS Developer Forums: Script runner error launching shell ...

    amazon.com | 1 year ago
    java.lang.RuntimeException: Local file does not exist.

    Not finding the right solution?
    Take a tour to get the most out of Samebug.

    Tired of useless tips?

    Automated exception search integrated into your IDE

    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