2.11.1: Can't insert patchset / internal server error

805 views
Skip to first unread message

Wulf C. Krueger

unread,
Jun 16, 2015, 12:29:22 AM6/16/15
to repo-d...@googlegroups.com
Hello,

since the update to 2.11.1 every push to Gerrit causes an internal
server error.

If it's a single patch being pushed, the changeset is actually created
but if it's a multitude of patches, they don't get created at all.


On the client side it looks like this:

! [remote rejected] HEAD -> refs/for/master (internal server error)
error: failed to push some refs to 'ssh://[...]/python.git'

On the server, I see this in the logs:


[2015-06-16 00:48:53,041] ERROR
com.google.gerrit.server.git.ReceiveCommits : Can't insert
change/patchset for python
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)

at
com.google.gerrit.server.util.RequestScopePropagator$1.call(RequestScopePropagator.java:98)

at
com.google.gerrit.server.util.RequestScopePropagator$2.run(RequestScopePropagator.java:131)

at
java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:178)

at
java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)

at
com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379)
at
java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)

at
java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)

at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException:
java.lang.NoSuchMethodError: org.eclipse.jgit.revwalk.RevWalk.release()V
at java.util.concurrent.FutureTask.report(FutureTask.java:122)
at java.util.concurrent.FutureTask.get(FutureTask.java:188)
at
com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)

at
com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:78)

... 17 more
Caused by: java.lang.NoSuchMethodError:
org.eclipse.jgit.revwalk.RevWalk.release()V
at
com.googlesource.gerrit.plugins.reviewersbyblame.ChangeUpdatedListener.onEvent(ChangeUpdatedListener.java:194)

at
com.google.gerrit.common.ChangeHookRunner.fireEventForUnrestrictedListeners(ChangeHookRunner.java:706)

at
com.google.gerrit.common.ChangeHookRunner.fireEvent(ChangeHookRunner.java:718)

at
com.google.gerrit.common.ChangeHookRunner.doPatchsetCreatedHook(ChangeHookRunner.java:364)

at
com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest.insertPatchSet(ReceiveCommits.java:2246)

at
com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest$1.call(ReceiveCommits.java:2050)

at
com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest$1.call(ReceiveCommits.java:2043)

at
com.google.gerrit.server.util.RequestScopePropagator$1.call(RequestScopePropagator.java:96)

at java.util.concurrent.FutureTask.run(FutureTask.java:262)
at
com.google.common.util.concurrent.MoreExecutors$DirectExecutorService.execute(MoreExecutors.java:299)

at
java.util.concurrent.AbstractExecutorService.submit(AbstractExecutorService.java:132)

at
com.google.common.util.concurrent.AbstractListeningExecutorService.submit(AbstractListeningExecutorService.java:58)

at
com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest.insertPatchSet(ReceiveCommits.java:2042)

at
com.google.gerrit.server.git.ReceiveCommits.insertChangesAndPatchSets(ReceiveCommits.java:794)

... 16 more

--
Best regards, Wulf

David Ostrovsky

unread,
Jun 16, 2015, 12:46:37 AM6/16/15
to repo-d...@googlegroups.com

Am Dienstag, 16. Juni 2015 06:29:22 UTC+2 schrieb Wulf Krueger:
Hello,

since the update to 2.11.1 every push to Gerrit causes an internal
server error.

reviewersbyblame is outdated on your site.

Wulf C. Krueger

unread,
Jun 16, 2015, 1:03:44 AM6/16/15
to repo-d...@googlegroups.com
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello David,

On 16.06.2015 06:46, David Ostrovsky wrote:
> since the update to 2.11.1 every push to Gerrit causes an internal
> server error. reviewersbyblame is outdated on your site.

Thanks, I missed updating it. Doing that fixed the issue.

How did you identify the issue so quickly?

- --
Best regards, Wulf

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2

iEYEARECAAYFAlV/riwACgkQnuVXRcSi+5o+mwCgtJrbxo2BqV2kUvLPuQjRWpZ+
/N0An0K++l0GD6LINdaGWABUqH1t88su
=IVtK
-----END PGP SIGNATURE-----

David Ostrovsky

unread,
Jun 16, 2015, 1:43:27 AM6/16/15
to repo-d...@googlegroups.com

Am Dienstag, 16. Juni 2015 07:03:44 UTC+2 schrieb Wulf Krueger:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hello David,

On 16.06.2015 06:46, David Ostrovsky wrote:
> since the update to 2.11.1 every push to Gerrit causes an internal
> server error. reviewersbyblame is outdated on your site.

Thanks, I missed updating it. Doing that fixed the issue.

How did you identify the issue so quickly?

By reading the attached stacktrace.

Luca Milanesio

unread,
Jun 16, 2015, 1:58:55 AM6/16/15
to David Ostrovsky, repo-d...@googlegroups.com
+and David is very active in watching the mailing list ;-)

Kudos to David :-)

Sent from my iPhone
--
--
To unsubscribe, email repo-discuss...@googlegroups.com
More info at http://groups.google.com/group/repo-discuss?hl=en

---
You received this message because you are subscribed to the Google Groups "Repo and Gerrit Discussion" group.
To unsubscribe from this group and stop receiving emails from it, send an email to repo-discuss...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Vladislav Khudyakov

unread,
Nov 29, 2015, 8:48:33 PM11/29/15
to Repo and Gerrit Discussion
Hi,  I have same kind of the issue, but I don't have this plugin installed..
any idea?

[2015-11-29 09:27:48,094] ERROR com.google.gerrit.server.git.ReceiveCommits : Can't insert change/patchset for upstream/linu
x

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)
        at com.google.gerrit.server.util.RequestScopePropagator$1.call(RequestScopePropagator.java:98)
        at com.google.gerrit.server.util.RequestScopePropagator$2.run(RequestScopePropagator.java:131)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask.run(FutureTask.java:262)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$201(ScheduledThreadPoolExecutor.java:
178)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:292)
        at com.google.gerrit.server.git.WorkQueue$Task.run(WorkQueue.java:379)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
        at java.lang.Thread.run(Thread.java:745)
Caused by: java.util.concurrent.ExecutionException: java.lang.NullPointerException

        at java.util.concurrent.FutureTask.report(FutureTask.java:122)
        at java.util.concurrent.FutureTask.get(FutureTask.java:188)
        at com.google.common.util.concurrent.ForwardingFuture.get(ForwardingFuture.java:63)
        at com.google.common.util.concurrent.AbstractCheckedFuture.checkedGet(AbstractCheckedFuture.java:78)
        ... 17 more
Caused by: java.lang.NullPointerException
        at com.google.gwtorm.jdbc.JdbcSchema.rollback(JdbcSchema.java:78)
        at com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest.insertPatchSet(ReceiveCommits.java:2200)
Caused by: java.lang.NullPointerException
        at com.google.gwtorm.jdbc.JdbcSchema.rollback(JdbcSchema.java:78)
        at com.google.gerrit.server.git.ReceiveCommits$ReplaceRequest.insertPatchSet(ReceiveCommits.java:2200)

Björn Pedersen

unread,
Nov 30, 2015, 3:27:03 AM11/30/15
to Repo and Gerrit Discussion
This sound like it could be the same as dicussed here: https://groups.google.com/forum/#!topic/repo-discuss/nLXGQzGLYcw

Björn
Reply all
Reply to author
Forward
0 new messages