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

0 votes

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 Nov 06, 2018 in Bitbucket

Upgrade Best Practices

Hello! My name is Mark Askew and I am a Premier Support Engineer for products Bitbucket Server/Data Center, Fisheye & Crucible. Today, I want to bring the discussion that Jennifer, Matt, and ...

433 views 6 9
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