We have a production environment with Jira and Confluence where both applications allow users to login using our LDAP.
We created another environment (Dev) and followed Atlassian's instructions on refreshing (cloning) the environments. Basically copying the home and install directories, data refresh and a few config changes to connect to the right database.
Jira allows logins with the LDAP however Confluence only lets me login with the local admin account. The LDAP logins give an error message "Sorry, an error occurred trying to log you in. Please try again."
Does anyone have any suggestions?
there was multiple rows but support had us delete them. Right now there is only one entry
Looking at more at the logs this seems to be the error that we are resiving
2019-04-24 10:23:11,553 WARN [https-jsse-nio-8443-exec-20] [confluence.impl.hibernate.ConfluenceHibernateTransactionManager] doRollback Performing rollback. Transactions:
->[com.atlassian.confluence.user.crowd.ConfluenceCrowdDirectoryService.testConnection]: PROPAGATION_REQUIRED,ISOLATION_DEFAULT,readOnly (Session #2094568206)
-- referer: https://confdev.ourdomain.com:8443/plugins/servlet/embedded-crowd/configure/jira/?xsrfTokenName=atl_token&xsrfTokenValue=70f111193adc32aaa50808d36ae6d323b1114a4a | url: /plugins/servlet/embedded-crowd/configure/jira/ | traceId: 8a7be0cfd384e5c4 | userName: adminjirauser
2019-04-24 10:23:11,555 ERROR [https-jsse-nio-8443-exec-20] [crowd.embedded.admin.ConfigurationController] handleSubmit Configuration test failed for user directory: [ jiradev.ourdomain.com JIRA], type: [ CROWD ]
-- referer: https://confdev.ourdomain.com:8443/plugins/servlet/embedded-crowd/configure/jira/?xsrfTokenName=atl_token&xsrfTokenValue=70f111193adc32aaa50808d36ae6d323b1114a4a | url: /plugins/servlet/embedded-crowd/configure/jira/ | traceId: 8a7be0cfd384e5c4 | userName: adminjirauser
com.atlassian.crowd.exception.runtime.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Encountered a "403 - Forbidden" error while loading this page. client.forbidden.exception Go to Jira home
From the error message it looks like Confluence just cant access jira. Check out this KB:
All the best,
Monique
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Looking at the logs we see lots of this error:
2019-04-18 13:13:27,648 WARN [Caesium-1-1] [impl.schedule.caesium.JobRunnerWrapper] runJob Scheduled job ClusterSafetyJob#ClusterSafetyJob completed unsuccessfully with response JobRunnerResponse[runOutcome=FAILED,message='RuntimeException: More than one cluster safety number in database.']
From what I see on that error it is related to confluence preventing more than one instance pointing to the same database. However, we changed the database connection in the confluence.cfg.xml
Also, under user directories we setup the directory called "Remote Jira Directory" of type "Atlassian Crowd", which works before the refresh but not after. After the refresh we get the following error:
Connection test failed. Response from the server:
com.atlassian.crowd.exception.ApplicationPermissionException: Forbidden (403) Encountered a "403 - Forbidden" error while loading this page. client.forbidden.exception Go to Jira home
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
https://jira.atlassian.com/browse/CONFSERVER-17434
can you check if you have multiple rows in the CLUSTERSAFETY table
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Orlund
do you have access to the confluence log files to check for a more detailed message
while you are trying to log in?
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Where do I find the logs (sorry new to this)?
with a bit more testing we found that we are getting an error when creating a user directory "Atlassian JIRA", we created the application line on the jira side, made sure it was white listed (and even turned off white listing), made sure user names and passwords are correct, there is no firewall or proxy between the servers but we get the message below. We are also running SSL.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Look for the atlassian-confluence.log file below <confluence_home_directory>/logs.
https://confluence.atlassian.com/doc/working-with-confluence-logs-108364721.html
might also be worth having a look to
Cheers
Kurt
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.