Re: Liinux noob: Trouble with python-docutils dependency while installing ReviewBoard

2013-12-31 Thread Gavin Rehkemper
Stephen,

I'm having the same problem as Mark, but that URL that you posted (
https://access.redhat.com/site/documentation/en-US/Red_Hat_Subscription_Management/1.0/html/Subscription_Management_Guide/entitlements-and-yum.html
 ) 
no longer works (404) - is there an alternate site that describes how to 
enable the Optional repository? (note that that link is also dead on the 
EPEL page http://fedoraproject.org/wiki/EPEL (light blue box halfway down 
the page))

Thanks,
Gavin

On Monday, September 23, 2013 6:51:31 AM UTC-5, Stephen Gallagher wrote:

 On 09/11/2013 01:31 PM, Matthew Woehlke wrote: 
  On 2013-09-11 11:23, Mark Addleman wrote: 
  I'm trying to install ReviewBoard on RHEL.  I have installed the EPEL 
  repository but yum install ReviewBoard returns 
  Error: Package: ReviewBoard-1.7.13-2.el6.noarch (epel) 
  Requires: python-docutils 
You could try using --skip-broken to work around the problem 
You could try running: rpm -Va --nofiles --nodigest 
  
  I'm a little loathe to install the python-docutils rpm directly since 
  I'm a 
  total Linux noob and I can't find one that's specific to RHEL. 
  
  Any help would be appreciated. 
  
  Huh. According to 
  http://koji.fedoraproject.org/koji/packageinfo?packageID=3581, it never 
  got built for EL6, even though it is built for every current version of 
  Fedora and for EL5. 
  
  If you're stuck, you could try directly installing the EL5 version... or 
  if you're *really* desparate, build your own from either the EL5 spec or 
  whichever Fedora spec most closely matches EL6 (I forget offhand what 
  that is). 
  
  I would definitely file a bug per Stephen's recommendation. 
  

 Sorry it took so long to get back to this. It turns out that the reason 
 python-docutils isn't in EPEL is because it's actually included in the 
 standard RHEL subscription (though not in the standard repository). You 
 need to enable the Optional repository as described here: 


 https://access.redhat.com/site/documentation/en-US/Red_Hat_Subscription_Management/1.0/html/Subscription_Management_Guide/entitlements-and-yum.html
  

 Once that's available, ReviewBoard should install fine. 


-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for Review Board hosting at RBCommons: https://rbcommons.com/
---
Happy user? Let us know at http://www.reviewboard.org/users/
--- 
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.


Re: Authentication problems with 1.5 api via perl.

2013-02-26 Thread Gavin Main
I didn't realise you were trying to post a review. Does post-review 
(bundled with RBTools) not help you? If not, why?


On Tuesday, 26 February 2013 16:45:43 UTC+8, cmuser wrote:

 Thanks. I  will try  follow it. 
 What i did is , tried writing the script(mentioned above) to post a review 
 request which is failing of xyz reason. So thought of using HTTP::Recorder 
 to get the script of posting a review request. But again facing issues in 
 that.

 curl command which worked once -
 curl   -k -H Basic YWRtaW46YWRtaW4= -X POST  -d {\repository_id\: 
 cvsrepo,\repository_path\::pserver:kapila:kapila123@svn:/opt/cvsroot,\username\:kapila,\password\:kapila123,\submit-as\:kapila}
   
 http://codereview.xyz.com/r/new

 Would be great if you can share your script to give quick  better 
 understanding.

 On Tuesday, February 26, 2013 2:08:54 PM UTC+5:30, Gavin Main wrote:

 After a bit of fiddling and research I found that the LWP and 
 HTTP::Cookies modules worked for me. Have a look at the documentation on 
 CPAN

 http://search.cpan.org/~gaas/HTTP-Cookies-6.01/lib/HTTP/Cookies.pm

 This link was also very helful:
 http://lwp.interglacial.com/ch11_01.htm


 Basically I wanted my post-commit hook to close out an associated review 
 on Reviewboard. So I wrote two subroutines to do that. The first generated 
 the cookie:
 - create the cookie file
 - issue the get request with HTTP::Request
 - authenticate with authorization_basic
 - extract the cookie
 - return hash

 Then I passed the cookie hash to another subroutine which issued my PUT 
 request with the information inside the cookie hash.

 Cheers,
 Gavin


 On Monday, 25 February 2013 21:25:13 UTC+8, cmuser wrote:

 i have tried to built like this,but still not working

 #!/usr/local/bin/perl

 use LWP::UserAgent;
 use MIME::Base64;

 $url=http://codereview.xyz.com/api/review-requests/;;
 $newurl=http://codereview.xyz.com/r/new/;;
 $user=admin;
 $pwd=admin;

 $text=$user:$pwd;
 $text = encode_base64($text);
 #print Encoded text: $text\n;
 %param =(
 repository_id =cvsrepo,
 repository_path =:pserver:user:pwd\@svn:/opt/cvsroot,
 username = admin,
 password = admin,
 submit-as = username,
 );
