Restarted gerrit this morning and had this in the logs. The Device-Maintainers project is just a dummy project meant for rights management. Setup exactly like All-Projects, just different access rules setup.
[2013-12-23 14:49:36,635] ERROR com.google.gerrit.server.index.ChangeBatchIndexer : Failed to index project Device-Maintainers
java.util.concurrent.ExecutionException: com.google.inject.ProvisionException: Guice provision errors:
1) Automatic ReviewDb only available in request scope
at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:70)
while locating com.google.gerrit.reviewdb.server.ReviewDb
1 error
at java.util.concurrent.FutureTask$Sync.innerGet(FutureTask.java:252)
at java.util.concurrent.FutureTask.get(FutureTask.java:111)
at com.google.gerrit.server.index.ChangeBatchIndexer$1.run(ChangeBatchIndexer.java:153)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)
at com.google.common.util.concurrent.ExecutionList.executeListener(ExecutionList.java:156)
at com.google.common.util.concurrent.ExecutionList.add(ExecutionList.java:101)
at com.google.common.util.concurrent.ListenableFutureTask.addListener(ListenableFutureTask.java:83)
at com.google.gerrit.server.index.ChangeBatchIndexer.indexAll(ChangeBatchIndexer.java:149)
at com.google.gerrit.lucene.OnlineReindexer.reindex(OnlineReindexer.java:79)
at com.google.gerrit.lucene.OnlineReindexer.access$000(OnlineReindexer.java:33)
at com.google.gerrit.lucene.OnlineReindexer$1.run(OnlineReindexer.java:62)
Caused by: com.google.inject.ProvisionException: Guice provision errors:
1) Automatic ReviewDb only available in request scope
at com.google.gerrit.server.util.ThreadLocalRequestContext$1.provideReviewDb(ThreadLocalRequestContext.java:70)
while locating com.google.gerrit.reviewdb.server.ReviewDb
1 error
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1014)
at com.google.gerrit.server.index.ChangeBatchIndexer$3.call(ChangeBatchIndexer.java:211)
at com.google.gerrit.server.index.ChangeBatchIndexer$3.call(ChangeBatchIndexer.java:203)
at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
at java.util.concurrent.FutureTask.run(FutureTask.java:166)
at com.google.common.util.concurrent.MoreExecutors$SameThreadExecutorService.execute(MoreExecutors.java:297)
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.index.ChangeBatchIndexer.indexAll(ChangeBatchIndexer.java:145)
... 3 more
[2013-12-23 14:49:36,720] ERROR com.google.gerrit.lucene.OnlineReindexer : Online reindex of schema version 5 failed
So I try to run it manually to see what happened there and I get the following...if you need the full dump of the error, let me know, i condensed it here since it kept yelling about the same file over and over.
gerrit@ark:~/gerrit$ java -jar bin/gerrit.war reindex --dry-run
[2013-12-23 15:31:22,203] INFO com.google.gerrit.server.git.LocalDiskRepositoryManager : Defaulting core.streamF
ileThreshold to 240m
[2013-12-23 15:31:22,422] INFO com.google.gerrit.server.cache.h2.H2CacheFactory : Enabling disk cache /home/gerr
it/gerrit/cache
Exception in thread "main" com.google.inject.CreationException: Guice creation errors:
1) Error injecting constructor, org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeF
SLock@/home/gerrit/gerrit/index/changes_0005/open/write.lock
at com.google.gerrit.lucene.LuceneChangeIndex.<init>(LuceneChangeIndex.java:162)
while locating com.google.gerrit.lucene.LuceneChangeIndex annotated with @com.google.inject.internal.UniqueAnno
tations$Internal(value=3)
at com.google.gerrit.lucene.LuceneIndexModule$SingleVersionModule.getIndex(LuceneIndexModule.java:74)
at com.google.gerrit.lucene.LuceneIndexModule$SingleVersionModule.getIndex(LuceneIndexModule.java:74)
while locating com.google.gerrit.lucene.LuceneChangeIndex
for parameter 1 at com.google.gerrit.lucene.LuceneIndexModule$SingleVersionListener.<init>(LuceneIndexModule.
java:88)
at com.google.gerrit.lucene.LuceneIndexModule$SingleVersionListener.class(LuceneIndexModule.java:88)
while locating com.google.gerrit.lucene.LuceneIndexModule$SingleVersionListener
while locating com.google.gerrit.extensions.events.LifecycleListener annotated with @com.google.inject.internal
.UniqueAnnotations$Internal(value=5)
Caused by: org.apache.lucene.store.LockObtainFailedException: Lock obtain timed out: NativeFSLock@/home/gerrit/ge
rrit/index/changes_0005/open/write.lock
at org.apache.lucene.store.Lock.obtain(Lock.java:84)
at org.apache.lucene.index.IndexWriter.<init>(IndexWriter.java:672)
at com.google.gerrit.lucene.SubIndex.<init>(SubIndex.java:62)
at com.google.gerrit.lucene.SubIndex.<init>(SubIndex.java:56)
at com.google.gerrit.lucene.LuceneChangeIndex.<init>(LuceneChangeIndex.java:185)
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at com.google.inject.internal.DefaultConstructionProxyFactory$2.newInstance(DefaultConstructionProxyFacto
ry.java:86)
at com.google.inject.internal.ConstructorInjector.provision(ConstructorInjector.java:108)
at com.google.inject.internal.ConstructorInjector.construct(ConstructorInjector.java:88)
at com.google.inject.internal.ConstructorBindingImpl$Factory.get(ConstructorBindingImpl.java:269)
at com.google.inject.internal.InjectorImpl$3$1.call(InjectorImpl.java:1005)
at com.google.inject.internal.InjectorImpl.callInContext(InjectorImpl.java:1058)
at com.google.inject.internal.InjectorImpl$3.get(InjectorImpl.java:1001)
at com.google.inject.assistedinject.FactoryProvider2.invoke(FactoryProvider2.java:665)
at com.google.gerrit.lucene.$Proxy27.create(Unknown Source)
at com.google.gerrit.lucene.LuceneIndexModule$SingleVersionModule.getIndex(LuceneIndexModule.java:77)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
Currently using MySQL Db and have index in the gerrit.config file.