I have just installed BitBucket server on my machine as root, and have created there a user for myself with a name "username". When trying to create the first repo, I get the following error:
'/bin/git init --bare --quiet --shared=false --template=/var/atlassian/application-data/bitbucket/shared/config/git/templates /var/atlassian/application-data/bitbucket/shared/data/repositories/1' exited with code 128 saying: fatal: unable to access '/home/username/etc/gitconfig': Permission denied
To start with, this file does not even exist - my config is in ~/.gitconfig. But even copying file to the mentioned location and giving it 777 access I still get this error. The server runs under a dedicated user "atlbitbucket" by default, so perhaps this user can't access the "/home/username" at all?
What should I do to solve this problem?