my $ua = LWP::UserAgent-new;
 $ua-timeout(TIMEOUT);
 $ua-protocols_allowed(['http', 'https']);
 $ua-default_header('Basic' = $text);
 $ua-credentials($newurl,$user,$pwd);

 $resp = $ua-get($url);
 print($resp-status_line(), \n);

 print(Add handler:\n);
 $ua-add_handler( response_header = sub { print HANDLER\n; }, 
 %param);
 print $ua-handlers('response_header', $resp).\n;
 push @{ $ua-requests_redirectable }, 'POST';
 print $ua-show_progress.\n;
 my $response = $ua-post($newurl,%param);

  if ($response-is_success) {
  print $response-decoded_content;
  }
  else {
  die $response-status_line;
  }




 On Friday, August 10, 2012 2:56:12 PM UTC+5:30, Gavin Main wrote:

 Hi Jeff, did you ever get this resolved? I am facing a similar issue.

 Christian, I am loving Reviewboard. Thank You!!!

 Cheers,
 Gav

 On Friday, 22 October 2010 02:06:16 UTC+8, Jeff wrote:

 I'm trying to write an svn pre-commit hook against a totally new 
 installation of reviewboard 1.5 (upgraded from the previous version, 
 but never really used). 

 As far as I can tell from the documentation, the json login page isn't 
 used anymore, and I just use basic HTTP authentication. 

 My perl code looks like this: 

 #!/usr/bin/perl 
 use LWP::UserAgent; 

 my $ua = LWP::UserAgent-new; 
 #$ua-credentials($rbhost:80,Web API,'user' = 'password'); 

 my $req = HTTP::Request-new(GET = http://reviewboard.local.com/ 
 rboard/api/review-requests/93/last-update/http://reviewboard.local.com/rboard/api/review-requests/93/last-update/);
  

 $req-authorization_basic('user', 'password'); 

 my $res = $ua-request($req); 
 print $res-as_string; 


 I've tried both the useragent credential and the request- 
 authorization_basic. 

 The result I get back is: 


 HTTP/1.1 401 UNAUTHORIZED 
 Cache-Control: max-age=0 
 Connection: close 
 Date: Thu, 21 Oct 2010 17:53:43 GMT 
 ETag: 3818aa0b0928af747aebc006814783fe 
 Server: Apache/2.2.3 (CentOS) 
 Vary: Cookie,Accept-Language 
 WWW-Authenticate: Basic realm=Web API 
 Content-Language: en-us 
 Content-Length: 70 
 Content-Type: application/json 
 Expires: Thu, 21 Oct 2010 17:53:43 GMT 
 Last-Modified: Thu, 21 Oct 2010 17:53:43 GMT 
 Client-Date: Thu, 21 Oct 2010 17:53:43 GMT 
 Client-Peer: 10.20.30.183:80 
 Client-Response-Num: 1 

 {stat: fail, err: {msg: You are not logged in, code: 103}} 



 If I try and hit the same page in an web browser after authenticating, 
 I get a 500 error and an email post at the end of this message. 

 What am I doing wrong? Is there any example perl code that hit's the 
 new API?  I assume the existing stuff that I'm finding on the net 
 won't work anymore. 


 Traceback (most recent call last): 

   File /usr/local/reviewboard/python

Re: There are only two Authentication method available.

2013-01-15 Thread Gavin Main
I am facing the same issue. I unfortunately don't have the luxury of using 
easy_install as this requires a direct connection to the interwebs 
(something we can't allow). I have packaged up every ReviewBoard 1.6.15 
dependency by hand. 'rb-site' upgrade hinted that I needed the following... 
Djblets (0.6.27), Django (1.3.4) and Feedparser (5.1.2), but when I start 
Reviewboard after successfully running 'rb-site upgrade /path/to/site', I 
lose my LDAP settings. 'DEBUG = True' doesn't give much away.

Any help would be greatly appreciated. Oh and while I'm here... we love 
ReviewBoard. 

Cheers!

On Wednesday, 10 October 2012 13:05:36 UTC+8, shravanthi s wrote:

 I am facing a similar issue. Actually I had successfully configured LDAP 
 and it was working fine (I am using version 1.6.5). However I had an issue 
 with uploading jpeg images so I uninstalled PIL and did some modifications 
 to setup.py (JPEG_ROOT = /usr/lib) and reinstalled PIL along with 
 libjpeg-devel. I was able to upload jpeg images.

  However a new issue popped up, my LDAP configuration was gone and when i 
 checked Authentication settings, there was no LDAP option at all! Only two 
 authentication methods were available. Not sure what went wrong. Would an 
 upgrade of Review Board resolve the issue? Appreciate your help..

 On Tuesday, 2 October 2012 02:15:14 UTC+5:30, Christian Hammond wrote:

 Running 'easy_install ReviewBoard' won't actually do much of anything. 
 You'd need to pass -U to do an upgrade.

 Christian

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


 On Sat, Sep 29, 2012 at 12:32 AM, 周培青 zpq...@gmail.com wrote:

 Hi Christian,

 I remember I used easy_install and I tried running easy_install 
 ReviewBoard command again and got below information,
  easy_install ReviewBoard
 Searching for ReviewBoard
 Best match: ReviewBoard 1.6.11
 Processing ReviewBoard-1.6.11-py2.6.egg
 ReviewBoard 1.6.11 is already the active version in easy-install.pth
 Installing rb-site script to /usr/bin
 Installing rbssh script to /usr/bin

 Using /usr/lib/python2.6/site-packages/ReviewBoard-1.6.11-py2.6.egg
 Processing dependencies for ReviewBoard
 Finished processing dependencies for ReviewBoard

 Any ideas...

 在 2012年9月22日星期六UTC+8上午7时12分04秒,Christian Hammond写道:

 How did you install Review Board? It looks like the registrations are 
 missing, which indicates you may have used pip or something, instead of 
 easy_install.

 Christian

 -- 
 Christian Hammond - chi...@chipx86.com

 Review Board - http://www.reviewboard.org
 VMware, Inc. - http://www.vmware.com


 On Fri, Sep 21, 2012 at 1:37 AM, 周培青 zpq...@gmail.com wrote:

  Hi all,

 I installed ReviewBoard 1.6.11 on CentOS and I was trying to enable 
 LDAP as authentication method, but I cannot even select LDAP from the 
 Authentication Method dropdown in Authentication -- Authentication 
 Settings tab, see the attached screenshot.

 What's going on...

 I would be very appreciate for your help.

  -- 
 Want to help the Review Board project? Donate today at 
 http://www.reviewboard.org/**donate/http://www.reviewboard.org/donate/
 Happy user? Let us know at 
 http://www.reviewboard.org/**users/http://www.reviewboard.org/users/
 -~--~~~~--**~~--~--~---
 To unsubscribe from this group, send email to reviewboard...@**
 googlegroups.com

 For more options, visit this group at http://groups.google.com/**
 group/reviewboard?hl=enhttp://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...@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




RE: {EnjoyFunWOrld}== HOLLYWOOD Actress boobs collections...

2009-06-11 Thread Gavin

You can turn on moderation for new members.

Sent from my Nokia phone
-Original Message-
From: Christian Hammond
Sent:  06/11/2009 2:59:44 PM
Subject:  Re: {EnjoyFunWOrld}== HOLLYWOOD Actress boobs collections...

Hi Roshan,

Yeah, it's definitely annoying. This is, sadly, not under our control, but
it's happening to a LOT of groups hosted on googlegroups.com, so I'm sure
they're looking into it.

As it is, they have to pass a captcha to get an account. Even if we turned
on admin-required acceptance of new users, we'd have no way of knowing if
it's a bot or not.

Christian

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


On Thu, Jun 11, 2009 at 9:34 AM, roshan pius roshanpiustho...@gmail.comwrote:

 Hi guys,

 Am i the only one or has everyone been getting a lot of spam these days
 through the reviewboard group ?
 Is there any way we can block these spam users from joining the group? We
 should have a more thorough user verfication before letting him/her join the
 group.

 Thanks,
 Roshan Pius

 On Thu, Jun 11, 2009 at 4:19 PM, sweety lustylucy...@gmail.com wrote:


 {EnjoyFunWOrld}== HOLLYWOOD Actress boobs collections...
 {EnjoyFunWOrld}== HOLLYWOOD Actress boobs collections...

  Login to downlod more FREE videos, FREE, FREE,

 http://www.enjoyfunworld.com
 http://www.enjoyfunworld.com
 http://www.enjoyfunworld.com



 





--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: LDAP Configuration

2009-04-23 Thread Gavin M. Roy

Perhaps it would be better to create a mapping config for this, with
the defaults being what they are, as to not break pre-existing LDAP
implementations?

Gavin

On Thu, Apr 23, 2009 at 7:48 PM, Christian Hammond chip...@chipx86.com wrote:
 Looks like your LDAP server doesn't support the givenName field, which our
 code requires. What LDAP server are you using?

 If you feel at all comfortable with Python and happen to know what field
 should contain the first name of the user, you can look at modifying
 reviewboard/accounts/backends.py.

 Can you please file a bug on this with the LDAP server info?

 Christian

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


 On Thu, Apr 23, 2009 at 6:44 AM, Noam Bunder gen...@gmail.com wrote:

 I enabled logging and this is what I see:

 2009-04-23 06:40:22,467 - WARNING - An error while LDAP-authenticating:
 KeyError('givenName',)

 I am using the following settings:

 LDAP Server: ldap://myldapserver.com:389
 Base DN: cn=users,dc=mycompany,dc=com
 E-Mail Domain: mycompany.com
 E-Mail LDAP Attribute: mail
 User Mask: (uid=%s)

 Any ideas?
 Thanks

 On Wed, Apr 22, 2009 at 4:37 PM, Christian Hammond chip...@chipx86.com
 wrote:

 Enable logging and check the resulting error logs after you authenticate.
 There may be more information there, which will at least tell us which error
 you hit.

 Christian

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


 On Wed, Apr 22, 2009 at 1:21 PM, Noam gen...@gmail.com wrote:

 I set up the LDAP settings that I use with all of the other open
 source tools that we are using here at the company I work for, however
 the authentication does not seem to be working.  Any advice on how to
 figure out whats wrong?
 Thanks.









 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---



Re: Problem with Subsequent Diffs

2009-03-16 Thread Gavin M. Roy

Thanks, another issue being reported is:

The issue Wyatt and I were just looking at appears to be when you have
a new file, diff'ed after an svn add, then make changes and update a
new diff with the full add (including your changes) again.  What we're
seeing is that instead of looking for the differences between diff-r1
and diff-r2, it combines the two, so you have the full contents of
diff-r1, followed by the full contents of diff-r2 (looks like you have
the entire file duplicated in one file).  Not sure that's an accurate
description of what's going on, but that's what it looks like.

On Mon, Mar 16, 2009 at 3:01 PM, Christian Hammond chip...@chipx86.com wrote:
 This is fixed in the nightlies. There's still an issue with interdiffs, but
 they work, it just sometimes shows errors for the files not in the diff.

 You should be able to upgrade to the nightly without problems. I'm look to
 push out beta 1 soon, but I have house guests this week and won't be getting
 to it until next week at the earliest.

 Christian

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


 On Mon, Mar 16, 2009 at 10:09 AM, Gavin M. Roy g...@myyearbook.com wrote:

 Yes, sorry, this more accurately describes the problem.  If the
 exception wasn't clear it's 1.0a4.

 On Mon, Mar 16, 2009 at 12:26 PM, housemaister housemais...@gmail.com
 wrote:
 
  Hi,
 
  I get the same error when trying to view the Changes between two
  uploaded revisions; however viewing the diff of single revision
  against the repository works fine.
  But I'm also clueless why this happens.
  BTW, repository is subversion.
 
  Thanks,
  Stefan.
 
  On Mon, Mar 16, 2009 at 3:37 PM, Gavin M. Roy g...@myyearbook.com
  wrote:
 
  We're running into issues in the case of a review where once the first
  diff is done, the developer is attaching the revised diff for review,
  but we're getting the following error:
 
  Traceback (most recent call last):
   File
  /usr/local/lib/python2.6/site-packages/ReviewBoard-1.0alpha4-py2.6.egg/reviewboard/diffviewer/views.py,
  line 145, in view_diff
     interdiffset, highlighting, True)[0]
  IndexError: list index out of range
 
  Any suggestions on tracking this down?
 
  Thanks,
 
  Gavin
 
  
 
 
  
 




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---



Image Upload Error

2009-02-23 Thread Gavin M. Roy
Running Reviewboard 1.0a4Python 2.6
Imaging (PIL) 1.1.6

Reviewboard is running as a SCGI process under Cherokee.

Uploading an image gives me:

Upload a valid image. The file you uploaded was either not an image or a
corrupted image.

Any help or suggestions in tracking it down would be appreciated.

Thanks,

Gavin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
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
-~--~~~~--~~--~--~---



Trouble getting Lucene working

2008-12-03 Thread Gavin M. Roy
I've compiled and installed pylucene, but when I try and get it working in
reviewboard, I'm having issues based upon my assumptions of how to use
rb-site in place of manage.py:

Finally, run ./manage.py index --full. This should give you a progress
indicator, and may take some time depending on the size of your database.

[EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index --full
Usage: rb-site command [options] path

rb-site: error: no such option: --full
[EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index

[!] Unable to execute the manager command index: No module named
   reviews.models

To prove that lucene will import:

[EMAIL PROTECTED] conf]# python
Python 2.6 (r26:66714, Dec  1 2008, 22:54:24)
[GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
Type help, copyright, credits or license for more information.
 import lucene



I do however have it enabled in both the settings_local.py file and in the
web admin settings:

ENABLE_SEARCH = True
SEARCH_INDEX = '/var/www/reviewboard/search'

Any suggestions?
TIA,

Gavin

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Trouble getting Lucene working

2008-12-03 Thread Gavin M. Roy
Thanks!  I imagine that would have worked if I wasn't getting the other
error ;-)

On Wed, Dec 3, 2008 at 10:04 PM, Christian Hammond [EMAIL PROTECTED]wrote:

 For rb-site manage commands, you need to put a -- before any parameters
 going to manage. So in your case:

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

 If you look in the conf/ directory, you'll see a crontab entry for doing
 indexing, and it'll call index correctly.

 I'm not sure, though, why just doing a manage /var/www/reviewboard/ index
 is failing. That certainly shouldn't be happening. I'll look into that.

 I'm busy with finishing up a large change for Review Board, but after that
 I'm planning to go through and improve the docs in these places so it
 references the right commands.

 Christian

 --
 Christian Hammond - [EMAIL PROTECTED]
 VMware, Inc.



 On Wed, Dec 3, 2008 at 6:50 PM, Gavin M. Roy [EMAIL PROTECTED] wrote:

 I've compiled and installed pylucene, but when I try and get it working in
 reviewboard, I'm having issues based upon my assumptions of how to use
 rb-site in place of manage.py:

 Finally, run ./manage.py index --full. This should give you a progress
 indicator, and may take some time depending on the size of your database.

 [EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index --full
 Usage: rb-site command [options] path

 rb-site: error: no such option: --full
 [EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index

 [!] Unable to execute the manager command index: No module named
reviews.models

 To prove that lucene will import:

 [EMAIL PROTECTED] conf]# python
 Python 2.6 (r26:66714, Dec  1 2008, 22:54:24)
 [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
 Type help, copyright, credits or license for more information.
  import lucene
 


 I do however have it enabled in both the settings_local.py file and in the
 web admin settings:

 ENABLE_SEARCH = True
 SEARCH_INDEX = '/var/www/reviewboard/search'

 Any suggestions?
 TIA,

 Gavin




 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Trouble getting Lucene working

2008-12-03 Thread Gavin M. Roy
Thanks, that worked.  I appreciate the quick response!

On Wed, Dec 3, 2008 at 10:31 PM, Christian Hammond [EMAIL PROTECTED]wrote:

 This is fixed now in SVN. It'll be available in tonight's nightly build,
 but a quick workaround would be to edit the
 reviewboard/reviews/management/commands/index.py file in the most recent
 installed ReviewBoard egg directory and replace the line near the top that
 says:

 from reviews.models import ReviewRequest

 with:

 from reviewboard.reviews.models import ReviewRequest


 Christian

 --
 Christian Hammond - [EMAIL PROTECTED]
 VMware, Inc.


 On Wed, Dec 3, 2008 at 7:09 PM, Gavin M. Roy [EMAIL PROTECTED] wrote:

 Thanks!  I imagine that would have worked if I wasn't getting the other
 error ;-)


 On Wed, Dec 3, 2008 at 10:04 PM, Christian Hammond [EMAIL PROTECTED]wrote:

 For rb-site manage commands, you need to put a -- before any parameters
 going to manage. So in your case:

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

 If you look in the conf/ directory, you'll see a crontab entry for doing
 indexing, and it'll call index correctly.

 I'm not sure, though, why just doing a manage /var/www/reviewboard/
 index is failing. That certainly shouldn't be happening. I'll look into
 that.

 I'm busy with finishing up a large change for Review Board, but after
 that I'm planning to go through and improve the docs in these places so it
 references the right commands.

 Christian

 --
 Christian Hammond - [EMAIL PROTECTED]
 VMware, Inc.



 On Wed, Dec 3, 2008 at 6:50 PM, Gavin M. Roy [EMAIL PROTECTED] wrote:

 I've compiled and installed pylucene, but when I try and get it working
 in reviewboard, I'm having issues based upon my assumptions of how to use
 rb-site in place of manage.py:

 Finally, run ./manage.py index --full. This should give you a progress
 indicator, and may take some time depending on the size of your database.

 [EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index --full
 Usage: rb-site command [options] path

 rb-site: error: no such option: --full
 [EMAIL PROTECTED] conf]# rb-site manage /var/www/reviewboard/ index

 [!] Unable to execute the manager command index: No module named
reviews.models

 To prove that lucene will import:

 [EMAIL PROTECTED] conf]# python
 Python 2.6 (r26:66714, Dec  1 2008, 22:54:24)
 [GCC 4.1.2 20071124 (Red Hat 4.1.2-42)] on linux2
 Type help, copyright, credits or license for more information.
  import lucene
 


 I do however have it enabled in both the settings_local.py file and in
 the web admin settings:

 ENABLE_SEARCH = True
 SEARCH_INDEX = '/var/www/reviewboard/search'

 Any suggestions?
 TIA,

 Gavin










 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Installing Reviewboard - lighttpd - 500 Internal Server Error

2008-12-02 Thread Gavin M. Roy

I am running into this as well and have not been able to locate the
reviewboard.fcgi file.  Did you install this using easy_install?  If
so that'd be a common element between our issues.

Gavin

On Dec 2, 2:45 am, lapluviosilla [EMAIL PROTECTED] wrote:
 I've been trying to install ReviewBoard for a while now without any
 success. I have a ubuntu 8.10 server running on VMWare Server which
 hosts a lighttpd server. On top of my plan to get reviewboard up and
 running this lighttpd server is also running mediawiki. I've tried
 many different things and I always get the same result. The error log
 shows these two errors every time I try to access the site at http://
 192.168.4.8/review/.

 (mod_fastcgi.c.2802) establishing connection failed: Connection
 refused socket: tcp:127.0.0.1:3033
 (mod_fastcgi.c.2743) fcgi-server re-enabled: tcp:127.0.0.7:3033

  A few steps I took:

 1) I tried setting FORCE_SCRIPT_NAME to / and /review/.
 2) I re-installed todays nightly build for reviewboard because of some
 of the issues with settings_local.py. This got me from a 404 to a 500
 error.
 3) set directory permissions and ownership for /home/reviewboard/
 epmain (reviewboard site install) to www-data:www-data

 Here's the relevant section of my lighttpd.conf. The subfolder for
 reviewboard is /review/

 fastcgi.server = (
                    .php = ((
                      bin-path = /usr/bin/php-cgi,
                      socket = /tmp/php-fastcgi.socket
                    )),
                    /review/reviewboard.fcgi = (
                      main = (
                        host = 127.0.0.1,
                        port = 3033,
                        check-local = disable
                      )
                    ),
 )

 ## WIKIMEDIA INSTALL
 $HTTP[url] =~ ^/w/ {
   server.document-root = /home/mediawiki/
   alias.url = ( /w/ = /home/mediawiki/ )

 }

 ## REVIEWBOARD
 $HTTP[url] =~ ^/review/ {
   server.document-root = /home/reviewboard/epmain/htdocs/
   server.errorlog = /home/reviewboard/epmain/logs/lighttpd-error.log

   alias.url = (
       /review/media = /home/reviewboard/epmain/htdocs/media,
       /review/errordocs = /home/reviewboard/epmain/htdocs/
 errordocs,
   )

 }

 $HTTP[url] =~ ^/review/(css|images|scripts)/ {
   expire.url = (  = access 1 hours )

 }

 url.rewrite-once = (
     ^/wiki/([^?]*)(?:\?(.*))? = /w/index.php?title=$1$1,
     ^/wiki = /w/index.php,
     ^(/review/media/.*)$ = $1,
     ^(/review/errordocs.*)$ = $1,
     ^(/review/.*)$ = /review/reviewboard.fcgi$1
 )

 Any help would be greatly appreciated
 Thanks,
 Paul Strong
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Installing Reviewboard - lighttpd - 500 Internal Server Error

2008-12-02 Thread Gavin M. Roy
Are you missing reviewboard.fcgi as well?

On Tue, Dec 2, 2008 at 3:22 PM, lapluviosilla [EMAIL PROTECTED]wrote:


 Yes. I followed the install process described in the Getting Started
 Wiki (http://code.google.com/p/reviewboard/wiki/GettingStarted). I've
 also tried following the Installing_on_Ubuntu_Gutsy  and
 Host_Requirements wikis.

 On Dec 2, 2:00 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
  I am running into this as well and have not been able to locate the
  reviewboard.fcgi file.  Did you install this using easy_install?  If
  so that'd be a common element between our issues.
 
  Gavin
 
  On Dec 2, 2:45 am, lapluviosilla [EMAIL PROTECTED] wrote:
 
   I've been trying to install ReviewBoard for a while now without any
   success. I have a ubuntu 8.10 server running on VMWare Server which
   hosts a lighttpd server. On top of my plan to get reviewboard up and
   running this lighttpd server is also running mediawiki. I've tried
   many different things and I always get the same result. The error log
   shows these two errors every time I try to access the site at http://
   192.168.4.8/review/.
 
   (mod_fastcgi.c.2802) establishing connection failed: Connection
   refused socket: tcp:127.0.0.1:3033
   (mod_fastcgi.c.2743) fcgi-server re-enabled: tcp:127.0.0.7:3033
 
A few steps I took:
 
   1) I tried setting FORCE_SCRIPT_NAME to / and /review/.
   2) I re-installed todays nightly build for reviewboard because of some
   of the issues with settings_local.py. This got me from a 404 to a 500
   error.
   3) set directory permissions and ownership for /home/reviewboard/
   epmain (reviewboard site install) to www-data:www-data
 
   Here's the relevant section of my lighttpd.conf. The subfolder for
   reviewboard is /review/
 
   fastcgi.server = (
  .php = ((
bin-path = /usr/bin/php-cgi,
socket = /tmp/php-fastcgi.socket
  )),
  /review/reviewboard.fcgi = (
main = (
  host = 127.0.0.1,
  port = 3033,
  check-local = disable
)
  ),
   )
 
   ## WIKIMEDIA INSTALL
   $HTTP[url] =~ ^/w/ {
 server.document-root = /home/mediawiki/
 alias.url = ( /w/ = /home/mediawiki/ )
 
   }
 
   ## REVIEWBOARD
   $HTTP[url] =~ ^/review/ {
 server.document-root = /home/reviewboard/epmain/htdocs/
 server.errorlog = /home/reviewboard/epmain/logs/lighttpd-error.log
 
 alias.url = (
 /review/media = /home/reviewboard/epmain/htdocs/media,
 /review/errordocs = /home/reviewboard/epmain/htdocs/
   errordocs,
 )
 
   }
 
   $HTTP[url] =~ ^/review/(css|images|scripts)/ {
 expire.url = (  = access 1 hours )
 
   }
 
   url.rewrite-once = (
   ^/wiki/([^?]*)(?:\?(.*))? = /w/index.php?title=$1$1,
   ^/wiki = /w/index.php,
   ^(/review/media/.*)$ = $1,
   ^(/review/errordocs.*)$ = $1,
   ^(/review/.*)$ = /review/reviewboard.fcgi$1
   )
 
   Any help would be greatly appreciated
   Thanks,
   Paul Strong
 


