JIRA applications is unable to connect to crowd due to application failing to authenticate
When attempting any of the following actions, the JIRA application throws the below exception in the logs.
- Log in to the JIRA application.
- Synchronise the User Directory with Crowd.
The following appears in the
2012-10-29 06:44:58,504 QuartzWorker-1 WARN [directory.ldap.cache.EventTokenChangedCacheRefresher] Could not update event token. com.atlassian.crowd.exception.OperationFailedException: com.atlassian.crowd.exception.InvalidAuthenticationException: Application failed to authenticate at com.atlassian.crowd.directory.RemoteCrowdDirectory.getCurrentEventToken(RemoteCrowdDirectory.java:657) at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseAll(EventTokenChangedCacheRefresher.java:45) at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:619) 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.DirectoryPollerJob.execute(DirectoryPollerJob.java:34) at org.quartz.core.JobRunShell.run(JobRunShell.java:195) at com.atlassian.multitenant.quartz.MultiTenantThreadPool$MultiTenantRunnable.run(MultiTenantThreadPool.java:72) at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520) Caused by: com.atlassian.crowd.exception.InvalidAuthenticationException: Application failed to authenticate at com.atlassian.crowd.integration.rest.service.RestExecutor.throwError(RestExecutor.java:462) at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:312) at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getCurrentEventToken(RestCrowdClient.java:944) at com.atlassian.crowd.directory.RemoteCrowdDirectory.getCurrentEventToken(RemoteCrowdDirectory.java:651) ... 8 more
The Application restrictions on the Crowd server (such as the IP address/block or password) are not being met by the JIRA server applications. This could be caused by a server migration if the IP on the new box is different or the application password has been changed within Crowd and is incorrect within JIRA applications.
- Verify that the IP of the JIRA server application are within the IP range as specified in the Applications Remote Addresses, as in Specifying an Application's Address or Hostname.
- Check that the correct password is set within the Crowd User Directory, as in Connecting to Crowd or Another JIRA server application for User Management.
- If JIRA is setup to use SSO with Crowd, then you'll want to ensure that the crowd.properties file contains the correct access information: Integrating Crowd with Atlassian Jira
- If using SSO it's also possible special characters can break the application authentication to Crowd as described in - CWD-4356Getting issue details... STATUS