“./ OpenGrok索引”失败了

时间:2013-07-23 01:56:34

标签: java deployment indexing opengrok

我正在尝试实现OpenGrok来搜索某些源代码树。运行“./OpenGrok deploy”时没有错误,但之后当我运行“./OpenGrok index”时,会出现很多类似的错误,我将在下面附上。我想搜索的完整源代码树是一个非常拥抱的项目,大约20G左右,奇怪的是,如果源代码是一个小的,我可以成功运行“./OpenGrok索引”。所以我不确定OpenGrok是否有任何文件编号限制或大小限制,如果有,我在哪里可以进行更改?或者是因为其他一些原因。

谢谢!

11:38:02 SEVERE: Failed to read from process: cvs
java.io.IOException: Cannot run program "cvs" (in directory "/home/pss/Tools/OpenGrok/src/REL_6_2_2_S6/feature/ipsec/server"): error=2, No such file or directory
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1041)
        at org.opensolaris.opengrok.util.Executor.exec(Executor.java:131)
        at org.opensolaris.opengrok.history.CVSHistoryParser.parse(CVSHistoryParser.java:163)
        at org.opensolaris.opengrok.history.CVSRepository.getHistory(CVSRepository.java:216)
        at org.opensolaris.opengrok.history.FileHistoryCache.get(FileHistoryCache.java:227)
        at org.opensolaris.opengrok.history.HistoryGuru.getHistory(HistoryGuru.java:212)
        at org.opensolaris.opengrok.history.HistoryGuru.getHistoryReader(HistoryGuru.java:175)
        at org.opensolaris.opengrok.analysis.AnalyzerGuru.populateDocument(AnalyzerGuru.java:257)
        at org.opensolaris.opengrok.index.IndexDatabase.addFile(IndexDatabase.java:637)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:888)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:858)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:858)
        at org.opensolaris.opengrok.index.IndexDatabase.update(IndexDatabase.java:391)
        at org.opensolaris.opengrok.index.IndexDatabase$1.run(IndexDatabase.java:171)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:724)
Caused by: java.io.IOException: error=2, No such file or directory
        at java.lang.UNIXProcess.forkAndExec(Native Method)
        at java.lang.UNIXProcess.<init>(UNIXProcess.java:135)
        at java.lang.ProcessImpl.start(ProcessImpl.java:130)
        at java.lang.ProcessBuilder.start(ProcessBuilder.java:1022)
        ... 19 more
11:38:02 WARNING: Non-zero exit status -1 from command [cvs, log, test_ike.c] in directory /home/pss/Tools/OpenGrok/src/REL_6_2_2_S6/feature/ipsec/server
11:38:02 WARNING: An error occurred while reading history:
org.opensolaris.opengrok.history.HistoryException: Failed to get history for: "/home/pss/Tools/OpenGrok/src/REL_6_2_2_S6/feature/ipsec/server/test_ike.c" Exit code: -1
        at org.opensolaris.opengrok.history.CVSHistoryParser.parse(CVSHistoryParser.java:166)
        at org.opensolaris.opengrok.history.CVSRepository.getHistory(CVSRepository.java:216)
        at org.opensolaris.opengrok.history.FileHistoryCache.get(FileHistoryCache.java:227)
        at org.opensolaris.opengrok.history.HistoryGuru.getHistory(HistoryGuru.java:212)
        at org.opensolaris.opengrok.history.HistoryGuru.getHistoryReader(HistoryGuru.java:175)
        at org.opensolaris.opengrok.analysis.AnalyzerGuru.populateDocument(AnalyzerGuru.java:257)
        at org.opensolaris.opengrok.index.IndexDatabase.addFile(IndexDatabase.java:637)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:888)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:858)
        at org.opensolaris.opengrok.index.IndexDatabase.indexDown(IndexDatabase.java:858)
        at org.opensolaris.opengrok.index.IndexDatabase.update(IndexDatabase.java:391)
        at org.opensolaris.opengrok.index.IndexDatabase$1.run(IndexDatabase.java:171)
        at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:471)
        at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:334)
        at java.util.concurrent.FutureTask.run(FutureTask.java:166)
        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:724)

1 个答案:

答案 0 :(得分:0)

您在检查代码时是否执行openGrok index,以及从错误代码执行操作。您是否已将cvs置于环境路径