I'm trying to create a new sandbox project, but I'm having problems getting code up to the git.drupal.org git server. Whenever I try to perform my first push, I get an error that "user 'None' does not have write permissions for the repository."

I've followed the directions in the Empty Sandbox Repository page, but to no avail:

$ git init
Initialized empty Git repository in /path/to/import_export_tools/.git/
$ echo "name = Import / Export Tools" > import_export_tools.info
$ git add import_export_tools.info
$ git commit -m "Initial commit."
[master (root-commit) 2ae198b] Initial commit.
 1 files changed, 1 insertions(+), 0 deletions(-)
 create mode 100644 import_export_tools.info
$ git remote add origin franklin@git.drupal.org:sandbox/franklin/1255136.git
$ git push --verbose origin master
Pushing to franklin@git.drupal.org:sandbox/franklin/1255136.git
fatal: remote error: User 'None' does not have write permissions for repository '1255136'

I can confirm the SSH keys are correct: Attempts to SSH to git.drupal.org using ssh -v git.drupal.org succeed with the debug message Authentication succeeded (publickey). Appropriately, no shell is granted, but the authentication succeeds.

Near as I can tell, the git config is correct; 'franklin' is my Git username.

$ git config --list
user.name=John Franklin
user.email=franklin@sentaidigital.com
core.repositoryformatversion=0
core.filemode=true
core.bare=false
core.logallrefupdates=true
remote.origin.url=franklin@git.drupal.org:sandbox/franklin/1255136.git
remote.origin.fetch=+refs/heads/*:refs/remotes/origin/*

and my ssh config configures connections correctly:

$ cat ~/.ssh/config
Host git.drupal.org
User franklin
IdentityFile ~/.ssh/drupal

What am I missing? Any ideas?

Comments

john franklin’s picture

Status: Active » Closed (fixed)

Solved. SSH public/private inexplicably did not match.

lin0v0’s picture

Status: Closed (fixed) » Active

When I want to push, git asks me for my lin0v0@git.drupal.org's password.
After entering the password I got the error message "fatal: remote error: User 'None' does not have write permissions for repository".
My public and private keys match.

Any idea?

thiemo’s picture

I'm getting the exact same error as lin0v0 with newly created keys. Any hints?

drupallerina’s picture

I had the same error, then I updated my git access settings on my account page and agreed to the terms and conditions, now it works, might do the trick for you too.

http://drupal.org/user/[YOURUSERID]/edit/git

lin0v0’s picture

Status: Active » Closed (fixed)

Thanks! It worked! Great :)

BMDan’s picture

I ran into this issue, as well. Turns out username is case-sensitive (which makes sense, in retrospect). On the off chance it helps someone else, I wanted to mention it.

kalidasan’s picture

@drupallerina, me too faced same problem.

Its working fine now.
Thank you for your solution :)