Gerrit reindex fail

747 views
Skip to first unread message

Vladislav Khudyakov

unread,
Feb 5, 2017, 11:43:37 AM2/5/17
to Repo and Gerrit Discussion
Hi, I'm try to upgrade gerrit from 2.11.1 to 2.13.5
Init step passes successfully, but asked for reindex
Unfortunately also after reindex it still ask for do reindex
Looks like it passed successfully with few warnings and errors
one of the errors is :

[Index-Batch-5] ERROR com.google.gerrit.server.index.SiteIndexer : Failed to index project upstream/linux
java.util.concurrent.ExecutionException: com.google.gwtorm.server.OrmException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /opt/gerrit/git/upstream/linux.git
       at com.google.common.util.concurrent.AbstractFuture.getDoneValue(AbstractFuture.java:476)
       at com.google.common.util.concurrent.AbstractFuture.get(AbstractFuture.java:435)
       at com.google.common.util.concurrent.AbstractFuture$TrustedFuture.get(AbstractFuture.java:79)
       at com.google.gerrit.server.index.SiteIndexer$ErrorListener.run(SiteIndexer.java:110)
       at com.google.common.util.concurrent.MoreExecutors$DirectExecutor.execute(MoreExecutors.java:456)
       at com.google.common.util.concurrent.AbstractFuture.executeListener(AbstractFuture.java:817)
       at com.google.common.util.concurrent.AbstractFuture.complete(AbstractFuture.java:753)
       at com.google.common.util.concurrent.AbstractFuture.setException(AbstractFuture.java:634)
       at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:110)
       at com.google.common.util.concurrent.InterruptibleTask.run(InterruptibleTask.java:41)
       at com.google.common.util.concurrent.TrustedListenableFutureTask.run(TrustedListenableFutureTask.java:77)
       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:417)
       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: com.google.gwtorm.server.OrmException: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /opt/gerrit/git/upstream/linux.git
       at com.google.gerrit.server.notedb.AbstractChangeNotes.load(AbstractChangeNotes.java:158)
       at com.google.gerrit.server.notedb.ChangeNotes$Factory.createFromChangeOnlyWhenNoteDbDisabled(ChangeNotes.java:221)
       at com.google.gerrit.server.notedb.ChangeNotes$Factory.scanDb(ChangeNotes.java:311)
       at com.google.gerrit.server.notedb.ChangeNotes$Factory.scan(ChangeNotes.java:297)
       at com.google.gerrit.server.index.change.AllChangesIndexer$2.call(AllChangesIndexer.java:225)
       at com.google.gerrit.server.index.change.AllChangesIndexer$2.call(AllChangesIndexer.java:215)
       at com.google.common.util.concurrent.TrustedListenableFutureTask$TrustedFutureInterruptibleTask.runInterruptibly(TrustedListenableFutureTask.java:108)
       ... 10 more
Caused by: org.eclipse.jgit.errors.RepositoryNotFoundException: repository not found: /opt/gerrit/git/upstream/linux.git
       at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:193)
       at com.google.gerrit.server.git.LocalDiskRepositoryManager.openRepository(LocalDiskRepositoryManager.java:164)
       at com.google.gerrit.server.notedb.AbstractChangeNotes.load(AbstractChangeNotes.java:146)
       ... 16 more


looks like /opt/gerrit/git/upstream/linux.git is not exist.
But I see it in this location also checked that permissions are same like on other repos.
Also checked that it is not link.
I have tried to delete index and cache, with no result

Gerrit success to start only if I change manually "false" to true in /opt/gerrit/index/gerrit_index.config
Tried to force online reindex, but there is same issue (despite the fact that I can do a clone of this repo)
Any suggestion?

Vladislav Khudyakov

unread,
May 28, 2018, 5:50:37 AM5/28/18
to Repo and Gerrit Discussion
any suggestion? still stuck with the upgrade (reindex remove all changes of this specific repo), tried to upgrade to 2.14.6 but same issue in reindex

luca.mi...@gmail.com

unread,
May 28, 2018, 4:00:48 PM5/28/18
to Vladislav Khudyakov, Repo and Gerrit Discussion
This is typically due to a high number of errors during the rebuild of the index. Look at you /index/index.config with the status of the indexes created.

Luca

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.
Reply all
Reply to author
Forward
0 new messages