Forums

Articles
Create
cancel
Showing results for 
Search instead for 
Did you mean: 

Permission denied when creating new repository

Deleted user July 26, 2018

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?

1 answer

0 votes
Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2018

HI @[deleted]

Welcome to the community!

Please provide the full rights to Shared directory in <BITBUCKET_HOME>/shared.

Deleted user July 26, 2018

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.

Yogesh Mude
Rising Star
Rising Star
Rising Stars are recognized for providing high-quality answers to other users. Rising Stars receive a certificate of achievement and are on the path to becoming Community Leaders.
July 26, 2018

I faced same kind of issue ..permission denied.

use below command..

$ chmod -R 777 <BITBUCKET_HOME>/shared

Deleted user July 26, 2018

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.

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events