Forums

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

remote: error: insufficient permission for adding an object to repository database

Fabrizio Cornelli
I'm New Here
I'm New Here
Those new to the Atlassian Community have posted less than three times. Give them a warm welcome!
June 7, 2019

Hello,
I have an on premise installation based on docker of Bitbucket, I can create new repositories and clone them, both with ssh and https.
When I try to push some commits I receive this error:
remote: error: insufficient permission for adding an object to repository database /var/atlassian/application-data/bitbucket/shared/data/repositories/22/./objects/incoming-ou9mRn

My docker installation adds a volume on the host filesystem.
I checked the permissions of the files, externally and internally the containter and everything seems ok.

I checked that: "sh git@bitbucket.se.local -p 7999 whoami" gives the correct user

I checked that: my user has admin permission on the repository.

I tryied to: chmod -R 777 /var/atlassian/application-data/bitbucket/shared/data/repositories/22/

I enabled logs and profiling and I don't see any error.

I updated bitbucket to the very last image.

I don't know what else I could try. Anyone could give me a clue?

Thank you in advance. :)

1 answer

0 votes
Stephen Sifers
Atlassian Team
Atlassian Team members are employees working across the company in a wide variety of roles.
June 10, 2019

Hello Fabrizio,

Thank you for providing the steps you’ve taken along with what testing you’ve done. The issue looks to be an underlying permissions issue (as you suspected) within git itself for your folder structure/path. There is a very good write-up which exists within StackOverflow which covers this type of git permissions issue. You may find this post at Git Push Error: insufficient permission for adding an object to repository database Ask Question.

If you’re still having issues with your git repo after reviewing and repairing permissions per the linked post, please let us know so we may further assist.
Regards,
Stephen Sifers

Suggest an answer

Log in or Sign up to answer
TAGS
AUG Leaders

Atlassian Community Events