Hi First of all, thank you for all the help you are providing here. For all the patience, and replies :)
When i create the empty file in my snapshot view and i run the index command ./OpenGrok index <dir>/apjoseph-snapsht/ it produces the following warnings... These were not there when the view.dat file was not there . Also, the .view.dat file is in the directory apjoseph-snapshot and not in any of its subdirectory. Cli =============== Loading the default instance configuration ... 14:09:04 WARNING: ClearCaseRepository not working (missing binaries?): <dir>/apjoseph-snapsht 14:09:04 WARNING: ClearCaseRepository not working (missing binaries?): <dir>/apjoseph-snapsht 14:09:04 WARNING: Skipping creation of historycache of ClearCaseRepository repository in <dir>/apjoseph-snapsht: Missing SCM dependencies? 14:09:06 WARNING: Skipping creation of historycache of ClearCaseRepository repository in <dir>apjoseph-snapsht: Missing SCM dependencies? Log File ======= 2012-10-03 14:16:23.668+0530 INFO t10 Indexer.prepareIndexer: Writing configuration to /var/opengrok/etc/configuration.xml 2012-10-03 14:16:23.794+0530 INFO t10 Indexer.prepareIndexer: Done... 2012-10-03 14:16:23.794+0530 INFO t10 Indexer.prepareIndexer: Generating history cache for all repositories ... 2012-10-03 14:16:23.805+0530 WARNING t11 HistoryGuru.createCache: Skipping creation of historycache of ClearCaseRepository repository in<dir>/ Missing SCM dependencies? 2012-10-03 14:16:23.806+0530 INFO t10 Indexer.prepareIndexer: Done... 2012-10-03 14:16:23.807+0530 INFO t10 Indexer.doIndexerExecution: Starting indexing 2012-10-03 14:16:24.087+0530 WARNING t12 HistoryGuru.createCache: Skipping creation of historycache of ClearCaseRepository repository in <dir>/: Missing SCM dependencies? On Wed, Oct 3, 2012 at 12:06 PM, Petr Sobotka <sobot...@gmail.com> wrote: > Hi Appu, > > Then it means that OpenGrok doesn't recognize that it's ClearCase > repository. > Source code for the check is - > http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/history/ClearCaseRepository.java#332 > > For snapshot view it should match first check (if file view.dat exists in > main directory). > That can be source of problem if your snapshot view is on Unix/Linux as > there it's called '*.*view.dat'. > Try to create empty file called view.dat on same place as .view.dat is and > re-run indexer. > > -- > Cheers, > Petr Sobotka aka Pietro > > 2012/10/3 Appu Mathew <deans...@gmail.com> > >> Hi Vladimir >> >> No, i cannot see any lshistory in the logs. >> >> Regards >> Appu >> >> >> On Tue, Oct 2, 2012 at 8:56 PM, Vladimir Kotal <vladimir.ko...@oracle.com >> > wrote: >> >>> On 10/01/12 19:07, Appu Mathew wrote: >>> >>>> Hi >>>> >>>> I checked for the Executor log. Pasted below are the logs. Why is it >>>> saying >>>> directory null? Could this be the issue? >>>> >>>> 2012-09-25 10:27:03.926+0530 FINE t10 Executor.exec: Executing command >>>> [/usr/atria/bin/cleartool, –version] in directory null >>>> 2012-09-25 10:27:04.076+0530 FINE t10 Executor.exec: Executing command >>>> [p4, >>>> help] in directory null >>>> >>> >>> I've been told these are harmless: >>> >>> http://defect.opensolaris.org/bz/show_bug.cgi?id=19165 >>> >>> Anyway, please add yourself to the interest list of that bug. >>> >>> The first command is part of the check if clearcase command is >>> available. The second command 'p4 help' command most probably belongs to >>> the same check but in another repository (Perforce). >>> >>> Are there any entries in the log of running clearcase command with >>> 'lshistory' argument ? >>> >>> >>> v. >>> >>> >>>> Regards >>>> Appu >>>> >>>> >>>> >>>> >>>> On Mon, Sep 24, 2012 at 9:01 PM, Vladimir Kotal >>>> <vladimir.ko...@oracle.com>wrote: >>>> >>>> On 09/21/12 14:52, Appu Mathew wrote: >>>>> >>>>> Yes.. the cleartool is setting the cleartool path automatically. And >>>>>> yet i >>>>>> am not able to see any historycache folder in my data directory. >>>>>> >>>>>> >>>>> Check opengrok logs (by default in /var/opengrok/log/), there should be >>>>> entries (from the Executor class) about the history commands being run. >>>>> >>>>> Alternatively, you can truss/strace/dtrace the web container process >>>>> for >>>>> signs of exec() done by getHistoryLogExecutor(): >>>>> >>>>> http://src.opensolaris.org/**source/xref/opengrok/trunk/** >>>>> src/org/opensolaris/opengrok/**history/ClearCaseRepository.**java#83< >>>>> http://src.opensolaris.org/source/xref/opengrok/trunk/src/org/opensolaris/opengrok/history/ClearCaseRepository.java#83 >>>>> > >>>>> >>>>> >>>>> v. >>>>> >>>>> >>>>> On Fri, Sep 21, 2012 at 6:16 PM, Vladimir Kotal >>>>>> <vladimir.ko...@oracle.com>**wrote: >>>>>> >>>>>> >>>>>> On 09/21/12 08:52, Petr Sobotka wrote: >>>>>> >>>>>>> >>>>>>> Hello Appu, >>>>>>> >>>>>>>> >>>>>>>> I think there is necessary (or used to be ;-) to provide path to >>>>>>>> cleartool >>>>>>>> binary via following property, when you run indexer: >>>>>>>> -Dorg.opensolaris.opengrok.****history.ClearCase=/opt/** >>>>>>>> rational/clearcase/linux_x86/****bin/cleartool >>>>>>>> >>>>>>>> >>>>>>>> It is sufficient to run the OpenGrok shell script from environment >>>>>>> where >>>>>>> 'cleartool' is available in PATH. The script will then set up the >>>>>>> property >>>>>>> automatically. >>>>>>> >>>>>>> >>>>>>> v. >>>>>>> >>>>>>> >>>>>>> As well following options should be used for running indexer '-H >>>>>>> -S -r >>>>>>> >>>>>>>> on'. >>>>>>>> >>>>>>>> Then you should check if user which is running web server can use >>>>>>>> clearcase. >>>>>>>> You can check if historycache directory is created in your index >>>>>>>> dir (or >>>>>>>> project dir). >>>>>>>> >>>>>>>> Good luck with ClearCase. >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> >>>>>>>> ______________________________****_________________ >>>>>>>> opengrok-discuss mailing list >>>>>>>> opengrok-discuss@opensolaris.****org<opengrok-discuss@** >>>>>>>> opensolaris.org<opengrok-discuss@opensolaris.org> >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> http://mail.opensolaris.org/****mailman/listinfo/opengrok-****discuss >>>>>>>> <http://mail.opensolaris.org/**mailman/listinfo/opengrok-**discuss> >>>>>>>> <http://mail.**opensolaris.org/mailman/**listinfo/opengrok-discuss< >>>>>>>> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss> >>>>>>>> >>>>>>>>> >>>>>>>>> >>>>>>>> >>>>>>>> ______________________________****_________________ >>>>>>> opengrok-discuss mailing list >>>>>>> opengrok-discuss@opensolaris.****org<opengrok-discuss@** >>>>>>> opensolaris.org<opengrok-discuss@opensolaris.org> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>> http://mail.opensolaris.org/****mailman/listinfo/opengrok-****discuss >>>>>>> <http://mail.opensolaris.org/**mailman/listinfo/opengrok-**discuss> >>>>>>> <http://mail.**opensolaris.org/mailman/**listinfo/opengrok-discuss< >>>>>>> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss> >>>>>>> >>>>>>>> >>>>>>>> >>>>>>> >>>>>>> >>>>>> ______________________________**_________________ >>>>> opengrok-discuss mailing list >>>>> opengrok-discuss@opensolaris.**org<opengrok-discuss@opensolaris.org> >>>>> http://mail.opensolaris.org/**mailman/listinfo/opengrok-**discuss< >>>>> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss> >>>>> >>>>> >>>> >>> _______________________________________________ >>> opengrok-discuss mailing list >>> opengrok-discuss@opensolaris.org >>> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss >>> >> >> >> _______________________________________________ >> opengrok-discuss mailing list >> opengrok-discuss@opensolaris.org >> http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss >> >> >
_______________________________________________ opengrok-discuss mailing list opengrok-discuss@opensolaris.org http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss