Bitbucket as Windows Service won't Start without atlbitbucket User in Admin group Edited

I have Bitbucket 5.01 on a Windows 2012 R2 server.  Used Atlassian installer so service has a local atlbitbucket account as the service account.  I had to add it to the Administrators group or the service will not start.  Performance is very slow and saw on web that removing account from administrators group will speed up performance but then service does not start.

Anyone have the recipe for getting the service to work correctly on Windows Server 2012 and not have the account in the admin group?


UPDATE: I followed the instructions here

and set the folder access for atlbitbucket user but the service would still not start once I removed altbitbucket from the Windows admin group.  I am clear about where the home directory is, in fact privilege for it was already set correctly.  The "install" directory seemed straightforward but I wonder if I got it right.  There are version specific directories under a root Atlassian directory.  Are these the "install" directories?

 UPDATE #2: The error in the event log when starting the service with atlbitbucket user not in the Administrator group

Faulting application name: bserv64.exe, version:, time stamp: 0x51543b9d

Faulting module name: jvm.dll, version:, time stamp: 0x576af213

Exception code: 0xc0000005

Fault offset: 0x0000000000216aa8

Faulting process id: 0x1354

Faulting application start time: 0x01d32f0e943af960

Faulting application path: C:\Atlassian\Bitbucket\5.0.1\bin\bserv64.exe

Faulting module path: c:\atlassian\bitbucket\4.13.0\jre\bin\server\jvm.dll


1 answer

I would advise having it run as an unprivileged user and binding to 7990/7999 as the out of the box configuration. This is best from a security perspective. Use Apache, IIS, etc to reverse proxy to it and have that listen on 80/443. This will eliminate the need to run as part of the administrators group.


The problem is with a file access at service startup.  Not sure if your answer addresses this failure.  I agree about running from account not in admin group. Trying to use Atlassian account if possible to make updates easier.

You need to make sure all files in the installation and home directories are owned by the user that the service runs as.  You shouldn't need to change any file permissions.  

Suggest an answer

Log in or Join to answer
Community showcase
Piotr Plewa
Published Dec 27, 2017 in Bitbucket

Recipe: Deploying AWS Lambda functions with Bitbucket Pipelines

Bitbucket Pipelines helps me manage and automate a number of serverless deployments to AWS Lambda and this is how I do it. I'm building Node.js Lambda functions using node-lambda&nbsp...

635 views 0 4
Read article

Atlassian User Groups

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

Find a group

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

Find my local user group

Unfortunately there are no AUG chapters near you at the moment.

Start an AUG

You're one step closer to meeting fellow Atlassian users at your local meet up. Learn more about AUGs

Groups near you
Atlassian Team Tour

Join us on the Team Tour

We're bringing product updates and pro tips on teamwork to ten cities around the world.

Save your spot