Missed Team ’24? Catch up on announcements here.

×
Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

Problem with Atlassian JIRA User Directory.

r.danyk February 1, 2018

Hi,

 

We have a problem with a User Directory by Atlassian JIRA. Namely with Incremental synchronization. It fails every second time.

Earlier, all worked as aspected.

When synchronization fails I see in  atlassian-bitbucket.log something like this:

 ----

2018-02-01 17:34:09,512 ERROR [Caesium-1-4]  c.a.c.d.DbCachingRemoteDirectory Incremental synchronisation for directory [ 229377 ] was unexpectedly interrupted, falling back to a full synchronisationcom.atlassian.crowd.exception.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: �U[o�0~�Wмt�fw����ڦm��C��!> cg>N�^���Kz_x�>��|疴Z�Og�V�W�#�^�ퟎ�Na��ؙu����?�v*qiRz�1v-�v?��u��Q �0�ku(�2um�ܸ��PI�^� ]ȇ���n{��sP���{���¬���y�9���= 5W>�t �P����{�w�Bk��7�*U��zx Df��) ��y��Djj$���5�,��l���N��>{�{ n�����7#.��G�1��,�XAB|�Ƅw)��&j�)�Q��-M���ɋ J|H�B.�.ks�B�� t �ד��$�)q�l�[.���[HP&)�%X��w��y0����4&�5n��[L�u�KT��7�|Ǝo��\aі�)50�(C^GQ�u�;d�[�ب^��)��tQ�7]�c �D#��� �É�cetQծ�˸ �db�̀R'e�ؤ��, MG���jt��"� VR�,�ۅ�2�\�Xm��h��y�:���8/j�(Uy>����R�,=����xR���� ���9�����p �~Y�t1ǃ�:B KF��(7U9`OCg6*�N�}%"a����T�9��� "����M}/��y�Ϲgqp]�҄����N~�-=3��囱 �al�v�.�F^�Ħ>�4r|Ǵ�֔R� ��+�͘abbn �=�z R$r3��%#�ף�q�7�#�����Z����Bs�%�Vkoۺyar���G!�mz� ��[����W�ԧ4�;I�("1j ���iжx�t;U�z����ݐg�7�^���IӠ��o ���qo[t"�}�m'K��Iۭrh�݄��& ,'a��6$1���#�����A��Ə� �Ѝ��6Ǣ�����rlJ�� e)�=��i ��LB��8f�޴ mk^��K��w�Sc���|4Q�Ѩ�i� kjT �������"����Ґ�\ ��ԋCD>�S�:� �� ����� ���Bf{6EA[l�H�ȧ�Pb5�'��:���Y�M���}�+5�J����*��A{Ŋ���5DF���73ְv�~)����WVK v��%dS;���Eu�����YQBm '��hh���m;��s��4L���/�yF�������&��r�I����9��M"��Z $��p7A7� �����r;����f���O/��v$T�/C��P�%Y��O��$�Ei� �r\J- �6 �0 O=�P? ��O��$���OS�Mmǡn���У �Y8���T|�F���sy[nDD��UÏ�ۜۘy@~��Fv��٤/P��^䙉 ���d�m}"nX>Yn^`+��f��G�o F[ =K֔▊��'���m�T T���22K*ǯ�����Qb� ��̔���d9��*֔mb���̬�.<cCdWv�<_�{U���M��X������qtf�㝄�� �g���Mq�3�{Rߪ��qRJ|l�$53�G�B^����r�+    at com.atlassian.crowd.directory.RemoteCrowdDirectory.getNewEvents(RemoteCrowdDirectory.java:858)    at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseChanges(EventTokenChangedCacheRefresher.java:108)    at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:1161)    at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:74)    at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50)    at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJobRunner.runJob(DirectoryPollerJobRunner.java:96)    at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)    at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)    at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:396)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:349)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)    at java.lang.Thread.run(Thread.java:745)    ... 12 frames trimmed��PI�^� ]ȇ���n{��sP���{���¬���y�9���= 5W>�t �P����{�w�Bk��7�*U��zx Df��) ��y��Djj$���5�,��l���N��>{�{ n�����7#.��G�1��,�XAB|�Ƅw)��&j�)�Q��-M���ɋ J|H�B.�.ks�B�� t �ד��$�)q�l�[.���[HP&)�%X��w��y0����4&�5n��[L�u�KT��7�|Ǝo��\aі�)50�(C^GQ�u�;d�[�ب^��)��tQ�7]�c �D#��� �É�cetQծ�˸ �db�̀R'e�ؤ��, MG���jt��"� VR�,�ۅ�2�\�Xm��h��y�:���8/j�(Uy>����R�,=����xR���� ���9�����p �~Y�t1ǃ�:B KF��(7U9`OCg6*�N�}%"a����T�9��� "����M}/��y�Ϲgqp]�҄����N~�-=3��囱 �al�v�.�F^�Ħ>�4r|Ǵ�֔R� ��+�͘abbn �=�z R$r3��%#�ף�q�7�#�����Z����Bs�%�Vkoۺyar���G!�mz� ��[����W�ԧ4�;I�("1j ���iжx�t;U�z����ݐg�7�^���IӠ��o ���qo[t"�}�m'K��Iۭrh�݄��& ,'a��6$1���#�����A��Ə� �Ѝ��6Ǣ�����rlJ�� e)�=��i ��LB��8f�޴ mk^��K��w�Sc���|4Q�Ѩ�i� kjT �������"����Ґ�\ ��ԋCD>�S�:� �� ����� ���Bf{6EA[l�H�ȧ�Pb5�'��:���Y�M���}�+5�J����*��A{Ŋ���5DF���73ְv�~)����WVK v��%dS;���Eu�����YQBm '��hh���m;��s��4L���/�yF�������&��r�I����9��M"��Z $��p7A7� �����r;����f���O/��v$T�/C��P�%Y��O��$�Ei� �r\J- �6 �0 O=�P? ��O��$���OS�Mmǡn���У �Y8���T|�F���sy[nDD��UÏ�ۜۘy@~��Fv��٤/P��^䙉 ���d�m}"nX>Yn^`+��f��G�o F[ =K֔▊��'���m�T T���22K*ǯ�����Qb� ��̔���d9��*֔mb���̬�.<cCdWv�<_�{U���M��X������qtf�㝄�� �g���Mq�3�{Rߪ��qRJ|l�$53�G�B^����r�+    at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:614)    at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:417)    at com.atlassian.crowd.integration.rest.service.RestCrowdClient.getNewEvents(RestCrowdClient.java:1292)    at com.atlassian.crowd.directory.RemoteCrowdDirectory.getNewEvents(RemoteCrowdDirectory.java:855)    ... 18 common frames omitted2018-02-01 17:34:09,666 ERROR [Caesium-1-4]  c.a.c.d.DbCachingDirectoryPoller Error occurred while refreshing the cache for directory [ 229377 ].com.atlassian.crowd.exception.OperationFailedException: com.atlassian.crowd.exception.ApplicationPermissionException: �U[o�0~�Wмt�fw����ڦm��C��!> cg>N�^���Kz_x�>��|疴Z�Og�V�W�#�^�ퟎ�Na��ؙu����?�v*qiRz�1v-�v?��u��Q �0�ku(�2um�ܸ��PI�^� ]ȇ���n{��sP���{���¬���y�9���= 5W>�t �P����{�w�Bk��7�*U��zx Df��) ��y��Djj$���5�,��l���N��>{�{ n�����7#.��G�1��,�XAB|�Ƅw)��&j�)�Q��-M���ɋ J|H�B.�.ks�B�� t �ד��$�)q�l�[.���[HP&)�%X��w��y0����4&�5n��[L�u�KT��7�|Ǝo��\aі�)50�(C^GQ�u�;d�[�ب^��)��tQ�7]�c �D#��� �É�cetQծ�˸ �db�̀R'e�ؤ��, MG���jt��"� VR�,�ۅ�2�\�Xm��h��y�:���8/j�(Uy>����R�,=����xR���� ���9�����p �~Y�t1ǃ�:B KF��(7U9`OCg6*�N�}%"a����T�9��� "����M}/��y�Ϲgqp]�҄����N~�-=3��囱 �al�v�.�F^�Ħ>�4r|Ǵ�֔R� ��+�͘abbn �=�z R$r3��%#�ף�q�7�#�����Z����Bs�%�Vkoۺyar���G!�mz� ��[����W�ԧ4�;I�("1j ���iжx�t;U�z����ݐg�7�^���IӠ��o ���qo[t"�}�m'K��Iۭrh�݄��& ,'a��6$1���#�����A��Ə� �Ѝ��6Ǣ�����rlJ�� e)�=��i ��LB��8f�޴ mk^��K��w�Sc���|4Q�Ѩ�i� kjT �������"����Ґ�\ ��ԋCD>�S�:� �� ����� ���Bf{6EA[l�H�ȧ�Pb5�'��:���Y�M���}�+5�J����*��A{Ŋ���5DF���73ְv�~)����WVK v��%dS;���Eu�����YQBm '��hh���m;��s��4L���/�yF�������&��r�I����9��M"��Z $��p7A7� �����r;����f���O/��v$T�/C��P�%Y��O��$�Ei� �r\J- �6 �0 O=�P? ��O��$���OS�Mmǡn���У �Y8���T|�F���sy[nDD��UÏ�ۜۘy@~��Fv��٤/P��^䙉 ���d�m}"nX>Yn^`+��f��G�o F[ =K֔▊��'���m�T T���22K*ǯ�����Qb� ��̔���d9��*֔mb���̬�.<cCdWv�<_�{U���M��X������qtf�㝄�� �g���Mq�3�{Rߪ��qRJ|l�$53�G�B^����r�+    at com.atlassian.crowd.directory.RemoteCrowdDirectory.searchUsers(RemoteCrowdDirectory.java:424)    at com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher.findAllRemoteUsers(RemoteDirectoryCacheRefresher.java:55)    at com.atlassian.crowd.directory.ldap.cache.RemoteDirectoryCacheRefresher.synchroniseAllUsers(RemoteDirectoryCacheRefresher.java:83)    at com.atlassian.crowd.directory.ldap.cache.AbstractCacheRefresher.synchroniseAll(AbstractCacheRefresher.java:56)    at com.atlassian.crowd.directory.ldap.cache.EventTokenChangedCacheRefresher.synchroniseAll(EventTokenChangedCacheRefresher.java:69)    at com.atlassian.crowd.directory.DbCachingRemoteDirectory.synchroniseCache(DbCachingRemoteDirectory.java:1186)    at com.atlassian.crowd.manager.directory.DirectorySynchroniserImpl.synchronise(DirectorySynchroniserImpl.java:74)    at com.atlassian.crowd.directory.DbCachingDirectoryPoller.pollChanges(DbCachingDirectoryPoller.java:50)    at com.atlassian.crowd.manager.directory.monitor.poller.DirectoryPollerJobRunner.runJob(DirectoryPollerJobRunner.java:96)    at com.atlassian.scheduler.core.JobLauncher.runJob(JobLauncher.java:153)    at com.atlassian.scheduler.core.JobLauncher.launchAndBuildResponse(JobLauncher.java:118)    at com.atlassian.scheduler.core.JobLauncher.launch(JobLauncher.java:97)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.launchJob(CaesiumSchedulerService.java:401)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeClusteredJob(CaesiumSchedulerService.java:396)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService.executeQueuedJob(CaesiumSchedulerService.java:349)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:255)    at com.atlassian.scheduler.caesium.impl.CaesiumSchedulerService$1.consume(CaesiumSchedulerService.java:252)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeJob(SchedulerQueueWorker.java:65)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.executeNextJob(SchedulerQueueWorker.java:59)    at com.atlassian.scheduler.caesium.impl.SchedulerQueueWorker.run(SchedulerQueueWorker.java:34)    at java.lang.Thread.run(Thread.java:745)    ... 12 frames trimmed��PI�^� ]ȇ���n{��sP���{���¬���y�9���= 5W>�t �P����{�w�Bk��7�*U��zx Df��) ��y��Djj$���5�,��l���N��>{�{ n�����7#.��G�1��,�XAB|�Ƅw)��&j�)�Q��-M���ɋ J|H�B.�.ks�B�� t �ד��$�)q�l�[.���[HP&)�%X��w��y0����4&�5n��[L�u�KT��7�|Ǝo��\aі�)50�(C^GQ�u�;d�[�ب^��)��tQ�7]�c �D#��� �É�cetQծ�˸ �db�̀R'e�ؤ��, MG���jt��"� VR�,�ۅ�2�\�Xm��h��y�:���8/j�(Uy>����R�,=����xR���� ���9�����p �~Y�t1ǃ�:B KF��(7U9`OCg6*�N�}%"a����T�9��� "����M}/��y�Ϲgqp]�҄����N~�-=3��囱 �al�v�.�F^�Ħ>�4r|Ǵ�֔R� ��+�͘abbn �=�z R$r3��%#�ף�q�7�#�����Z����Bs�%�Vkoۺyar���G!�mz� ��[����W�ԧ4�;I�("1j ���iжx�t;U�z����ݐg�7�^���IӠ��o ���qo[t"�}�m'K��Iۭrh�݄��& ,'a��6$1���#�����A��Ə� �Ѝ��6Ǣ�����rlJ�� e)�=��i ��LB��8f�޴ mk^��K��w�Sc���|4Q�Ѩ�i� kjT �������"����Ґ�\ ��ԋCD>�S�:� �� ����� ���Bf{6EA[l�H�ȧ�Pb5�'��:���Y�M���}�+5�J����*��A{Ŋ���5DF���73ְv�~)����WVK v��%dS;���Eu�����YQBm '��hh���m;��s��4L���/�yF�������&��r�I����9��M"��Z $��p7A7� �����r;����f���O/��v$T�/C��P�%Y��O��$�Ei� �r\J- �6 �0 O=�P? ��O��$���OS�Mmǡn���У �Y8���T|�F���sy[nDD��UÏ�ۜۘy@~��Fv��٤/P��^䙉 ���d�m}"nX>Yn^`+��f��G�o F[ =K֔▊��'���m�T T���22K*ǯ�����Qb� ��̔���d9��*֔mb���̬�.<cCdWv�<_�{U���M��X������qtf�㝄�� �g���Mq�3�{Rߪ��qRJ|l�$53�G�B^����r�+    at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.throwError(RestExecutor.java:614)    at com.atlassian.crowd.integration.rest.service.RestExecutor$MethodExecutor.andReceive(RestExecutor.java:417)    at com.atlassian.crowd.integration.rest.service.RestCrowdClient.searchUsers(RestCrowdClient.java:624)    at com.atlassian.crowd.directory.RemoteCrowdDirectory.searchUsers(RemoteCrowdDirectory.java:414)    ... 21 common frames omitted

----


Can someone help me?

 

1 answer

1 accepted

0 votes
Answer accepted
Anton Shaleev
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
February 2, 2018

Hi Roman

Sorry to hear, you're having an issue with the user directory synchronization in Bitbucket. 

In the log entry, you've provided I can see com.atlassian.crowd.exception.ApplicationPermissionException which means that JIRA User Server rejected the authentication request from Bitbucket. The unreadable message after that is the error 403 Unauthorized from JIRA (probably you have non-latin JIRA localization).

Usually, such issue is happening when the infrastructure changes have been performed.

  1. Please go to JIRA > User Management, choose JIRA User Server. 
  2. Check if Bitbucket entry has correct hostname and IP-address
  3. If you have new Web or Reverse proxy installed please check the KB Unable to connect to JIRA for authentication - Forbidden 403 for more detailed instructions

Let me know if you have any questions or faced any difficulties while following the instructions.

 

Anton

r.danyk February 5, 2018

Hi Anton,

Thank for your reply.

 

I checked settings on both sides. There are no changes for the last time.

Maybe some packages were updated.

Then I upgraded JIRA Software Server and Bitbucket Server to the last versions. But the problem was still here.

Both instances (JIRA and Bitbucket) are behind the nginx reverse proxies.

So I changed JIRA User Directory on Bitbucket side to connect directly to JIRA (not through JIRA reverse proxy).

And now synchronization works correctly.  But earlier it worked normally through the proxy.

 

P.S. And I see Network Error in Application links on JIRA side for Bitbucket application. In error detail I see:

We couldn't connect to Bitbucket, possibly because that instance is behind a misconfigured proxy.

 

Is it causes synchronization errors through nginx proxy?

r.danyk February 6, 2018

I found one mistake in my bitbuket.properties file.

The server.redirect-port parameter should be the same as server.proxy-port. In my case, it is 443. In old server.xml this parameter was different (8443).

 

After this correction Application link works as aspected.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events