[Grok-dev] History & Annotate in grok using perforce

Robert rell at pixar.com
Fri Mar 16 22:04:45 UTC 2012


Hello grok-dev,

I have installed opengrok 0.11 and tomcat 7.  This was working swell for 
awhile, but today the History & Annotate links went dim while I was 
mucking with things.  It seems like there is an open bug on this but it 
doesn't have a lot of helpful information.

I have restored my tomcat7 install to default and I am now re-deploying 
using the source.war that comes vanilla with 0.11.

Any help would be huge, as this is preventing us from upgrading (our 
current install is 0.6.1 on tomcat5).  When I was messing with tomcat6, 
I had to add P4CONFIG=.p4config to the tomcat6.conf file.  However, 
History & Annotate were working perfectly all week before today.  In any 
case, I also added this line to setenv.sh in CATALINA_HOME/bin.

Any thoughts or information I could provide to you guys to get me moving 
would be fantastic.  I've included some common things that you seem to 
ask for in help requests.  Thanks in advance for any help.



Here is my raw index command:

/usr/java/default/bin/java -d64 -Xmx12G -Xms12G 
-XX:+HeapDumpOnOutOfMemoryError 
-XX:HeapDumpPath=/data/webroot/opengrok-0.11/dumps 
-Dorg.opensolaris.opengrok.history.Mercurial=/usr/bin/hg 
-Dorg.opensolaris.opengrok.history.cvs=/usr/bin/cvs 
-Dorg.opensolaris.opengrok.history.Subversion=/usr/bin/svn 
-Dorg.opensolaris.opengrok.history.git=/usr/bin/git 
-Dorg.opensolaris.opengrok.history.Perforce=/usr/bin/p4 
-Djava.util.logging.config.file=/data/webroot/opengrok-0.11/logging.properties 
-jar /data/webroot/opengrok-0.11/bin/../lib/opengrok.jar -P -v -c 
/usr/bin/ctags -a on -R 
/data/webroot/opengrok-0.11/etc/readonly_configuration.xml -W 
/data/webroot/opengrok-0.11/etc/configuration.xml -U localhost:2424 -s 
/host/devel/grok-new/opengrok-trees -d /data/webroot/opengrok-0.11/data -H

And the contents of /data/webroot/opengrok-0.11/etc/configuration.xml:

http://pastebin.com/KqjXKq1K

Some additional variables I have set at runtime:

#!/bin/sh
OPENGROK_TOMCAT_BASE="/data/webroot/apache-tomcat-7.0.26/"
OPENGROK_INSTANCE_BASE="/data/webroot/opengrok-0.11/"
OPENGROK_VERBOSE="true"
EXUBERANT_CTAGS="/usr/bin/ctags"
SRC_ROOT="/host/devel/grok-new/opengrok-trees"
DATA_ROOT="/data/webroot/opengrok-0.11/data"
XML_CONFIGURATION="/data/webroot/opengrok-0.11/etc/configuration.xml"
READ_XML_CONFIGURATION="/data/webroot/opengrok-0.11/etc/readonly_configuration.xml"
OPENGROK_INSTANCE_BASE="${OPENGROK_INSTANCE_BASE:-/var/opengrok}"
#OPENGROK_PROGRESS="true"




More information about the Grok-dev mailing list