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?
HI @[deleted]
Welcome to the community!
Please provide the full rights to Shared directory in <BITBUCKET_HOME>/shared.
Thanks, Yogesh! Why do you think that would help, and what's the correct command line to do this? I've tried chmod 777 -R on that directory, but that did not help.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I faced same kind of issue ..permission denied.
use below command..
$ chmod -R 777 <BITBUCKET_HOME>/shared
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
I have tried the very same command, as I've mentioned in the comment above, and it did not help. Are you sure you had the very same error? It does not seem that in my case BB isn't able to access that directory.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.