--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Installing Reviewboard - lighttpd - 500 Internal Server Error

2008-12-02 Thread Gavin M. Roy

What about:

 rb-site manage /home/reviewboard/epmain runfcgi method=threaded
host=127.0.0.1 port=3033 protocol=fcgi

On Tue, Dec 2, 2008 at 3:33 PM, lapluviosilla [EMAIL PROTECTED] wrote:

 Did a complete hard drive search and there is no reviewboard.fcgi to
 be found. The strange thing I just found out is if I run the internal
 django manage server reviewboard works just fine. I use the following
 command to run it sudo rb-site manage /home/reviewboard/epmain
 runserver -- 0.0.0.0:8080. Unfortunately using the internal django
 server is not an option for me.

 On Dec 2, 2:23 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
  Are you missing reviewboard.fcgi as well?
 
  On Tue, Dec 2, 2008 at 3:22 PM, lapluviosilla [EMAIL PROTECTED]wrote:
 
 
 
   Yes. I followed the install process described in the Getting Started
   Wiki (http://code.google.com/p/reviewboard/wiki/GettingStarted). I've
   also tried following the Installing_on_Ubuntu_Gutsy  and
   Host_Requirements wikis.
 
   On Dec 2, 2:00 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
I am running into this as well and have not been able to locate the
reviewboard.fcgi file.  Did you install this using easy_install?  If
so that'd be a common element between our issues.
 
Gavin
 
On Dec 2, 2:45 am, lapluviosilla [EMAIL PROTECTED] wrote:
 
 I've been trying to install ReviewBoard for a while now without any
 success. I have a ubuntu 8.10 server running on VMWare Server which
 hosts a lighttpd server. On top of my plan to get reviewboard up and
 running this lighttpd server is also running mediawiki. I've tried
 many different things and I always get the same result. The error log
 shows these two errors every time I try to access the site at http://
 192.168.4.8/review/.
 
 (mod_fastcgi.c.2802) establishing connection failed: Connection
 refused socket: tcp:127.0.0.1:3033
 (mod_fastcgi.c.2743) fcgi-server re-enabled: tcp:127.0.0.7:3033
 
  A few steps I took:
 
 1) I tried setting FORCE_SCRIPT_NAME to / and /review/.
 2) I re-installed todays nightly build for reviewboard because of some
 of the issues with settings_local.py. This got me from a 404 to a 500
 error.
 3) set directory permissions and ownership for /home/reviewboard/
 epmain (reviewboard site install) to www-data:www-data
 
 Here's the relevant section of my lighttpd.conf. The subfolder for
 reviewboard is /review/
 
 fastcgi.server = (
.php = ((
  bin-path = /usr/bin/php-cgi,
  socket = /tmp/php-fastcgi.socket
)),
/review/reviewboard.fcgi = (
  main = (
host = 127.0.0.1,
port = 3033,
check-local = disable
  )
),
 )
 
 ## WIKIMEDIA INSTALL
 $HTTP[url] =~ ^/w/ {
   server.document-root = /home/mediawiki/
   alias.url = ( /w/ = /home/mediawiki/ )
 
 }
 
 ## REVIEWBOARD
 $HTTP[url] =~ ^/review/ {
   server.document-root = /home/reviewboard/epmain/htdocs/
   server.errorlog = /home/reviewboard/epmain/logs/lighttpd-error.log
 
   alias.url = (
   /review/media = /home/reviewboard/epmain/htdocs/media,
   /review/errordocs = /home/reviewboard/epmain/htdocs/
 errordocs,
   )
 
 }
 
 $HTTP[url] =~ ^/review/(css|images|scripts)/ {
   expire.url = (  = access 1 hours )
 
 }
 
 url.rewrite-once = (
 ^/wiki/([^?]*)(?:\?(.*))? = /w/index.php?title=$1$1,
 ^/wiki = /w/index.php,
 ^(/review/media/.*)$ = $1,
 ^(/review/errordocs.*)$ = $1,
 ^(/review/.*)$ = /review/reviewboard.fcgi$1
 )
 
 Any help would be greatly appreciated
 Thanks,
 Paul Strong
 

