Issue 1719: "failed to push some refs" error, but commit is created
Status:  New
Owner: ----
Project Member Reported by david.pu...@sonymobile.com, Dec 11, 2012
************************************************************
***** NOTE: THIS BUG TRACKER IS FOR GERRIT CODE REVIEW *****
***** DO NOT SUBMIT BUGS FOR CHROME, ANDROID, INTERNAL *****
***** ISSUES WITH YOUR COMPANY'S GERRIT SETUP, ETC.    *****
***** THOSE ISSUE BELONG IN DIFFERENT ISSUE TRACKERS!  *****
************************************************************

Affected Version: 2.4.2

What steps will reproduce the problem?

- A merge is uploaded for review, but containing merge conflicts
- The change is downloaded to another workspace with the "repo download" link
- Conflicts are fixed, commited, and pushed to refs/changes/<change_nr>

Gerrit returns an error:

! [remote rejected] HEAD -> refs/changes/<change_nr>
error: failed to push some refs to 'ssh://user@review:29418/path/to/project'

It looks like it has failed, but:

- In the Gerrit UI the new patch set is shown in the patch set list, and it is possible to diff the files with the previous patch set
- On the server, "git show" on the new patch set's sha1 is successful

So the new ref exists, however:

- On the server, the folder git/path/to/project.git/refs/changes/xx/<change_nr> only contains the first patch set
- The download links on the GUI result in error "Couldn't find remote ref"

And:

- On the GUI there is no note in the review log about "new patch set uploaded"
- No new patch set mail was sent
- New patch set event was not emitted on the event stream

Dec 12, 2012
#1 Iso.poc...@gmail.com
Do you have set rights to push merge commit ?
Dec 12, 2012
Project Member #2 david.pu...@sonymobile.com
Yes, push merge commit permission is set.  If it were not, the error would be different.

The problem is intermittent and we haven't found a way to reproduce it on demand.
Mar 31, 2014
#3 yidic...@gmail.com
 i have the same problem ,how to fix it?