prohibited by Gerrit: not permitted: create

1,925 views
Skip to first unread message

Martin Taylor

unread,
Jan 14, 2019, 2:45:20 AM1/14/19
to Repo and Gerrit Discussion
Dear Gerrit community,
    After I create new project on Gerrit, I try to sync GitLab code repository to Gerrit. Unfortunately, it failed with reason "prohibited by Gerrit: not permitted: create". 

M2037:WES xionglei$ git push ssh://xion...@172.16.0.61:29418/WES *:*
Counting objects: 5644, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (2081/2081), done.
Writing objects: 100% (5644/5644), 944.28 KiB | 37.77 MiB/s, done.
Total 5644 (delta 3504), reused 5202 (delta 3257)
remote: Resolving deltas: 100% (3504/3504)
remote: error: branches refs/remotes/origin/HEAD, refs/remotes/origin/develop, refs/remotes/origin/master:
remote: You need 'Create' rights to create new references.
remote: User: xionglei
remote: Contact an administrator to fix the permissions
remote: Processing changes: refs: 13, done
 ! [remote rejected]   origin/HEAD -> origin/HEAD (prohibited by Gerrit: not permitted: create)
 ! [remote rejected]   origin/develop -> origin/develop (prohibited by Gerrit: not permitted: create)
 ! [remote rejected]   origin/master -> origin/master (prohibited by Gerrit: not permitted: create)
 ! [remote rejected]   origin/remotes/origin/develop -> origin/remotes/origin/develop (prohibited by Gerrit: not permitted: create)
error: failed to push some refs to 'ssh://xion...@172.16.0.61:29418/WES'


Here, xionglei is out administrator, in WES_DEVELOPER group.
our project confis is http://172.16.0.61:8080/c/WES/+/5218/1/project.config,edit
and we just upgrade Gerrit from version 2.15 to 2.16.2

[access]
inheritFrom = All-Projects
[submit]
action = inherit
[access "refs/*"]
owner = group user/xionglei (xionglei)
label-Verified = -1..+1 group user/xionglei (xionglei)
push = group user/xionglei (xionglei)
[access "refs/head/*"]
label-Code-Review = -2..+2 group WES_DEVELOPER
label-Verified = -1..+1 group WES_DEVELOPER
submit = group user/xionglei (xionglei)
push = +force group user/xionglei (xionglei)
forgeAuthor = group WES_DEVELOPER
forgeCommitter = group WES_DEVELOPER
read = group WES_DEVELOPER
create = group WES_DEVELOPER
pushMerge = group WES_DEVELOPER
[access "refs/for/*"]
label-Verified = -1..+1 group WES_DEVELOPER
label-Code-Review = -2..+2 group WES_DEVELOPER
push = group WES_DEVELOPER
submit = group WES_DEVELOPER
forgeAuthor = group WES_DEVELOPER
forgeCommitter = group WES_DEVELOPER
read = group WES_DEVELOPER
[access "refs/tag/*"]
createSignedTag = group WES_DEVELOPER
createTag = group WES_DEVELOPER
forgeAuthor = group WES_DEVELOPER
forgeCommitter = group WES_DEVELOPER
read = group WES_DEVELOPER
create = group WES_DEVELOPER
[project]


After checked this link, I don't get what I'm missing here, it seems that the create permission is out there.
I'm looking for help, any help will be appreciated.

Best regards
Martin

Sven Selberg

unread,
Jan 14, 2019, 7:58:48 AM1/14/19
to Martin Taylor, Repo and Gerrit Discussion

git push ssh://... *:*

"*:*" refspec means your pushing all branches including origin branches and you don't have the rights to create "refs/heads/origin/..." on the Gerrit server you are pushing to.

 ! [remote rejected]   origin/HEAD -> origin/HEAD (prohibited by Gerrit: not permitted: create)


/Sven



From: repo-d...@googlegroups.com <repo-d...@googlegroups.com> on behalf of Martin Taylor <martin...@gmail.com>
Sent: Monday, January 14, 2019 7:55 AM
To: Repo and Gerrit Discussion
Subject: prohibited by Gerrit: not permitted: create
 
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages