Gerrit - 推送到gerrit进行审核时出现内部服务器错误

时间:2015-05-26 09:11:37

标签: git push gerrit review

我已经在我的服务器上安装了gerrit-2.11,我正在测试电子邮件通知,将一些更改推送到gerrit进行审核。经过多次推动后,它开始抛出以下错误。

$ git push origin HEAD:refs/for/master
Counting objects: 4, done.Writing objects: 100% (3/3), 289 bytes, done.
Total 3 (delta 0), reused 0 (delta 0)
remote: Processing changes: refs: 2, done
To ssh://user@host:29418/project
 ! [remote rejected] HEAD -> refs/for/master (internal server error)
error: failed to push some refs to 'ssh://user@host:29418/project'

我在这台服务器上托管了很多项目。现在我在尝试推送一些内容进行审核时,所有项目都出现了上述错误。我可以在gerrit错误日志中看到以下异常。

[2015-05-26 08:25:07,797] ERROR com.google.gerrit.server.git.ReceiveCommits : Can't insert change/patchset for project
com.google.gerrit.server.git.InsertException: Error inserting change/patchset
        at com.google.gerrit.server.git.ReceiveCommits$1.apply(ReceiveCommits.java:269)
        at com.google.gerrit.server.git.ReceiveCommits$1.apply(ReceiveCommits.java:260)
        at com.google.common.util.concurrent.Futures$MappingCheckedFuture.mapException(Futures.java:1809)
        at com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:85)
        at com.google.gerrit.server.git.ReceiveCommits.insertChangesAndPatchSets(ReceiveCommits.java:803)
        at com.google.gerrit.server.git.ReceiveCommits.processCommands(ReceiveCommits.java:588)
        at com.google.gerrit.server.git.AsyncReceiveCommits$Worker.run(AsyncReceiveCommits.java:89)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at com.google.gerrit.server.util.RequestScopePropagator$5.call(RequestScopePropagator.java:222)
        at com.google.gerrit.server.util.RequestScopePropagator$4.call(RequestScopePropagator.java:201)
        at com.google.gerrit.server.util.ThreadLocalRequestScopePropagator$1.call(ThreadLocalRequestScopePropagator.java:55)

*

1 个答案:

答案 0 :(得分:0)

请使用此命令检查远程Gerrit存储库,以检查您是否可以使用用户名用户和主机名主机

访问Gerrit存储库
ssh -p 29418 user@host

我想访问gerrit的帐户不正确或者gerrit服务器的主机名不正确。