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:
I had these logs in common-daemon.yyyy-mm-dd.log:
[2020-05-30 01:33:39] [info]  Starting service...
[2020-05-30 01:33:39] [error]  Failed creating java c:\program files\java\jre1.8.0_202\bin\server\jvm.dll
[2020-05-30 01:33:39] [error]  The system cannot find the path specified.
[2020-05-30 01:33:39] [error]  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
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...
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