fatal: internal server error

887 views
Skip to first unread message

suman...@gmail.com

unread,
May 28, 2018, 2:46:29 AM5/28/18
to Repo and Gerrit Discussion
HI Team,

we are getting below error , while cloning the project , even we did the git gc regularly
can  you please help on this problem on high priority

current gerrit verison: 2.10.4


stdout:
stderr: fatal: git fetch_pack: expected ACK/NAK, got 'ERR want ea917axxxxxxx not valid'
fatal: internal server error

error: refs/ does not point to a valid object!

Thanks in advance.

Matthew Webber

unread,
May 28, 2018, 3:16:39 AM5/28/18
to Repo and Gerrit Discussion
we are getting below error , while cloning the project , even we did the git gc regularly
can  you please help on this problem on high priority
current gerrit verison: 2.10.4

From a quick web search , it looks like that problem might be related to a bug in old versions of JGit.
Are you doing "git gc" (native command line git) or "gerrit gc" (Gerrit/JGit gc)?
You're on quite an old version of Gerrit - any chance of upgrading at some point?
 

suman...@gmail.com

unread,
May 28, 2018, 4:55:00 AM5/28/18
to Repo and Gerrit Discussion

Hi Matthew,

Thanks for reply
Can you please provide the solution for resolving problem

we used the commands:  git fsck --full
                                      git gc --prune=now

after running above commands , getting below error
error: refs/ does not point to a valid object!

 may i know , how to check the missing objects and how to restore it .

Matthew Webber

unread,
May 28, 2018, 7:49:32 AM5/28/18
to Repo and Gerrit Discussion
I don't have any immediate solution, but a couple of points:
(1) If you are using "git gc" outside of Gerrit, I suggest that you only do it when Gerrit is stopped.
(2) I suggest you make sure you have a backup for you start trying to fix this.

When you say you get "error: refs/ does not point to a valid object!"
I don't know what command you are issuing to get that.
Is there anything in Gerrit's error_log?

When reporting problems, please try and be 100% clear, and copy/paste the exact command you issued, and the exact response you got (you can mask out (xxx) sensitive information if you need to).
Otherwise, we have to guess what you mean.

suman...@gmail.com

unread,
May 29, 2018, 2:36:56 AM5/29/18
to Repo and Gerrit Discussion
Thanks for your suggestions Matthew ,

Issue got fixed now , problem is due to reference object missing to particular branch.like (refs/heads/master)
we updated the ref object , it is working fine and we are able to clone the project.








On Monday, May 28, 2018 at 12:16:29 PM UTC+5:30, suman...@gmail.com wrote:
Reply all
Reply to author
Forward
0 new messages