Two projects/repositories with identical settings - but cannot push commits to one

Hi folks,

I have been trying to figure out the source of this fairly odd problem but so far have had no luck.

I'm running Bitbucket Server v4.10.1 and have a few projects configured. Project #1 has the following access permissions

All repositories in the project inherit permissions from the Project.

Output from git when I commit a file to a repository in this project:

$ git clone ssh://
Cloning into 'server-inv'...
remote: Counting objects: 893, done.
remote: Compressing objects: 100% (603/603), done.
Receiving remote: Total 893 (delta 558), reused 468 (delta 288)
Receiving objects: 100% (893/893), 280.22 KiB | 49.00 KiB/s, done.
Resolving deltas: 100% (558/558), done.
Checking connectivity... done.

$ cd server-inv/
$ ls -l > test.txt
$ git add test.txt
$ git commit -m "Test for Community thread"
[master 5a3ed15] Test for Community thread
 1 file changed, 28 insertions(+)
 create mode 100644 test.txt
$ git push -u origin
Counting objects: 3, done.
Delta compression using up to 8 threads.
Compressing objects: 100% (3/3), done.
Writing objects: 100% (3/3), 685 bytes | 0 bytes/s, done.
Total 3 (delta 1), reused 0 (delta 0)
To ssh://
   562d23f..5a3ed15  master -> master

Here are the settings for another project on the same Bitbucket Server instance. As far as I can tell, they are identical to those of the first project linked earlier in my post.

Output from git when I try to commit a file from an existing repository in this project, following the instructions provided in the repository page:


07-07-2017 5-22-26 PM.png

$ cd unixscripts/
$ git remote add origin ssh://
$ git push -u origin master
Repository not found
The requested repository does not exist, or you do not have permission to access it.
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I would appreciate any input I can get on why the error is occuring with the second repository.


2 answers

0 votes

Hi Balaji,

This is a shot in the dark, but do you have access keys configured in one repo but not the other?



Premier Support Engineer


Hi Christian,

That may have been a shot in the dark, but it was a very good one!

Missing access keys was in fact the problem - It seems like I was operating under the impression that when users are granted access via the project permissions, their SSH keys would automatically get carried over, so I did not compare that page between the two projects.

Once I synchronized the access keys between the two projects, I was able to successfully push commits to repositories in the second project.

Suggest an answer

Log in or Sign up to answer
Community showcase
Published Mar 14, 2019 in Bitbucket Pipelines

Building a Bitbucket Pipe as a casual coder :  #!/bin/bash source "$(dirname "$0")/" enable_debug extra_args="" if [[ "${DEBUG}" == "true" ]]; then extra_args="--verbose" fi # mandatory variables R...

284 views 0 12
Read article

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