There was a problem handling a cluster message java.lang.RuntimeException: java.io.IOException: No such file or directory
症状
Upon triggering a reindex or other related operation, the following appears in the atlassian-jira.log
:
2014-06-17 14:40:39,039 ClusterMessageHandlerServiceThread:thread-1 ERROR [atlassian.jira.cluster.OfBizMessageHandlerService] There was a problem handling a cluster message
java.lang.RuntimeException: java.io.IOException: No such file or directory
at com.atlassian.jira.index.ha.DefaultIndexCopyService$MessageConsumer.copyIndex(DefaultIndexCopyService.java:181)
at com.atlassian.jira.index.ha.DefaultIndexCopyService$MessageConsumer.backupIndex(DefaultIndexCopyService.java:147)
at com.atlassian.jira.index.ha.DefaultIndexCopyService$MessageConsumer.receive(DefaultIndexCopyService.java:245)
at com.atlassian.jira.cluster.OfBizMessageHandlerService.sendLocalFromNode(OfBizMessageHandlerService.java:259)
at com.atlassian.jira.cluster.OfBizMessageHandlerService.handleReceivedMessages(OfBizMessageHandlerService.java:152)
at com.atlassian.jira.cluster.OfBizMessageHandlerService.access$000(OfBizMessageHandlerService.java:33)
at com.atlassian.jira.cluster.OfBizMessageHandlerService$1.run(OfBizMessageHandlerService.java:58)
at java.util.concurrent.Executors$RunnableAdapter.call(Unknown Source)
at java.util.concurrent.FutureTask$Sync.innerRunAndReset(Unknown Source)
at java.util.concurrent.FutureTask.runAndReset(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(Unknown Source)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.io.IOException: No such file or directory
at java.io.UnixFileSystem.createFileExclusively(Native Method)
at java.io.File.createNewFile(Unknown Source)
at com.atlassian.jira.util.ZipUtils.zip(ZipUtils.java:76)
at com.atlassian.jira.index.ha.DefaultIndexCopyService$MessageConsumer.compressBackup(DefaultIndexCopyService.java:196)
at com.atlassian.jira.index.ha.DefaultIndexCopyService$MessageConsumer.copyIndex(DefaultIndexCopyService.java:176)
... 14 more
原因
There is no access to the shared JIRA home from at least one of the instances.
ソリューション
- Verify that the NFS drive is accessible from all the cluster nodes.
Verify that the user running JIRA on each node has read/write access to the shared home directory recursively.
If the reindex finished on the faulty node, it is advised to trigger a full reindex after the root cause is fixed, so all the nodes will share the same consistent index afterwards.
Last modified on Mar 30, 2016
Powered by Confluence and Scroll Viewport.