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."
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.