Uploaded image for project: 'Bitbucket Data Center'
  1. Bitbucket Data Center
  2. BSERV-14301

Having a small synchronisation interval for user directories may trigger errors on startup

    XMLWordPrintable

Details

    Description

      Issue Summary

      Having a small synchronisation interval for user directories may trigger errors on startup, causing directory synchronisation to fail.

      Steps to Reproduce

      This problem may only happen intermittently:

      1. Setup an external user directory
      2. Disable incremental synchronisation
      3. Set the synchronisation interval to 1 minute

      Expected Results

      User directory is synchronised

      Actual Results

      The below exception is thrown in the atlassian-bitbucket.log file:

      2023-08-09 09:55:35,754 ERROR [Caesium-1-3]  c.a.c.d.DbCachingRemoteDirectory Exception occured when performing full synchronizationio.atlassian.util.concurrent.LazyReference$InitializationException: 
      java.lang.IllegalStateException: Unable to create a tracker when osgi is not running    
        at io.atlassian.util.concurrent.LazyReference.getInterruptibly(LazyReference.java:156)    
        at io.atlassian.util.concurrent.LazyReference.get(LazyReference.java:116)    
        at io.atlassian.util.concurrent.ResettableLazyReference.get(ResettableLazyReference.java:95)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.getCrowdDarkFeatureManager(DefaultCrowdDarkFeatureManager.java:58)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.isEnabled(DefaultCrowdDarkFeatureManager.java:52)    
        at com.atlassian.stash.internal.crowd.DefaultCrowdDarkFeatureManager.isDeleteUserMembershipsBatchingEnabled(DefaultCrowdDarkFeatureManager.java:38)    
        at com.atlassian.crowd.directory.DbCachingRemoteChangeOperations.removeUserMembershipsForGroup(DbCachingRemoteChangeOperations.java:741) 
      ...

      Workaround

      Set a longer synchronisation interval e.g. 60 minutes (default)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              ysun Yingran Sun
              Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

                Created:
                Updated: