On 13.4.2010 15:45, Kiffin Gish wrote:
Well, I 'thought' it was fixed. Now although the new project appears in
the list, searching items with this project selected results in the
error message:
Error: Index database not found
well, indexer didn't index this new project yet
xrefs are generated on demand(hence you can see them), but index needs
to be created by indexer
obviously this didn't happen on your machine(since indexer wasn't aware
of the project, was it?)
since now you fixed the -P , or ADD_PROJECTS
I'd suggest to stop and start the opengrok.sh script
you should see output in /tmp/opengrok.* which will hopefully say
"Adding blahblah..."
(* will be the pid of the process)
I still think you should try to use OpenGrok script instead (see install
page I posted below), it would be much easier, since we test it
opengrok.sh and indexer.sh weren't tested for a long time and serve just
as examples lately ...
--
L
On Tue, 2010-04-13 at 15:16 +0200, Lubos Kosco wrote:
indexer.sh seems in need of ADD_PROJECTS variable:
(not sure if your version is the same)
http://src.opensolaris.org/source/xref/opengrok/trunk/tools/smf/indexer.sh#57
or manually add -p to have it always there ... also if your setup is
simple and you don't need 2 stages, you should try just using OpenGrok
script
2 stages are good when update of repository takes a LONG time and then
indexer takes a long time, which results in inconsistent view,
however if you repository is smaller, then you can run update-indexing
and viewing the same stage at the same time without much
downtime/confusion of users ...
hth
L
On 13.4.2010 14:28, Kiffin Gish wrote:
There are three configuration.xml files:
/home/opengrok/configuration.xml
/home/opengrok/stage1/configuration.xml
/home/opengrok/stage2/configuration.xml
and each one contains the new project as well as the original ones.
If I click on a cross link under the new project, I'm sent to the main
search index page with 'Error: You must select a project!'
(The new project is missing in this list)
The opengrok.sh script is just the basic one with minore changes:
1 #! /bin/ksh
2 # CDDL HEADER START
3 #
4 # The contents of this file are subject to the terms of the
5 # Common Development and Distribution License (the "License").
6 # You may not use this file except in compliance with the License.
7 #
8 # You can obtain a copy of the license at
usr/src/OPENSOLARIS.LICENSE
9 # or http://www.opensolaris.org/os/licensing.
10 # See the License for the specific language governing permissions
11 # and limitations under the License.
12 #
13 # When distributing Covered Code, include this CDDL HEADER in each
14 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15 # If applicable, add the following below this CDDL HEADER, with the
16 # fields enclosed by brackets "[]" replaced with your own
identifying
17 # information: Portions Copyright [yyyy] [name of copyright owner]
18 #
19 # CDDL HEADER END
20
21 # Copyright 2007 Sun Microsystems, Inc. All rights reserved.
22 # Use is subject to license terms.
23
24 #
25 # opengrok: Startup script for OpenGrok.
26 #
27 # chkconfig: 3 80 05
28 # description: Startup script for indexing of OpenGrok
projects.
29
30 # The root direction of this opengrok installation
31 ROOT=/home/opengrok; export ROOT
32 # How often should the source be updated (in seconds)
33 SLEEPTIME=1800; export SLEEPTIME
34
35 # The Java version to use
36 JAVA_HOME=/usr/lib/jvm/java-1.6.0-openjdk.x86_64; export JAVA_HOME
37
38 # The path needed
39 PATH=/usr/bin:/bin; export PATH
40
41 # The name of the various SCM tools to use
42 # CVS=/usr/bin/cvs; export CVS
43 SUBVERSION=/usr/bin/svn; export SUBVERSION
44 # MERCURIAL=/usr/bin/hg; export MERCURIAL
45
46 # The name of the web servers that should be notified with the
information
47 # of the active configuration to use. Specify them with
hostname:port and
48 # separate multiple hosts by space.
49 # WEBSERVERS="server1:2424 server2:2424"
50 WEBSERVERS="localhost:2424"
51
52 # The email address to send an email if the source update fails, or
a fatal
53 # error occurs while the index database is beeing updated.
54 administrator=...@interapy.nl; export ADMINISTRATOR
55
56 # The current version of the Mercurial log parser expects C date
format.
57 LC_ALL=C; export LC_ALL
58
59 # Additional directories to look for libraries in.
60 # (Subversions java binding etc)
61
62 case "$1" in
63 start)
64 su opengrok -c "${ROOT}/smf/indexer.sh"&
65 ;;
66
67 stop)
68 pkill -u opengrok -x indexer.sh
69 ;;
70
71 *)
72 echo "Usage: $0 {start|stop}"
73 exit 1
74 ;;
75 esac
76
77 exit 0
On Tue, 2010-04-13 at 13:55 +0200, Lubos Kosco wrote:
On 13.4.2010 12:31, Kiffin Gish wrote:
I added a new project to an existing setup as follows:
$ svn checkout http://xxx/svn/project.new/trunk stage1/source/project.new
$ cp -rp stage1/source/project.new/ stage2/source/
and then restarted opengrok.sh and the glassfish server.
Can you please paste opengrok.sh (to see if you use all opengrok params
correctly) ?
And can you please paste/investigate your configuration.xml if it has
all projects you expect ?
The project dropdown gets populated from configuration.xml (which
usually gets generated by indexer and then read on restart of web app)
and eventually then sent to local web application server(in your case
glassfish), where it will be populated instantly(preferred config).
Alt. way is to use install steps on
http://hub.opensolaris.org/bin/view/Project+opengrok/installdescription
, which should work for most of small/mid deployments (just be aware
that cvs and svn remote repos can be indexing time demanding)
thanks
Lubos
I can browse to the opengrok page:
/source/xref/project.new/
But in the home search page , project.new has not been added to the projects
dropdown list.
What am I doing wrong?
_______________________________________________
opengrok-discuss mailing list
opengrok-discuss@opensolaris.org
http://mail.opensolaris.org/mailman/listinfo/opengrok-discuss