Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 373061

Summary: Problems with pushing to Gerrit for Platform/Resources
Product: Community Reporter: Szymon Brandys <Szymon.Brandys>
Component: GitAssignee: Eclipse Webmaster <webmaster>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: P3    
Version: unspecified   
Target Milestone: ---   
Hardware: PC   
OS: Windows 7   
Whiteboard:

Description Szymon Brandys CLA 2012-03-02 05:43:56 EST
When I try to push a change to Gerrit using HEAD:refs/for/master I get this error:

Can't connect to any URI: ssh://sbrandys@git.eclipse.org:29418/platform/eclipse.platform.resources.git (An internal Exception occurred during push: ssh://sbrandys@git.eclipse.org:29418/platform/eclipse.platform.resources.git: push not permitted)

We managed to push two changes already and now we are completely blocked.

When I try to push from the console I get:
fatal: One or more refs/for/ names blocks change upload 
fatal: The remote end hung up unexpectedly
Comment 1 Eclipse Webmaster CLA 2012-03-02 11:04:14 EST
This sounds like: http://gerrit-documentation.googlecode.com/svn/Documentation/2.2.2/error-change-upload-blocked.html

You might want to check out https://bugs.eclipse.org/bugs/show_bug.cgi?id=372131#c7   as you can also 'push' around Gerrit(by using the old urls)

-M.
Comment 2 Szymon Brandys CLA 2012-03-02 11:23:09 EST
(In reply to comment #1)
> This sounds like:
> http://gerrit-documentation.googlecode.com/svn/Documentation/2.2.2/error-change-upload-blocked.html
> 
> You might want to check out
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=372131#c7   as you can also
> 'push' around Gerrit(by using the old urls)
> 
> -M.

I do not have shell access. Could you check what "git for-each-ref refs/for" returns? I guess there may be a "refs/for..." branch. Let me know what it is.
Comment 3 Eclipse Webmaster CLA 2012-03-02 11:46:21 EST
Ok, just for the record:

eclipse.platform.resources.git # git for-each-ref refs/for
9d7bad2083a4e30f47f3e95386304910a95bc2d8 commit refs/for/master
eclipse.platform.resources.git # for n in $(git for-each-ref --format='%refname)' refs/for); do git update-ref -d $n; done
eclipse.platform.resources.git # git for-each-ref refs/for
eclipse.platform.resources.git #                         

Looks ok, can you commit again?

-M.
Comment 4 Szymon Brandys CLA 2012-03-02 12:38:27 EST
Works great now. Thanks!