com.atlassian.crowd.exception.UserNotFoundException: User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749160500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.handleUserNotFound(RestCrowdClient.java:1264) 2016-06-16 10:46:34.749164500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.updateUser(RestCrowdClient.java:189) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.RemoteCrowdDirectory.updateUser(RemoteCrowdDirectory.java:252) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateUser(DbCachingRemoteDirectory.java:538) 2016-06-16 10:46:34.749170500 at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateUser(DirectoryManagerGeneric.java:365) 2016-06-16 10:46:34.749171500 ... 3 filtered 2016-06-16 10:46:34.749171500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749171500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-06-16 10:46:34.749175500 at com.sun.proxy.$Proxy551.updateUser(Unknown Source) 2016-06-16 10:46:34.749176500 ... 3 filtered 2016-06-16 10:46:34.749176500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749176500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) 2016-06-16 10:46:34.749177500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) 2016-06-16 10:46:34.749181500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) 2016-06-16 10:46:34.749181500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749182500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 2016-06-16 10:46:34.749187500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 2016-06-16 10:46:34.749187500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749188500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) 2016-06-16 10:46:34.749194500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)

Atlassian JIRA | Jaime Silveira [Atlassian] | 6 months ago
  1. 0

    h3. Summary In Cloud, when installing ZenDesk and uninstalling it (maybe other plugins may be affected), if we remove the user ‘addon_zendesk_for_jira’, if this user is associated with other contents in JIRA. h3. Steps to Reproduce # Install the ‘Zendesk for JIRA’ add-on’ in Find New Add-ons #* The ‘addon_zendesk_for_jira’ will be created for it # Associate this user with some content in JIRA #* For example, add it as assignee to an issue # Uninstall the add-on (not disable or unsubscribe, click ‘Uninstall’) # Delete this user in User Management # Try to re-install the add-on h3. Expected Results The add-on is correctly installed again. h3. Actual Results The add-on fails to be installed. The following error appears in the UI: {noformat} An error occurred while setting up the permissions for this add-on. Please contact Atlassian support. {noformat} The below exception is thrown in the JIRA logs: {noformat} 2016-06-16 10:46:34.749053500 2016-06-16 10:46:34,747 UpmAsynchronousTaskManager:thread-2 ERROR sysadmin 645x5159x3 1359c7p 103.233.242.8 /rest/plugins/1.0/available/featured [c.a.p.c.plugin.lifecycle.ConnectAddonInstaller] An exception occurred while installing the plugin '[zendesk_for_jira]. Uninstalling... 2016-06-16 10:46:34.749055500 com.atlassian.plugin.connect.api.lifecycle.ConnectAddonInstallException: com.atlassian.crowd.exception.UserNotFoundException: User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749056500 at com.atlassian.plugin.connect.plugin.lifecycle.ConnectAddonManager.provisionAddonUserAndScopes(ConnectAddonManager.java:619) 2016-06-16 10:46:34.749087500 at com.atlassian.plugin.connect.plugin.lifecycle.ConnectAddonManager.provisionUserIfNecessary(ConnectAddonManager.java:246) 2016-06-16 10:46:34.749087500 at com.atlassian.plugin.connect.plugin.lifecycle.ConnectAddonManager.installConnectAddon(ConnectAddonManager.java:194) 2016-06-16 10:46:34.749088500 at com.atlassian.plugin.connect.plugin.lifecycle.ConnectAddonInstaller.install(ConnectAddonInstaller.java:115) 2016-06-16 10:46:34.749094500 at com.atlassian.plugin.connect.plugin.lifecycle.upm.ConnectUPMInstallHandler.installPlugin(ConnectUPMInstallHandler.java:114) 2016-06-16 10:46:34.749100500 at com.atlassian.upm.core.install.DefaultPluginInstallationService.execute(DefaultPluginInstallationService.java:117) 2016-06-16 10:46:34.749100500 at com.atlassian.upm.core.install.DefaultPluginInstallationService.install(DefaultPluginInstallationService.java:91) 2016-06-16 10:46:34.749101500 at com.atlassian.upm.install.UpmPluginInstallationService.install(UpmPluginInstallationService.java:97) 2016-06-16 10:46:34.749119500 at com.atlassian.upm.core.rest.resources.install.InstallTask.installFromFile(InstallTask.java:156) 2016-06-16 10:46:34.749120500 at com.atlassian.upm.core.rest.resources.install.InstallRemotePluginTask$1.apply(InstallRemotePluginTask.java:81) 2016-06-16 10:46:34.749120500 at com.atlassian.upm.core.rest.resources.install.InstallRemotePluginTask$1.apply(InstallRemotePluginTask.java:69) 2016-06-16 10:46:34.749125500 at com.atlassian.upm.api.util.Either$Right.fold(Either.java:160) 2016-06-16 10:46:34.749125500 at com.atlassian.upm.core.rest.resources.install.InstallRemotePluginTask.executeTask(InstallRemotePluginTask.java:68) 2016-06-16 10:46:34.749126500 at com.atlassian.upm.core.rest.resources.install.InstallTask.run(InstallTask.java:81) 2016-06-16 10:46:34.749126500 at com.atlassian.upm.core.async.AsynchronousTaskManager.executeTask(AsynchronousTaskManager.java:124) 2016-06-16 10:46:34.749137500 at com.atlassian.upm.core.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:102) 2016-06-16 10:46:34.749137500 at com.atlassian.upm.core.async.AsynchronousTaskManager$1.call(AsynchronousTaskManager.java:99) 2016-06-16 10:46:34.749138500 at com.atlassian.sal.core.executor.ThreadLocalDelegateCallable.call(ThreadLocalDelegateCallable.java:42) 2016-06-16 10:46:34.749138500 at java.util.concurrent.FutureTask.run(FutureTask.java:266) 2016-06-16 10:46:34.749142500 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) 2016-06-16 10:46:34.749143500 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) 2016-06-16 10:46:34.749143500 at java.lang.Thread.run(Thread.java:745) 2016-06-16 10:46:34.749143500 Caused by: com.atlassian.plugin.connect.api.lifecycle.ConnectAddonInitException: com.atlassian.crowd.exception.UserNotFoundException: User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749148500 at com.atlassian.plugin.connect.crowd.usermanagement.EmbeddedCrowd.updateUser(EmbeddedCrowd.java:108) 2016-06-16 10:46:34.749148500 at com.atlassian.plugin.connect.crowd.usermanagement.ConnectCrowdBase.createOrEnableUser(ConnectCrowdBase.java:46) 2016-06-16 10:46:34.749154500 at com.atlassian.plugin.connect.crowd.usermanagement.CloudAwareCrowdService.createOrEnableUser(CloudAwareCrowdService.java:82) 2016-06-16 10:46:34.749154500 at com.atlassian.plugin.connect.crowd.usermanagement.CrowdAddonUserService.createOrEnableAddonUser(CrowdAddonUserService.java:102) 2016-06-16 10:46:34.749155500 at com.atlassian.plugin.connect.crowd.usermanagement.CrowdAddonUserService.getOrCreateAddonUserName(CrowdAddonUserService.java:70) 2016-06-16 10:46:34.749159500 at com.atlassian.plugin.connect.plugin.lifecycle.ConnectAddonManager.provisionAddonUserAndScopes(ConnectAddonManager.java:617) 2016-06-16 10:46:34.749159500 ... 21 more 2016-06-16 10:46:34.749160500 Caused by: com.atlassian.crowd.exception.UserNotFoundException: User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749160500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.handleUserNotFound(RestCrowdClient.java:1264) 2016-06-16 10:46:34.749164500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.updateUser(RestCrowdClient.java:189) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.RemoteCrowdDirectory.updateUser(RemoteCrowdDirectory.java:252) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateUser(DbCachingRemoteDirectory.java:538) 2016-06-16 10:46:34.749170500 at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateUser(DirectoryManagerGeneric.java:365) 2016-06-16 10:46:34.749171500 ... 3 filtered 2016-06-16 10:46:34.749171500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749171500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-06-16 10:46:34.749175500 at com.sun.proxy.$Proxy551.updateUser(Unknown Source) 2016-06-16 10:46:34.749176500 ... 3 filtered 2016-06-16 10:46:34.749176500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749176500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) 2016-06-16 10:46:34.749177500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) 2016-06-16 10:46:34.749181500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) 2016-06-16 10:46:34.749181500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749182500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 2016-06-16 10:46:34.749187500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 2016-06-16 10:46:34.749187500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749188500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) 2016-06-16 10:46:34.749194500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53) 2016-06-16 10:46:34.749195500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749195500 at org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57) 2016-06-16 10:46:34.749199500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749200500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 2016-06-16 10:46:34.749200500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 2016-06-16 10:46:34.749207500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749207500 at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:207) 2016-06-16 10:46:34.749208500 at com.sun.proxy.$Proxy2919.updateUser(Unknown Source) 2016-06-16 10:46:34.749208500 at com.atlassian.plugin.connect.crowd.usermanagement.EmbeddedCrowd.updateUser(EmbeddedCrowd.java:105) 2016-06-16 10:46:34.749212500 ... 27 more {noformat} h3. Notes We could see that: # The user was no longer present in User Management and its database ‘cwd_user’ table # The user is still present in JIRA’s ‘cwd_user’, as it has association to existing content # Re-creating the user manually doesn’t help, as it creates a different error h3.Partial Workaround *The following workaround may not work in some situations, for example, were the user is author of comments or history entries. Since this requires changes in issues, if possible, test it first:* # Find all links to this user (issues assigned, issues it’s a reporter of, etc.) # Change it to a different user (assign/change reporter to different users) # Create a user with the username ‘addon_zendesk_for_jira’ # Delete it #* This user should be deleted from the database in JIRA # Install the add-on

    Atlassian JIRA | 6 months ago | Jaime Silveira [Atlassian]
    com.atlassian.crowd.exception.UserNotFoundException: User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749160500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.handleUserNotFound(RestCrowdClient.java:1264) 2016-06-16 10:46:34.749164500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.updateUser(RestCrowdClient.java:189) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.RemoteCrowdDirectory.updateUser(RemoteCrowdDirectory.java:252) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateUser(DbCachingRemoteDirectory.java:538) 2016-06-16 10:46:34.749170500 at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateUser(DirectoryManagerGeneric.java:365) 2016-06-16 10:46:34.749171500 ... 3 filtered 2016-06-16 10:46:34.749171500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749171500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-06-16 10:46:34.749175500 at com.sun.proxy.$Proxy551.updateUser(Unknown Source) 2016-06-16 10:46:34.749176500 ... 3 filtered 2016-06-16 10:46:34.749176500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749176500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) 2016-06-16 10:46:34.749177500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) 2016-06-16 10:46:34.749181500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) 2016-06-16 10:46:34.749181500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749182500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 2016-06-16 10:46:34.749187500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 2016-06-16 10:46:34.749187500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749188500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) 2016-06-16 10:46:34.749194500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)
  2. 0

    Crowd log is full of messages complaining about crowd not being able to remove a user from a group because the user was not found. If you think a little bit about this, it makes no sense. Obviously if the user is does not exist he is no longer member of the group. {code} com.atlassian.crowd.exception.UserNotFoundException: User <#ccss - operations> does not exist at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:194) at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:50) at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:150) at com.atlassian.crowd.directory.AbstractInternalDirectory.removeUserFromGroup(AbstractInternalDirectory.java:849) at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:750) at sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.atlassian.crowd.directory.$Proxy372.removeUserMembershipsForGroup(Unknown Source) at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:119) {code} This is currently logged as INFO + Exception trace, so it fills our logs with bogus information. The expected behavior would be to ignore this, obviously the user is removed, even if we are able to find it. Now, let me explain the setup a little bit, to understand it better. * We are using nested groups * Not all LDAP groups are editable by crowd, in fact only just few of them are. * These two are both groups. * We do map few groups as users (altering the crowd LDAP filters), this allows us to view them as users in jira, and to attach tickets to them. I would expect to see this kind of error with such virtual-user, but that's not the case, in both cases these are just LDAP groups that are not treated separately.

    Atlassian JIRA | 3 years ago | Sorin Sbarnea (Citrix)
    com.atlassian.crowd.exception.UserNotFoundException: User <#ccss - operations> does not exist
  3. 0

    Crowd log is full of messages complaining about crowd not being able to remove a user from a group because the user was not found. If you think a little bit about this, it makes no sense. Obviously if the user is does not exist he is no longer member of the group. {code} com.atlassian.crowd.exception.UserNotFoundException: User <#ccss - operations> does not exist at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:194) at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:50) at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:150) at com.atlassian.crowd.directory.AbstractInternalDirectory.removeUserFromGroup(AbstractInternalDirectory.java:849) at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:750) at sun.reflect.GeneratedMethodAccessor345.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) at java.lang.reflect.Method.invoke(Method.java:606) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.atlassian.crowd.directory.$Proxy372.removeUserMembershipsForGroup(Unknown Source) at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:119) {code} This is currently logged as INFO + Exception trace, so it fills our logs with bogus information. The expected behavior would be to ignore this, obviously the user is removed, even if we are able to find it. Now, let me explain the setup a little bit, to understand it better. * We are using nested groups * Not all LDAP groups are editable by crowd, in fact only just few of them are. * These two are both groups. * We do map few groups as users (altering the crowd LDAP filters), this allows us to view them as users in jira, and to attach tickets to them. I would expect to see this kind of error with such virtual-user, but that's not the case, in both cases these are just LDAP groups that are not treated separately.

    Atlassian JIRA | 3 years ago | Sorin Sbarnea (Citrix)
    com.atlassian.crowd.exception.UserNotFoundException: User <#ccss - operations> does not exist
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    *Step to reproduce*: # install crowd 2.8.0 # create a new user directory (for this case, Microsoft AD) # Synchronize the directory *Expected behavior* Synchronization successful without any error *Actual behavior*: Broken Cache when creating the user in the new directory. Error from the log {code} 2015-09-01 00:30:42,621 scheduler_Worker-2 INFO [atlassian.crowd.directory.DbCachingRemoteChangeOperations] Could not remove user [user_name] from group [group_name]. User was not found. com.atlassian.crowd.exception.UserNotFoundException: User <user_name> does not exist at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:201) at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:55) at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:173) at com.atlassian.crowd.directory.AbstractInternalDirectory.removeUserFromGroup(AbstractInternalDirectory.java:936) at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:820) at sun.reflect.GeneratedMethodAccessor335.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.atlassian.crowd.directory.$Proxy417.removeUserMembershipsForGroup(Unknown Source) at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:119) at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:144) at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:84) at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseAll(UsnChangedCacheRefresher.java:161) at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:1120) at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:76) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor$1.proceedWithInvocation(TransactionInterceptor.java:96) at org.springframework.transaction.interceptor.TransactionAspectSupport.invokeWithinTransaction(TransactionAspectSupport.java:260) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:94) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:204) at com.sun.proxy.$Proxy29.synchronise(Unknown Source) at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJobRunner.runJob(DirectoryPollerJobRunner.java:93) at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:135) at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:101) at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:80) at com.atlassian.scheduler.quartz1.Quartz1Job.execute(Quartz1Job.java:32) at org.quartz.core.JobRunShell.run(JobRunShell.java:223) {code} h3.Workaround # Go to Administration > User Management > User Directories # Create a duplicate directory of the problematic directory ** For all the other fields use the same values as your existing Crowd directory. ** Click Test then Save and Test. ** Crowd will re-direct the request to the User Directories screen. The directory will perform a sync. # When the sync is complete, click Disable for the new directory. # Once it is disabled, click Remove. h3.Impact Some directory is retrieving a large amount of users and could take more than 3 hours to complete the synchronisation. This will cause the end users unable to perform daily as the authentication is not functional.

    Atlassian JIRA | 1 year ago | Wayne Wong [Atlassian]
    com.atlassian.crowd.exception.UserNotFoundException: User <user_name> does not exist
  6. 0

    I have a Microsoft AD connector. In AD there are many users with mixed-case usernames e.g. NaByndoor. When incremental sync is attempted it complains the username nabyndoor can't be found (see below). {code}2013-11-15 19:17:18,727 scheduler_Worker-2 INFO [atlassian.crowd.directory.DbCachingRemoteChangeOperations] Could not remove user [nabyndoor] from group [Pacnet Managed Services - All]. User was not found. com.atlassian.crowd.exception.UserNotFoundException: User <nabyndoor> does not exist at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:66) at com.atlassian.crowd.dao.user.UserDAOHibernate.findByName(UserDAOHibernate.java:49) at com.atlassian.crowd.directory.AbstractInternalDirectory.findUserByName(AbstractInternalDirectory.java:141) at com.atlassian.crowd.directory.AbstractInternalDirectory.removeUserFromGroup(AbstractInternalDirectory.java:748) at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:702) at sun.reflect.GeneratedMethodAccessor257.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:597) at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:319) at org.springframework.aop.framework.ReflectiveMethodInvocation.invokeJoinpoint(ReflectiveMethodInvocation.java:183) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:150) at org.springframework.transaction.interceptor.TransactionInterceptor.invoke(TransactionInterceptor.java:110) at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:172) at org.springframework.aop.framework.JdkDynamicAopProxy.invoke(JdkDynamicAopProxy.java:202) at com.atlassian.crowd.directory.$Proxy205.removeUserMembershipsForGroup(Unknown Source) at com.atlassian.crowd.directory.DirectoryCacheImplUsingChangeOperations.syncUserMembersForGroup(DirectoryCacheImplUsingChangeOperations.java:119) at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseMemberships(AbstractCacheRefresher.java:145) at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseGroupChanges(UsnChangedCacheRefresher.java:258) at com.atlassian.crowd.directory.ldap.cache.UsnChangedCacheRefresher.synchroniseChanges(UsnChangedCacheRefresher.java:81) at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:612) at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:63) at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50) at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJobBean.executeInternal(DirectoryPollerJobBean.java:29) at org.springframework.scheduling.quartz.QuartzJobBean.execute(QuartzJobBean.java:113) at org.quartz.core.JobRunShell.run(JobRunShell.java:203) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) {code}

    Atlassian JIRA | 3 years ago | David Donn
    com.atlassian.crowd.exception.UserNotFoundException: User <nabyndoor> 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. com.atlassian.crowd.exception.UserNotFoundException

      User <addon_zendesk_for_jira> does not exist 2016-06-16 10:46:34.749160500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.handleUserNotFound(RestCrowdClient.java:1264) 2016-06-16 10:46:34.749164500 at com.atlassian.crowd.integration.rest.service.RestCrowdClient.updateUser(RestCrowdClient.java:189) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.RemoteCrowdDirectory.updateUser(RemoteCrowdDirectory.java:252) 2016-06-16 10:46:34.749165500 at com.atlassian.crowd.directory.DbCachingRemoteDirectory.updateUser(DbCachingRemoteDirectory.java:538) 2016-06-16 10:46:34.749170500 at com.atlassian.crowd.manager.directory.DirectoryManagerGeneric.updateUser(DirectoryManagerGeneric.java:365) 2016-06-16 10:46:34.749171500 ... 3 filtered 2016-06-16 10:46:34.749171500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749171500 at com.atlassian.plugin.util.ContextClassLoaderSettingInvocationHandler.invoke(ContextClassLoaderSettingInvocationHandler.java:26) 2016-06-16 10:46:34.749175500 at com.sun.proxy.$Proxy551.updateUser(Unknown Source) 2016-06-16 10:46:34.749176500 ... 3 filtered 2016-06-16 10:46:34.749176500 at java.lang.reflect.Method.invoke(Method.java:497) 2016-06-16 10:46:34.749176500 at org.springframework.aop.support.AopUtils.invokeJoinpointUsingReflection(AopUtils.java:317) 2016-06-16 10:46:34.749177500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.doInvoke(ServiceInvoker.java:56) 2016-06-16 10:46:34.749181500 at org.eclipse.gemini.blueprint.service.importer.support.internal.aop.ServiceInvoker.invoke(ServiceInvoker.java:60) 2016-06-16 10:46:34.749181500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749182500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.doProceed(DelegatingIntroductionInterceptor.java:133) 2016-06-16 10:46:34.749187500 at org.springframework.aop.support.DelegatingIntroductionInterceptor.invoke(DelegatingIntroductionInterceptor.java:121) 2016-06-16 10:46:34.749187500 at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179) 2016-06-16 10:46:34.749188500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invokeUnprivileged(ServiceTCCLInterceptor.java:70) 2016-06-16 10:46:34.749194500 at org.eclipse.gemini.blueprint.service.util.internal.aop.ServiceTCCLInterceptor.invoke(ServiceTCCLInterceptor.java:53)

      at org.springframework.aop.framework.ReflectiveMethodInvocation.proceed()
    2. Spring AOP
      ReflectiveMethodInvocation.proceed
      1. org.springframework.aop.framework.ReflectiveMethodInvocation.proceed(ReflectiveMethodInvocation.java:179)
      1 frame
    3. org.eclipse.gemini
      LocalBundleContextAdvice.invoke
      1. org.eclipse.gemini.blueprint.service.importer.support.LocalBundleContextAdvice.invoke(LocalBundleContextAdvice.java:57)
      1 frame