Create
cancel
Showing results for 
Search instead for 
Did you mean: 
Sign up Log in

It's not the same without you

Join the community to find out what other Atlassian users are discussing, debating and creating.

Atlassian Community Hero Image Collage

Atlassian BitBucket Service fails to start after disk replacement and client restore from Windows Se

I had a disk problem on the PC I had installed the BitBucket Server Software and I had to replace the disk and restore the operating system from my latest backup from my Windows Server (2016 Standard essentials service).

The service fails to start saying "Windows could not start the Atlassian BitBucket AtlassianBitBucket on Local Computer. For more information, review the System Event Log. If this is a non-Microoft service, contact the service vendor, and refer to service-specific error code 1."

In Event viewer I can see there is an error: "The Atlassian BitBucket service terminated with the following service-specific error:
Incorrect function."

1 answer

1 accepted

0 votes
Answer accepted

I had these logs in common-daemon.yyyy-mm-dd.log:

[2020-05-30 01:33:39] [info] [10776] Starting service...
[2020-05-30 01:33:39] [error] [10776] Failed creating java c:\program files\java\jre1.8.0_202\bin\server\jvm.dll
[2020-05-30 01:33:39] [error] [10776] The system cannot find the path specified.
[2020-05-30 01:33:39] [error] [10776] ServiceStart returned 1

 

I finally (because there was no jre1.8.0_202 path but only jre1.8.0_251)

1. changed in the set-jre-home.bat file, which is in  Bitbucket\x.y.z\bin path the set JRE_HOME="c:\program files\java\jre1.8.0_251" from set JRE_HOME="c:\program files\java\jre1.8.0_202".

Run from command prompt  at bin directory these commands:

 

service.bat uninstall AtlassianBitbucket

service.bat uninstall AtlassianBitbucketElasticsearch

 

and then installed them again

service.bat install AtlassianBitbucket 

service.bat install AtlassianBitbucketElasticsearch 

You can also add the user as last parameter orelse they are installed as local system account

Suggest an answer

Log in or Sign up to answer
DEPLOYMENT TYPE
SERVER
VERSION
7.1.1
TAGS
Community showcase
Published in Bitbucket

New improvements to user management in Bitbucket Cloud 👥

Hey Community! We’re willing to wager that quite a few of you not only use Bitbucket, but administer it too. Our team is excited to share that we’ll be releasing improvements throughout this month of...

3,717 views 10 16
Read article

Community Events

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

Find an event

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

Unfortunately there are no Community Events near you at the moment.

Host an event

You're one step closer to meeting fellow Atlassian users at your local event. Learn more about Community Events

Events near you