The Atlassian Community Forums are currently in read-only mode. We will be relaunching on a new platform on September 22 (read more here). We apologize for the extended downtime. For concerns or questions, please email communitymanagers@atlassian.com. See you on the other side, on the new Atlassian Community Forums! :)

×

Forums

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

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

thomasntaiskn
May 29, 2020

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

Comments for this post are closed

Community moderators have prevented the ability to post new answers.

1 vote
Answer accepted
thomasntaiskn
May 30, 2020

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

DEPLOYMENT TYPE
SERVER
VERSION
7.1.1
TAGS
AUG Leaders

Atlassian Community Events