我在$review_site/hooks/patch-created
和change-merged
中有两个gerrit挂钩。
现在,我发现有时两个钩子无法执行,但我确定权限是正确的,我可以手动执行它们。
当我重新启动gerrit时,可以执行钩子。 我不知道这是因为我的电脑过载吗?
$review_site/logs/error.log
输出:
[2013-12-16 12:25:36,575] ERROR com.google.gerrit.server.git.ReceiveCommits :
Error computing patch of commit e5f70dc60231789312659d7b83964c4fcb3a573a
java.io.IOException: Failed to create ref refs/changes/13/8613/1 in data/git/repositories/mtk6572_cd/mtk6572_wimdata_ng/wcustores.git: REJECTED
at com.google.gerrit.server.git.ReceiveCommits.createChange(ReceiveCommits.java:994)
at com.google.gerrit.server.git.ReceiveCommits.createNewChanges(ReceiveCommits.java:887)
at com.google.gerrit.server.git.ReceiveCommits.onPreReceive(ReceiveCommits.java:323)
at org.eclipse.jgit.transport.ReceivePack.executeCommands(ReceivePack.java:1047)
at org.eclipse.jgit.transport.ReceivePack.service(ReceivePack.java:697)
at org.eclipse.jgit.transport.ReceivePack.receive(ReceivePack.java:617)
at com.google.gerrit.sshd.commands.Receive.runImpl(Receive.java:91)
at com.google.gerrit.sshd.AbstractGitCommand.service(AbstractGitCommand.java:103)
at com.google.gerrit.sshd.AbstractGitCommand.access$000(AbstractGitCommand.java:34)
at com.google.gerrit.sshd.AbstractGitCommand$1.run(AbstractGitCommand.java:69)
at com.google.gerrit.sshd.BaseCommand$TaskThunk.run(BaseCommand.java:397)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRun(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:333)
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
我不知道是不是原因。
答案 0 :(得分:0)
$review_site/logs/error_log
文件中有什么内容?你的钩子产生任何输出吗?此输出将记录在那里。