Bitbucket LDAP configuration issue

After updating LDAP configuration, Bitbucket is no longer responding.  Docker container is up but UI is timing out.  How to reset LDAP configuration manually from server file system without UI access?

1 answer

This widget could not be displayed.

Hi Hyung,

Here are some steps you can use to try to get back into Bitbucket Server and revert your change.

Bitbucket Server 4.x

  • Stop Bitbucket Server
  • Open the setenv.sh in <BITBUCKET_INSTALLATION/bin>
  • Add -Dcrowd.polling.startdelay=2700000 to the sentenv.sh file in the JVM_SUPPORT_RECOMMENDED_ARGS section. This will delay the synchronization of LDAP for 45 minutes after the restart
  • Start Bitbucket Server

Bitbucket Server 5.x

Linux running as service

  • Stop Bitbucket Server
  • Open the _start-webapp.sh in <BITBUCKET_INSTALLATION/bin>
  • Add -Dcrowd.polling.startdelay=2700000 to the _start-webapp.sh file in the JVM_SUPPORT_RECOMMENDED_ARGS section. This will delay the synchronization of LDAP for 45 minutes after the restart.
  • Start Bitbucket Server

Windows running as service

  • Open the command window from Start >> Run >> type in 'cmd' >> Enter
  • cd to the bin directory of the Bitbucket Server Installation (<Bitbucket Server Installation dir>/bin).
  • Run from there:
bservmgr.exe //ES/AtlassianBitbucket

 

  • A window will pop up. Click on the Java tab to see the list of current start-up options. Under "Java Options:" form, input the value:
-Dcrowd.polling.startdelay=2700000

 

  • Restart Bitbucket Server.

Not running as a Service for Windows and Linux

  • Create environment variable for JVM_SUPPORT_RECOMMENDED_ARGS
  • Set environment variable value for -Dcrowd.polling.startdelay=2700000

I hope this helps. I look forward to your results.

Cheers,

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Aug 21, 2018 in Bitbucket

Branch Management with Bitbucket

As a project manager, I have discovered that different developers want to bring their previous branching method with them when they join the team. Some developers are used to performing individual wo...

1,328 views 8 11
Read article

Atlassian User Groups

Connect with like-minded Atlassian users at free events near you!

Find a group

Connect with like-minded Atlassian users at free events near you!

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you