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

https://confluence.atlassian.com/bitbucketserver/running-bitbucket-server-with-a-dedicated-user-776640047.html

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: 1.0.15.0, time stamp: 0x51543b9d

Faulting module name: jvm.dll, version: 25.71.0.1, 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

This widget could not be displayed.

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.

Dave,

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 Sign up to answer
Atlassian Summit 2018

Meet the community IRL

Atlassian Summit is an excellent opportunity for in-person support, training, and networking.

Learn more
Community showcase
Posted Aug 10, 2018 in Bitbucket

What is your #1 piece of advice to new users getting started using Bitbucket?

Hello Community! My name is Claire Maynard, and I’m a Product Marketing Manager on the Bitbucket team. I’m interested in hearing what advice or tips you have for new users getting started on ...

245 views 14 2
Join discussion

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