"Error" when trying to log into Confluence
Asked by Judd Williams:

Hello,

I am not able to log into Confluence with any of our user accounts. Login attempt gives the following error.

\>\>\>

The following error(s) occurred:

* Sorry, an error occurred trying to log you in. Please try again.

\<\<\<

I **am** able to log into Confluence as **sysadmin.**

I am able to log into Jira with my usual credentials. The same account is tied to Confluence.


Answers:
author: Brant Schroeder
body: [@Judd Williams](/t5/user/viewprofilepage/user-id/4614148) If you are able to login to Confluence as the admin account you should check the user directory. I am assuming that you are attached to an external user directory and my guess is that this connection is not working. <https://confluence.atlassian.com/conf59/configuring-user-directories-792499460.html>

You should also look at the Confluence logs and see if there is any information there that can help identify the issue.

comments: author: Judd Williams
body: Thanks Brant.

Apologies as I am a complete rookie with Confluence and Jira admin.

I believe we are attached to our Jira directory. I can log into Jira ok. synching them seems to work ok. Here is our setup...

![image.png](https://community.atlassian.com/t5/image/serverpage/image-id/167253i0A083714654CACC1/image-size/large?v=v2&px=999 "image.png")

When I "Test Remote Directory Connection" to the Jira crowd I get the following error.

Test basic connection : Failed  
javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed


author: Judd Williams
body: I just had a thought. Could this be caused by an expired ssl security certificate on our Jira web domain?

Saw this in the server log...

2021-10-29 16:04:03,898 INFO \[http-nio-8091-exec-2\] \[embedded.admin.list.DirectoriesController\] sync User directory synchronisation requested: \[ JIRA Server \], type: \[ CROWD \]  
2021-10-29 16:04:03,914 INFO \[Caesium-1-4\] \[atlassian.crowd.directory.DbCachingRemoteDirectory\] synchroniseCache INCREMENTAL synchronisation for directory \[ 15564801 \] starting  
2021-10-29 16:04:03,914 INFO \[Caesium-1-4\] \[atlassian.crowd.directory.DbCachingRemoteDirectory\] synchroniseCache Attempting INCREMENTAL synchronisation for directory \[ 15564801 \]  
2021-10-29 16:04:03,914 INFO \[Caesium-1-4\] \[atlassian.crowd.directory.DbCachingRemoteDirectory\] synchroniseCache Incremental synchronisation for directory \[ 15564801 \] was not completed, falling back to a full synchronisation  
2021-10-29 16:04:03,914 INFO \[Caesium-1-4\] \[atlassian.crowd.directory.DbCachingRemoteDirectory\] synchroniseCache INCREMENTAL synchronisation for directory \[ 15564801 \] was not successful, attempting FULL  
2021-10-29 16:04:03,929 WARN \[Caesium-1-4\] \[directory.ldap.cache.EventTokenChangedCacheRefresher\] synchroniseAll Could not update event token.  
com.atlassian.crowd.exception.OperationFailedException: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed

...................

Caused by: javax.net.ssl.SSLHandshakeException: sun.security.validator.ValidatorException: PKIX path validation failed: java.security.cert.CertPathValidatorException: validity check failed  
at sun.security.ssl.Alerts.getSSLException(Alerts.java:192)


author: Brant Schroeder
body: That could be causing the connection issue.


Tags: confluence-server