Getting "Error committing changes_closed Lucene index" in gerrit every 5 min

172 views
Skip to first unread message

Javed

unread,
Feb 14, 2018, 2:21:04 AM2/14/18
to Repo and Gerrit Discussion
Hi, 

I am using Gerrit 2.14.6, I restarted the Gerrit once and not able to see Merged list.

And getting the following error.

[changes_closed Commit-0] ERROR com.google.gerrit.lucene.AbstractLuceneIndex : Error committing changes_closed Lucene index
java.nio.file.AccessDeniedException: /home2/gerrit2/gerrit2/index/changes_0039/closed/_hmr_Lucene50_0.tim
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at org.apache.lucene.util.IOUtils.fsync(IOUtils.java:391)
        at org.apache.lucene.store.FSDirectory.fsync(FSDirectory.java:288)
        at org.apache.lucene.store.FSDirectory.sync(FSDirectory.java:232)
        at org.apache.lucene.store.LockValidatingDirectoryWrapper.sync(LockValidatingDirectoryWrapper.java:62)
        at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4435)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2860)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2963)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2930)
        at com.google.gerrit.lucene.AbstractLuceneIndex$1.run(AbstractLuceneIndex.java:130)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)

Please tell me what is the issue?

Edwin Kempin

unread,
Feb 14, 2018, 2:23:27 AM2/14/18
to Javed, Repo and Gerrit Discussion
On Wed, Feb 14, 2018 at 5:26 AM, Javed <javed.l...@gmail.com> wrote:
Hi, 

I am using Gerrit 2.14.6, I restarted the Gerrit once and not able to see Merged list.

And getting the following error.

[changes_closed Commit-0] ERROR com.google.gerrit.lucene.AbstractLuceneIndex : Error committing changes_closed Lucene index
java.nio.file.AccessDeniedException: /home2/gerrit2/gerrit2/index/changes_0039/closed/_hmr_Lucene50_0.tim
Does the OS user that runs gerrit have file system permissions for this file and all other files of the gerrit site installation folder?
 
        at sun.nio.fs.UnixException.translateToIOException(UnixException.java:84)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:102)
        at sun.nio.fs.UnixException.rethrowAsIOException(UnixException.java:107)
        at sun.nio.fs.UnixFileSystemProvider.newFileChannel(UnixFileSystemProvider.java:177)
        at java.nio.channels.FileChannel.open(FileChannel.java:287)
        at java.nio.channels.FileChannel.open(FileChannel.java:335)
        at org.apache.lucene.util.IOUtils.fsync(IOUtils.java:391)
        at org.apache.lucene.store.FSDirectory.fsync(FSDirectory.java:288)
        at org.apache.lucene.store.FSDirectory.sync(FSDirectory.java:232)
        at org.apache.lucene.store.LockValidatingDirectoryWrapper.sync(LockValidatingDirectoryWrapper.java:62)
        at org.apache.lucene.index.IndexWriter.startCommit(IndexWriter.java:4435)
        at org.apache.lucene.index.IndexWriter.prepareCommitInternal(IndexWriter.java:2860)
        at org.apache.lucene.index.IndexWriter.commitInternal(IndexWriter.java:2963)
        at org.apache.lucene.index.IndexWriter.commit(IndexWriter.java:2930)
        at com.google.gerrit.lucene.AbstractLuceneIndex$1.run(AbstractLuceneIndex.java:130)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
        at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
        at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
        at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
        at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
        at java.lang.Thread.run(Thread.java:748)

Please tell me what is the issue?

--
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Javed

unread,
Feb 14, 2018, 4:39:35 AM2/14/18
to Repo and Gerrit Discussion
Thanks, Edwin. It was my bad, FS permission was not properly set.

--
--
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.

Javed

unread,
Feb 14, 2018, 5:10:48 AM2/14/18
to Repo and Gerrit Discussion
Hi Edwin,

Is there any way I can get all the closed items list? 

Since it was a permission issue, it was not showing in Gerrit homepage Merged Items.

Regards,
Javed

--
--
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.

Edwin Kempin

unread,
Feb 14, 2018, 5:13:53 AM2/14/18
to Javed, Repo and Gerrit Discussion
On Wed, Feb 14, 2018 at 11:10 AM, Javed <javed.l...@gmail.com> wrote:
Hi Edwin,

Is there any way I can get all the closed items list? 

Since it was a permission issue, it was not showing in Gerrit homepage Merged Items.
I think you should do an offline reindex  for all indexes:

--
--
To unsubscribe, email repo-discuss+unsubscribe@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+unsubscribe@googlegroups.com.
Message has been deleted

Javed

unread,
Feb 19, 2018, 12:01:55 AM2/19/18
to Repo and Gerrit Discussion
Thanks, Edwin. Its working fine now.

I did offline reindex.
Reply all
Reply to author
Forward
0 new messages