You can run the same command line that the supplied crontab uses, and run
it as whatever user is configured to run that crontab.

Would you mind filing bugs on those two issues? They should definitely be
fixed, and I don't want to lose track.

Christian

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


On Mon, Oct 1, 2012 at 2:26 PM, J Arrizza <cppge...@gmail.com> wrote:

> Thanks!
> Any way to kick off the search index task (or whatever it is that uses
> that directory), so I check the permissions, etc are set correctly?
>
> PS there are a couple more issues, very low priority:
> - clicking on the links in the "System Information" area (lower left hand
> pane) gives me 404 errors, e.g. clicking on "indexed Search": 404 The
> requested URL /admin/settings/general/ was not found on this server.
> - In the System Settings | General tab, there is a "Server:" field. I fill
> it in, click Save, it accepts it and then it blanks the field again.
>
>
> John
>
> On Mon, Oct 1, 2012 at 2:05 PM, Christian Hammond <chip...@chipx86.com>wrote:
>
>> Probably <your-site-dir>/data/search-index
>>
>>
>> Christian
>>
>> --
>> Christian Hammond - chip...@chipx86.com
>> Review Board - http://www.reviewboard.org
>> VMware, Inc. - http://www.vmware.com
>>
>>
>> On Mon, Oct 1, 2012 at 1:55 PM, J Arrizza <cppge...@gmail.com> wrote:
>>
>>> In the General Settings tab, the Enable Search is checked and the search
>>> index directory is:
>>>
>>>
>>> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard/search-index
>>>
>>>
>>> What should it say?
>>>
>>> John
>>>
>>>
>>> On Mon, Oct 1, 2012 at 1:40 PM, Christian Hammond 
>>> <chip...@chipx86.com>wrote:
>>>
>>>> That never should have been the path in the first place. It should be
>>>> in your site's data/ directory. What does the setting for it say?
>>>>
>>>> Christian
>>>>
>>>> --
>>>> Christian Hammond - chip...@chipx86.com
>>>> Review Board - http://www.reviewboard.org
>>>> VMware, Inc. - http://www.vmware.com
>>>>
>>>>
>>>> On Mon, Oct 1, 2012 at 10:06 AM, J Arrizza <cppge...@gmail.com> wrote:
>>>>
>>>>> Received this error on Reviewboard 1.7 Beta 1  (see below for the full
>>>>> traceback):
>>>>>
>>>>>   JavaError: java.io.IOException: Cannot create directory:
>>>>> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard/search-index
>>>>>
>>>>> This was a fresh install (not an upgrade) on to an Ubuntu 10.04
>>>>> server.
>>>>>
>>>>> You can see here the parent directory is owned by root and is part of
>>>>> the staff group. So the mkdir should have worked:
>>>>>
>>>>>
>>>>> $ pwd
>>>>>
>>>>> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard
>>>>> $ ls -al
>>>>> total 152
>>>>> drwxr-sr-x 18 root staff  4096 2012-09-04 08:51 .
>>>>> drwxr-sr-x  5 root staff  4096 2012-09-04 08:51 ..
>>>>> drwxr-sr-x  5 root staff  4096 2012-09-04 08:51 accounts
>>>>> drwxr-sr-x  5 root staff  4096 2012-09-04 08:51 admin
>>>>> drwxr-sr-x  2 root staff  4096 2012-09-04 08:51 attachments
>>>>> drwxr-sr-x  3 root staff  4096 2012-09-04 08:51 changedescs
>>>>> drwxr-sr-x  3 root staff  4096 2012-09-04 08:51 cmdline
>>>>> drwxr-sr-x  5 root staff  4096 2012-09-04 08:51 diffviewer
>>>>> drwxr-sr-x  3 root staff  4096 2012-09-04 08:51 extensions
>>>>> drwxr-sr-x  2 root staff  4096 2012-09-04 08:51 hostingsvcs
>>>>> drwxr-sr-x  5 root staff  4096 2012-09-04 08:51 htdocs
>>>>> -rwxr-xr-x  1 root staff  2382 2012-09-04 08:51 __init__.py
>>>>> -rw-r--r--  1 root staff  2781 2012-09-04 08:51 __init__.pyc
>>>>> -rwxr-xr-x  1 root staff  6337 2012-09-04 08:51 manage.py
>>>>> -rw-r--r--  1 root staff  5205 2012-09-04 08:51 manage.pyc
>>>>> -rw-r--r--  1 root staff   179 2012-09-04 08:51 nose.cfg
>>>>> drwxr-sr-x  2 root staff  4096 2012-09-04 08:51 notifications
>>>>> drwxr-sr-x  7 root staff  4096 2012-09-04 08:51 reviews
>>>>> drwxr-sr-x  6 root staff  4096 2012-09-04 08:51 scmtools
>>>>> -rwxr-xr-x  1 root staff 10741 2012-09-04 08:51 settings.py
>>>>> -rw-r--r--  1 root staff  9540 2012-09-04 08:51 settings.pyc
>>>>> -rwxr-xr-x  1 root staff    61 2012-09-04 08:51 signals.py
>>>>> -rw-r--r--  1 root staff   269 2012-09-04 08:51 signals.pyc
>>>>> drwxr-sr-x  4 root staff  4096 2012-09-04 08:51 site
>>>>> drwxr-sr-x  3 root staff  4096 2012-09-04 08:51 static
>>>>> drwxr-sr-x 11 root staff  4096 2012-09-04 08:51 templates
>>>>> -rwxr-xr-x  1 root staff  4774 2012-09-04 08:51 test.py
>>>>> -rw-r--r--  1 root staff  4051 2012-09-04 08:51 test.pyc
>>>>> -rwxr-xr-x  1 root staff  3876 2012-09-04 08:51 urls.py
>>>>> -rw-r--r--  1 root staff  2860 2012-09-04 08:51 urls.pyc
>>>>> drwxr-sr-x  2 root staff  4096 2012-09-04 08:51 webapi
>>>>>
>>>>>
>>>>>
>>>>> Any suggestions on what I need to do?
>>>>>
>>>>> John
>>>>>
>>>>>
>>>>>
>>>>> ==============
>>>>>
>>>>>
>>>>> Traceback (most recent call last):
>>>>>
>>>>>   File
>>>>> "/usr/local/lib/python2.6/dist-packages/Django-1.4.1-py2.6.egg/django/core/handlers/base.py",
>>>>> line 111, in get_response
>>>>>     response = callback(request, *callback_args, **callback_kwargs)
>>>>>
>>>>>   File
>>>>> "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard/accounts/decorators.py",
>>>>> line 22, in _check
>>>>>     return view_func(*args, **kwargs)
>>>>>
>>>>>   File
>>>>> "/usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard/reviews/views.py",
>>>>> line 1409, in search
>>>>>     store = lucene.FSDirectory.getDirectory(index_file, False)
>>>>>
>>>>> JavaError: java.io.IOException: Cannot create directory:
>>>>> /usr/local/lib/python2.6/dist-packages/ReviewBoard-1.7beta1-py2.6.egg/reviewboard/search-index
>>>>>
>>>>>
>>>>> <WSGIRequest
>>>>> path:/reviews/r/search/,
>>>>> GET:<QueryDict: {u'q': [u'uicat']}>,
>>>>> POST:<QueryDict: {}>,
>>>>> COOKIES:{'collapsediffs': 'True', 'rbsessionid':
>>>>> '5224bb50ddf053d9791305af2465b972'},
>>>>> META:{'DOCUMENT_ROOT': '/fmcapps',
>>>>>  'GATEWAY_INTERFACE': 'CGI/1.1',
>>>>>  'HOME': '/var/www/reviewboard/data',
>>>>>  'HTTP_ACCEPT':
>>>>> 'text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
>>>>>  'HTTP_ACCEPT_CHARSET': 'ISO-8859-1,utf-8;q=0.7,*;q=0.3',
>>>>>  'HTTP_ACCEPT_ENCODING': 'gzip,deflate,sdch',
>>>>>  'HTTP_ACCEPT_LANGUAGE': 'en-US,en;q=0.8',
>>>>>  'HTTP_CONNECTION': 'keep-alive',
>>>>>  'HTTP_COOKIE': 'rbsessionid=5224bb50ddf053d9791305af2465b972;
>>>>> collapsediffs=True',
>>>>>  'HTTP_HOST': 'cm5',
>>>>>  'HTTP_REFERER': 'http://cm5/reviews/r/',
>>>>>  'HTTP_USER_AGENT': 'Mozilla/5.0 (Windows NT 6.1; WOW64)
>>>>> AppleWebKit/537.4 (KHTML, like Gecko) Chrome/22.0.1229.79 Safari/537.4',
>>>>>  'PATH': '/usr/local/bin:/usr/bin:/bin',
>>>>>  'PATH_INFO': u'/reviews/r/search/',
>>>>>  'PATH_TRANSLATED':
>>>>> '/fmcapps/reviewboard/htdocs/reviewboard.wsgi/reviews/r/search/',
>>>>>  'QUERY_STRING': 'q=uicat',
>>>>>  'REMOTE_ADDR': '192.168.169.85',
>>>>>  'REMOTE_PORT': '54880',
>>>>>  'REQUEST_METHOD': 'GET',
>>>>>  'REQUEST_URI': '/reviews/r/search/?q=uicat',
>>>>>  'SCRIPT_FILENAME': '/fmcapps/reviewboard/htdocs/reviewboard.wsgi',
>>>>>  'SCRIPT_NAME': u'',
>>>>>  'SERVER_ADDR': '192.168.171.238',
>>>>>  'SERVER_ADMIN': 'webmaster@localhost',
>>>>>  'SERVER_NAME': 'cm5',
>>>>>  'SERVER_PORT': '80',
>>>>>  'SERVER_PROTOCOL': 'HTTP/1.1',
>>>>>  'SERVER_SIGNATURE': '<address>Apache/2.2.14 (Ubuntu) Server at cm5
>>>>> Port 80</address>\n',
>>>>>  'SERVER_SOFTWARE': 'Apache/2.2.14 (Ubuntu)',
>>>>>  'mod_wsgi.application_group': 'cm5|',
>>>>>  'mod_wsgi.callable_object': 'application',
>>>>>  'mod_wsgi.listener_host': '',
>>>>>  'mod_wsgi.listener_port': '80',
>>>>>  'mod_wsgi.process_group': '',
>>>>>  'mod_wsgi.reload_mechanism': '0',
>>>>>  'mod_wsgi.script_reloading': '1',
>>>>>  'mod_wsgi.version': (2, 8),
>>>>>  'wsgi.errors': <mod_wsgi.Log object at 0x7fc52370f5a0>,
>>>>>  'wsgi.file_wrapper': <built-in method file_wrapper of
>>>>> mod_wsgi.Adapter object at 0x7fc525223be8>,
>>>>>  'wsgi.input': <mod_wsgi.Input object at 0x7fc5237335b0>,
>>>>>  'wsgi.multiprocess': True,
>>>>>  'wsgi.multithread': False,
>>>>>  'wsgi.run_once': False,
>>>>>  'wsgi.url_scheme': 'http',
>>>>>  'wsgi.version': (1, 0)}>
>>>>>
>>>>> --
>>>>> Want to help the Review Board project? Donate today at
>>>>> http://www.reviewboard.org/donate/
>>>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>>>> -~----------~----~----~----~------~----~------~--~---
>>>>> To unsubscribe from this group, send email to
>>>>> reviewboard+unsubscr...@googlegroups.com
>>>>> For more options, visit this group at
>>>>> http://groups.google.com/group/reviewboard?hl=en
>>>>
>>>>
>>>>  --
>>>> Want to help the Review Board project? Donate today at
>>>> http://www.reviewboard.org/donate/
>>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>>> -~----------~----~----~----~------~----~------~--~---
>>>> To unsubscribe from this group, send email to
>>>> reviewboard+unsubscr...@googlegroups.com
>>>> For more options, visit this group at
>>>> http://groups.google.com/group/reviewboard?hl=en
>>>
>>>
>>>  --
>>> Want to help the Review Board project? Donate today at
>>> http://www.reviewboard.org/donate/
>>> Happy user? Let us know at http://www.reviewboard.org/users/
>>> -~----------~----~----~----~------~----~------~--~---
>>> To unsubscribe from this group, send email to
>>> reviewboard+unsubscr...@googlegroups.com
>>> For more options, visit this group at
>>> http://groups.google.com/group/reviewboard?hl=en
>>>
>>
>>  --
>> Want to help the Review Board project? Donate today at
>> http://www.reviewboard.org/donate/
>> Happy user? Let us know at http://www.reviewboard.org/users/
>> -~----------~----~----~----~------~----~------~--~---
>> To unsubscribe from this group, send email to
>> reviewboard+unsubscr...@googlegroups.com
>> For more options, visit this group at
>> http://groups.google.com/group/reviewboard?hl=en
>>
>
>  --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~----------~----~----~----~------~----~------~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
>

-- 
Want to help the Review Board project? Donate today at 
http://www.reviewboard.org/donate/
Happy user? Let us know at http://www.reviewboard.org/users/
-~----------~----~----~----~------~----~------~--~---
To unsubscribe from this group, send email to 
reviewboard+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en

Reply via email to