Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Bitbucket is failing to start - Preparing Plugin Framework

Scott Lasater November 10, 2023

We recently had a server crash, and since then, Bitbucket has failed to start and gets stuck at Preparing Plugin Framework.

3 answers

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2023

Do you happen to know what version of Bitbucket this is happening on?

I've had luck running through these steps in the past:


On each node of your datacenter cluster (or your only node if on "Server"):

  • shut down bitbucket

  • take backup of $BITBUCKET_HOME/plugins/.osgi-cache/

  • completely delete $BITBUCKET_HOME/plugins/.osgi-cache/

  • restart bitbucket


Also, I find Bitbucket works better for me when I use the latest Java JDK 11 compared to Java JDK 8.   I find both Oracle JDK and OpenJDK work fine.

Scott Lasater November 14, 2023

It's version 7.21.2, and I'm using OpenJDK 11.

 

I used msconfig to turn off the BitBucket services, but after backing up and deleting the /.osgi-cache/ folder, I could not reenable the services in msconfig, and the console crashed.

 

Scott

Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 18, 2023

Ugh, this sounds like a tough situation.

At this point I would take a backup of everything (folders and database) and then try using a brand new (fresh) Bitbucket 7.21.2.

Leave the BITBUCKET_HOME as is.

If that *STILL* doesn't work and if you are still entitled to upgrades, I would try upgrading to Bitbucket 7.21.3 to see if the upgrade process repairs the situation.

NOTE:  upgrading to 7.21.3 will cause changes to the database that might make downgrading back to 7.21.2 impossible, hence the importance of taking backups of everything beforehand.

2nd NOTE:   I believe Bitbucket Data Center does not support Windows, and so running Bitbucket on Windows will soon be unsupported by Atlassian.  Only Bitbucket Server is supported on Windows, but unfortunately Bitbucket Server will be EOL on Feb 15, 2024.

0 votes
Julius Davies [bit-booster.com]
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
November 11, 2023

Do you happen to know what version of Bitbucket this is happening on?

I've had luck running through these steps in the past:


On each node of your datacenter cluster (or your only node if on "Server"):

  • shut down bitbucket

  • take backup of $BITBUCKET_HOME/plugins/.osgi-cache/

  • completely delete $BITBUCKET_HOME/plugins/.osgi-cache/

  • restart bitbucket


Also, I find Bitbucket works better for me when I use the latest Java JDK 11 compared to Java JDK 8.   I find both Oracle JDK and OpenJDK work fine.

0 votes
Bastian Stehmann
Community Champion
November 10, 2023

Hi @Scott Lasater ,

Do you see any errors in the log files?

Scott Lasater November 14, 2023

I'm not seeing any glaring errors in the logs; since the services failed to enable, I believe the application became corrupt. I'm trying to reinstall it to repair the corruption.

 

I did backup the application folder and repository folder.

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
TAGS
AUG Leaders

Atlassian Community Events