--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups 
reviewboard group.
To post to this group, send email to reviewboard@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/reviewboard?hl=en
-~--~~~~--~~--~--~---



Re: Installing Reviewboard - lighttpd - 500 Internal Server Error

2008-12-02 Thread Gavin M. Roy
It did not occur to me that the rb-site app had manage.py wrapped up in it
and was accessible via the manage command.  I use Cherokee instead of
lighttpd.  I'm not sure if lighttpd can spawn fastcgi apps or not, but in
Cherokee, you enter this path in the config and it will spawn it.

Ultimately I think the docs just need to be updated (as does rb-site) to
reflect that the functionality of manage.py exists in rb-site using the
manage keyword.

Thanks for helping me get there, indirectly.

Regards,

Gavin

On Tue, Dec 2, 2008 at 7:01 PM, lapluviosilla [EMAIL PROTECTED]wrote:


 Yes! That seems to have worked. Is easy_install supposed to do this
 automatically or why is this not mentioned in the Getting Started
 guide. I've never used django myself. Perhaps lighttpd FastCGI should
 be setup with a socket instead of a host:port? The configuration
 implies that lighttpd will startup the fastcgi server on its own and
 that you shouldn't have to run it yourself. I'll try the socket
 approach and if it doesn't work then I'll just create a startup script
 for that command.

 Thanks!!

 On Dec 2, 2:46 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
  What about:
 
   rb-site manage /home/reviewboard/epmain runfcgi method=threaded
  host=127.0.0.1 port=3033 protocol=fcgi
 
  On Tue, Dec 2, 2008 at 3:33 PM, lapluviosilla [EMAIL PROTECTED]
 wrote:
 
   Did a complete hard drive search and there is no reviewboard.fcgi to
   be found. The strange thing I just found out is if I run the internal
   django manage server reviewboard works just fine. I use the following
   command to run it sudo rb-site manage /home/reviewboard/epmain
   runserver -- 0.0.0.0:8080. Unfortunately using the internal django
   server is not an option for me.
 
   On Dec 2, 2:23 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
