0

我正在尝试实现 OpenGrok 来搜索一些源代码树。运行“./OpenGrok deploy”时没有错误,但后来当我运行“./OpenGrok index”时,出现了很多类似的错误,我将在下面附上。我要搜索的完整源代码树是一个非常庞大的项目,大约 20G 大,奇怪的是,如果源代码很小,我可以成功运行“./OpenGrok index”。所以我不确定 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)
4

1 回答 1

0

您是否openGrok index在检查代码时执行此操作,并从错误代码中执行。你有没有把cvs你的环境路径

于 2013-09-22T14:53:17.493 回答