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

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
How to earn badges on the Atlassian Community

How to earn badges on the Atlassian Community

Badges are a great way to show off community activity, whether you’re a newbie or a Champion.

Learn more
Community showcase
Posted Jun 12, 2018 in Bitbucket

Do you use any Atlassian products for your personal projects?

After spinning my wheels trying to get organized enough to write a book for National Novel Writing Month (NaNoWriMo) I took my affinity for Atlassian products from my work life and decided to tr...

24,053 views 26 12
Join discussion

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