Are you missing reviewboard.fcgi as well?
 
On Tue, Dec 2, 2008 at 3:22 PM, lapluviosilla 
 [EMAIL PROTECTED]wrote:
 
 Yes. I followed the install process described in the Getting
 Started
 Wiki (http://code.google.com/p/reviewboard/wiki/GettingStarted).
 I've
 also tried following the Installing_on_Ubuntu_Gutsy  and
 Host_Requirements wikis.
 
 On Dec 2, 2:00 pm, Gavin M. Roy [EMAIL PROTECTED] wrote:
  I am running into this as well and have not been able to locate
 the
  reviewboard.fcgi file.  Did you install this using easy_install?
  If
  so that'd be a common element between our issues.
 
  Gavin
 
  On Dec 2, 2:45 am, lapluviosilla [EMAIL PROTECTED]
 wrote:
 
   I've been trying to install ReviewBoard for a while now without
 any
   success. I have a ubuntu 8.10 server running on VMWare Server
 which
   hosts a lighttpd server. On top of my plan to get reviewboard
 up and
   running this lighttpd server is also running mediawiki. I've
 tried
   many different things and I always get the same result. The
 error log
   shows these two errors every time I try to access the site at
 http://
   192.168.4.8/review/.
 
   (mod_fastcgi.c.2802) establishing connection failed: Connection
   refused socket: tcp:127.0.0.1:3033
   (mod_fastcgi.c.2743) fcgi-server re-enabled: tcp:
 127.0.0.7:3033
 
A few steps I took:
 
   1) I tried setting FORCE_SCRIPT_NAME to / and /review/.
   2) I re-installed todays nightly build for reviewboard because
 of some
   of the issues with settings_local.py. This got me from a 404 to
 a 500
   error.
   3) set directory permissions and ownership for
 /home/reviewboard/
   epmain (reviewboard site install) to www-data:www-data
 
   Here's the relevant section of my lighttpd.conf. The subfolder
 for
   reviewboard is /review/
 
   fastcgi.server = (
  .php = ((
bin-path = /usr/bin/php-cgi,
socket = /tmp/php-fastcgi.socket
  )),
  /review/reviewboard.fcgi = (
main = (
  host = 127.0.0.1,
  port = 3033,
  check-local = disable
)
  ),
   )
 
   ## WIKIMEDIA INSTALL
   $HTTP[url] =~ ^/w/ {
 server.document-root = /home/mediawiki/
 alias.url = ( /w/ = /home/mediawiki/ )
 
   }
 
   ## REVIEWBOARD
   $HTTP[url] =~ ^/review/ {
 server.document-root = /home/reviewboard/epmain/htdocs/
 server.errorlog =
 /home/reviewboard/epmain/logs/lighttpd-error.log
 
 alias.url = (
 /review/media =
 /home/reviewboard/epmain/htdocs/media,
 /review/errordocs = /home/reviewboard/epmain/htdocs/
   errordocs,
 )
 
   }
 
   $HTTP[url] =~ ^/review/(css|images|scripts)/ {
 expire.url = (  = access 1 hours )
 
   }
 
   url.rewrite-once = (
   ^/wiki/([^?]*)(?:\?(.*))? = /w/index.php?title=$1$1