Re: Enable Search? -- Reopened

2010-11-16 Thread Christian Hammond
rb-site always expects the path to the site directory, not a directory
within it. So it should be:

   rb-site manage /var/www/reviewboard index -- --full

Christian

--
Christian Hammond - chip...@chipx86.com
Review Board - http://www.reviewboard.org
VMware, Inc. - http://www.vmware.com



On Tue, Nov 16, 2010 at 2:16 PM, Ashay  wrote:
> Opening new discussion as I couldn't reply to old one in google
> groups.
>
> This is the error I see:
>
> [r...@host conf]# rb-site manage /var/www/reviewboard/data/search-
> index index -- --full
>
> Unable to read settings_local.py.
>
> Please see http://www.reviewboard.org/docs/manual/dev/admin/
> for help setting up Review Board.
>
> I'm using:
> RHEL 5
> Linux  2.6.18-194.17.1.el5xen #1 SMP Mon Sep 20 07:20:39 EDT 2010
> x86_64 x86_64 x86_64 GNU/Linux
>
> ReviewBoard-1.5-py2.4
> python-2.4.3-27.el5_5.2
> python-devel-2.4.3-27.el5_5.2
>
>
>
>
> On Tue, Nov 16, 2010 at 1:57 PM, Christian Hammond
>  wrote:
>> It's something you want to do every night. The generated crontab file
>> provides an example for that.
>>
>> You should never need to do that ln -s. I'd be very interested in
>> seeing what error or problem you were seeing.
>>
>> Christian
>>
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> VMware, Inc. - http://www.vmware.com
>>
>>
>>
>> On Tue, Nov 16, 2010 at 1:52 PM, Ashay  wrote:
>>>
>>> Is the index process a a one time thing, or should it be in cron?
>>>
>>> Also, the "rb-site" command did not work for me until I did:
>>>
>>> ln -s  /var/www/reviewboard/settings_local.py /usr/lib/python2.4/site-
>>> packages/ReviewBoard-1.5-py2.4.egg/reviewboard/settings_local.py
>>>
>>> Thank you for making ReviewBoard.
>>>
>>>
>>> On Jun 29 2009, 1:15 pm, Christian Hammond 
>>> wrote:
 You need to run a command periodically to update the search index, through 
 a
 scheduled task. Specifically:

     rb-site manage /path/to/site index -- --full

 (Note the "--" in there. It's important.)

 Christian

 --
 Christian Hammond - chip...@chipx86.com
 Review Board -http://www.review-board.org
 VMware, Inc. -http://www.vmware.com

 On Mon, Jun 29, 2009 at 6:41 AM, grimbeaver  wrote:

 > Seems it's throwing an exception because the search indexes do not
 > exist.  What creates these files?  The folder gets created when I
 > enable search but there are never any files in it.  Did I miss a step?

 > Environment:

 > Request Method: GET
 > Request URL:http://10.10.10.97/r/search/
 > Django Version: 1.0.2 final
 > Python Version: 2.6.2
 > Installed Applications:
 > ['django.contrib.admin',
 >  'django.contrib.auth',
 >  'django.contrib.contenttypes',
 >  'django.contrib.markup',
 >  'django.contrib.sites',
 >  'django.contrib.sessions',
 >  'djblets.datagrid',
 >  'djblets.feedview',
 >  'djblets.siteconfig',
 >  'djblets.util',
 >  'djblets.webapi',
 >  'reviewboard.accounts',
 >  'reviewboard.admin',
 >  'reviewboard.changedescs',
 >  'reviewboard.diffviewer',
 >  'reviewboard.iphone',
 >  'reviewboard.reports',
 >  'reviewboard.reviews',
 >  'reviewboard.scmtools',
 >  'reviewboard.webapi',
 >  'django_evolution']
 > Installed Middleware:
 > ('django.middleware.gzip.GZipMiddleware',
 >  'django.middleware.common.CommonMiddleware',
 >  'django.middleware.doc.XViewMiddleware',
 >  'django.middleware.http.ConditionalGetMiddleware',
 >  'django.middleware.locale.LocaleMiddleware',
 >  'django.contrib.sessions.middleware.SessionMiddleware',
 >  'django.contrib.auth.middleware.AuthenticationMiddleware',
 >  'djblets.siteconfig.middleware.SettingsMiddleware',
 >  'reviewboard.admin.middleware.LoadSettingsMiddleware',
 >  'djblets.log.middleware.LoggingMiddleware',
 >  'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')

 > Traceback:
 > File "/usr/local/lib/python2.6/dist-packages/Django-1.0.2_final-
 > py2.6.egg/django/core/handlers/base.py" in get_response
 >  86.                 response = callback(request, *callback_args,
 > **callback_kwargs)
 > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-py2.6.egg/
 > reviewboard/reviews/views.py" in search
 >  743.         raise e

 > Exception Type: JavaError at /r/search/
 > Exception Value: java.io.FileNotFoundException: no segments* file
 > found in org.apache.lucene.store.FSDirectory@/tmp/rbsearch_index:
 > files:

 > On Jun 26, 3:51 pm, Christian Hammond  wrote:
 > > If you set DEBUG = True in your site's conf/settings_local.py and 
 > > restart
 > > Apache, you should be able to get more debug information for the 500.

 > > Christian

 > > --
 > > Christian Hammond - chip...@chipx86.com
 > > Review Board -http://www.review-board.

Re: Enable Search? -- Reopened

2010-11-16 Thread Ashay
Opening new discussion as I couldn't reply to old one in google
groups.

This is the error I see:

[r...@host conf]# rb-site manage /var/www/reviewboard/data/search-
index index -- --full

Unable to read settings_local.py.

Please see http://www.reviewboard.org/docs/manual/dev/admin/
for help setting up Review Board.

I'm using:
RHEL 5
Linux  2.6.18-194.17.1.el5xen #1 SMP Mon Sep 20 07:20:39 EDT 2010
x86_64 x86_64 x86_64 GNU/Linux

ReviewBoard-1.5-py2.4
python-2.4.3-27.el5_5.2
python-devel-2.4.3-27.el5_5.2




On Tue, Nov 16, 2010 at 1:57 PM, Christian Hammond
 wrote:
> It's something you want to do every night. The generated crontab file
> provides an example for that.
>
> You should never need to do that ln -s. I'd be very interested in
> seeing what error or problem you were seeing.
>
> Christian
>
> --
> Christian Hammond - chip...@chipx86.com
> Review Board - http://www.reviewboard.org
> VMware, Inc. - http://www.vmware.com
>
>
>
> On Tue, Nov 16, 2010 at 1:52 PM, Ashay  wrote:
>>
>> Is the index process a a one time thing, or should it be in cron?
>>
>> Also, the "rb-site" command did not work for me until I did:
>>
>> ln -s  /var/www/reviewboard/settings_local.py /usr/lib/python2.4/site-
>> packages/ReviewBoard-1.5-py2.4.egg/reviewboard/settings_local.py
>>
>> Thank you for making ReviewBoard.
>>
>>
>> On Jun 29 2009, 1:15 pm, Christian Hammond 
>> wrote:
>>> You need to run a command periodically to update the search index, through a
>>> scheduled task. Specifically:
>>>
>>> rb-site manage /path/to/site index -- --full
>>>
>>> (Note the "--" in there. It's important.)
>>>
>>> Christian
>>>
>>> --
>>> Christian Hammond - chip...@chipx86.com
>>> Review Board -http://www.review-board.org
>>> VMware, Inc. -http://www.vmware.com
>>>
>>> On Mon, Jun 29, 2009 at 6:41 AM, grimbeaver  wrote:
>>>
>>> > Seems it's throwing an exception because the search indexes do not
>>> > exist.  What creates these files?  The folder gets created when I
>>> > enable search but there are never any files in it.  Did I miss a step?
>>>
>>> > Environment:
>>>
>>> > Request Method: GET
>>> > Request URL:http://10.10.10.97/r/search/
>>> > Django Version: 1.0.2 final
>>> > Python Version: 2.6.2
>>> > Installed Applications:
>>> > ['django.contrib.admin',
>>> >  'django.contrib.auth',
>>> >  'django.contrib.contenttypes',
>>> >  'django.contrib.markup',
>>> >  'django.contrib.sites',
>>> >  'django.contrib.sessions',
>>> >  'djblets.datagrid',
>>> >  'djblets.feedview',
>>> >  'djblets.siteconfig',
>>> >  'djblets.util',
>>> >  'djblets.webapi',
>>> >  'reviewboard.accounts',
>>> >  'reviewboard.admin',
>>> >  'reviewboard.changedescs',
>>> >  'reviewboard.diffviewer',
>>> >  'reviewboard.iphone',
>>> >  'reviewboard.reports',
>>> >  'reviewboard.reviews',
>>> >  'reviewboard.scmtools',
>>> >  'reviewboard.webapi',
>>> >  'django_evolution']
>>> > Installed Middleware:
>>> > ('django.middleware.gzip.GZipMiddleware',
>>> >  'django.middleware.common.CommonMiddleware',
>>> >  'django.middleware.doc.XViewMiddleware',
>>> >  'django.middleware.http.ConditionalGetMiddleware',
>>> >  'django.middleware.locale.LocaleMiddleware',
>>> >  'django.contrib.sessions.middleware.SessionMiddleware',
>>> >  'django.contrib.auth.middleware.AuthenticationMiddleware',
>>> >  'djblets.siteconfig.middleware.SettingsMiddleware',
>>> >  'reviewboard.admin.middleware.LoadSettingsMiddleware',
>>> >  'djblets.log.middleware.LoggingMiddleware',
>>> >  'reviewboard.admin.middleware.CheckUpdatesRequiredMiddleware')
>>>
>>> > Traceback:
>>> > File "/usr/local/lib/python2.6/dist-packages/Django-1.0.2_final-
>>> > py2.6.egg/django/core/handlers/base.py" in get_response
>>> >  86. response = callback(request, *callback_args,
>>> > **callback_kwargs)
>>> > File "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.0-py2.6.egg/
>>> > reviewboard/reviews/views.py" in search
>>> >  743. raise e
>>>
>>> > Exception Type: JavaError at /r/search/
>>> > Exception Value: java.io.FileNotFoundException: no segments* file
>>> > found in org.apache.lucene.store.FSDirectory@/tmp/rbsearch_index:
>>> > files:
>>>
>>> > On Jun 26, 3:51 pm, Christian Hammond  wrote:
>>> > > If you set DEBUG = True in your site's conf/settings_local.py and 
>>> > > restart
>>> > > Apache, you should be able to get more debug information for the 500.
>>>
>>> > > Christian
>>>
>>> > > --
>>> > > Christian Hammond - chip...@chipx86.com
>>> > > Review Board -http://www.review-board.org
>>> > > VMware, Inc. -http://www.vmware.com
>>>
>>> > > On Fri, Jun 26, 2009 at 6:58 AM, grimbeaver  wrote:
>>>
>>> > > > I removed the packages for PyLucene and JCC.  I downloaded and built
>>> > > > the source.  I can enable search now.  However when I try to use it I
>>> > > > get an Error 500 and the directory for the index gets created but is
>>> > > > empty.  Starting to think about giving up on search for now.
>>>
>>> > > > On Jun 26, 8:03 am, grimbeaver  wrote:
>>> > > > > Thanks.  That