Re: Unable to get caching working

2013-07-03 Thread AJ Roberts
Hi, 
Thanks for the reply, i have tried setting that first, the Cache Backend is 
currently set to Memcached and 127.0.0.1:11211

i have confirmed that 127.0.0.1:11211 works using memcached-tool and i 
can connect and successfully dump stats out. Is there a possibility that i 
have messed up something in settings_local? if so how would i go about 
resetting this, i did try and create another RB site to produce another 
local_settings and i could not see and differences between the two files.

Cheers

Alex

On Tuesday, 2 July 2013 19:09:18 UTC+1, David Trowbridge wrote:

 You should configure the cache server location from the admin UI, instead 
 of in settings_local.py
 -David


 On Tue, Jul 2, 2013 at 11:07 AM, AJ Roberts aj.rob...@gmail.comjavascript:
  wrote:

 Hi, 

 I have set up a RHEL 6 box with review board everything went really well 
 during the installation and im very impressed so far.. unfortunately we 
 have a pretty slow svn set up, and requests for diffs are taking seconds 
 significantly slowing down page loads. I was assuming that memcached back 
 end would help speed this process up. So i have memcached installed and 
 running on the usual port. i can connect to it via telnet and everything 
 seems to be working fine. I have configured RB with the following settings 
 in settings_local.py:

 CACHES = {
 'default': {
 'BACKEND': 'django.core.cache.backends.memcached.MemcachedCache',
 'LOCATION': 'localhost:11211',
 },
 }


 I have the following entries in the RB log file:

 2013-07-02 13:16:46,178 - DEBUG - Cache miss for key 
 reviews.test-tools-reviewboard.domain:/:diff-sidebyside-hl-24.
 2013-07-02 13:16:46,179 - DEBUG - Cache miss for key 
 reviews.test-tools-reviewboard.domain:/:https%3A//domain/rg0201/group:/svnpath:82.

 but i do not see any connection being made to memcached at all. So im a 
 little confused as to what cache its checking? i cannot see any other log 
 messages that indicate its trying to use memcached, so im a bit stumped on 
 where to go next.

 Any suggestions?

 Cheers

 Alex

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




-- 
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
--- 
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: Enter key doesn't work for search on reviewboard

2013-07-03 Thread Varun Jain
 Hi Team,

Do we have some solution?

Thanks,
Varun

-- 
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
--- 
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: Moving Reviewboard Server

2013-07-03 Thread Peter Snelling
Thanks Christian, that worked. There were a couple of small issues. After 
importing the database, I initially got a message that they couldn't find 
the directory:
   /var/www/OldServer/htdocs/media/uploaded/images
on the new server. I fixed this by creating a soft link from OldServer 
directory to the NewServer. I think the images directory is probably 
specified in some admin page, but I can't find it.
 
The second issue is that some users couldn't log in to the new server. I 
suspect they'd forgotten their password, but I'm not certain. They tried 
using the recover link on the password screen, but that got them a 
message: 

Something broke! (Error 500)
It appears something broke when you tried to go to here. This is either a 
bug in Review Board or a server configuration error. Please report this to 
your administrator.

I got that same error when I tried that myself. Perhaps that's a real bug? 
In any case, I just used the admin interface and reset their passwords.
 
Good idea on using DNS to hide the server change from users, but 
unfortunately, there were DNS issues on the old server, so most users used 
the numerical IP. 
 
If anyone's interested, here are my exact steps (except for the ones I 
forgot to record):

# On the old server:
/etc/init.d/apache2 stop
easy_install -U ReviewBoard
# Or did I do rb-site upgrade /var/www/OldServer? I can't recall. Are 
they the same thing?
su postgres
pg_dump reviewboard  /tmp/rb.dump
exit
scp /tmp/rb.dump [NewServer]
more conf/settings_local.py
 
# On New Server (with an identical ReviewBoard and temporary database 
installed)
/etc/init.d/apache2 stop
systemctl stop postgresql.service
vim conf/settings_local.py [add SECRET_KEY]
su - postgres
dropdb reviewboard
createdb reviewboard
psql reviewboard  /tmp/rb.dump 
exit
/etc/init.d/apache2 restart
systemctl restart postgresql.service
ln -s reboard.genband.com s3lab2dell1.genband.com 
rb-site upgrade /var/www/NewServer
# Probably another restart, then things worked...

 
- Peter
 
On Tuesday, July 2, 2013 2:14:43 PM UTC-4, Christian Hammond wrote:

 Hi Peter, 
  
 Your plan sounds about right. Let me give you a few more tidbits of info. 
  
 First, you don't want to use dumpdb/loaddb. Those are slow, last-resort 
 methods for going in-between database types (and are not guaranteed to 
 be bug-free). Instead, you do want psql's native commands. 
  
 You can minimize downtime by setting up the latest 1.7 release on the 
 new server first. Create a temporary database that's used, then copy 
 over the SECRET_KEY from the old site's conf/settings_local.py into the 
 new one. Then, when you're ready, you can stop Apache, dump the 
 database, import on the new server, run 'rb-site upgrade' (to upgrade 
 the database schema), and then start Apache back up. 
  
 I don't know what your DNS setup is like, but you could just set the old 
 name to point to the new server. 
  
 If you're using VMs for any of this, you could put postgres on its own 
 VM, and then in the future it'll be easier to move Review Board 
 instances around without dumping/loading the database. 
  
 Hope that helps. 
  
 Christian 
  
  
 Peter Snelling wrote: 
  I been trying out reviewboard for about 6 weeks, and it's working pretty 
  well (only real issue is I haven't been able to get e-mails working 
  properly). Now I've got a new better server to install it on. I'd like 
  to copy the existing review and users from the existing database before 
  I move it -- about 60 users and 135 review requests. I'm using pgsql, 
  apache, and currently version 1.7.7.1. 
  I don't see anything on 
  http://www.reviewboard.org/docs/manual/1.7/admin/ on how to do this, 
 but 
  I see there have been a few questions about it in this group. It looks 
  like some of the problems have been moving to a different database (eg: 
  mysql to pgsql) or a different version of RB, so to keep things easy, 
  I'll keep the same pgsql, apache, OS, and RB instance (by upgrading just 
  before exporting?). I'm thinking I should probably: 
  - Send users a outage notice 
  - Stop apache 
  - Upgrade to the latest 1.7 version 
  - Export the database 
  - Install on a new server 
  - Import the database 
  - Send users a notice about the new server. Maybe also put a redirect on 
  the old server, pointing to the new one. 
  I'm not sure in particular about how to do the db export/import. I see 
  some people here used rb-site manage /var/oldRbPath dumpdb  
  dumpdb.json , then copy that file over and do rb-site manage 
  /var/newRbPath loaddb dumpdb.json. Is that the best way? Or is it 
  better to use psql commands to dump the database? 
  
  -- 
  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 javascript: 
  For more options, 

Re: Moving Reviewboard Server

2013-07-03 Thread Peter Snelling
Thanks Christian, that worked. There were a couple of small issues. After 
importing the database, I initially got a message that they couldn't find 
the directory:
/var/www/OldServer/htdocs/media/uploaded/images
on the new server. I fixed this by creating a soft link from OldServer 
directory to the NewServer. I think the images directory is probably 
specified in some admin page, but I can't find it.
The second issue is that some users couldn't log in to the new server. I 
suspect they'd forgotten their password, but I'm not certain. They tried 
using the recover link on the password screen, but that got them a 
message: 

Something broke! (Error 500)
It appears something broke when you tried to go to here. This is either a 
bug in Review Board or a server configuration error. Please report this to 
your administrator.

I got that same error when I tried that myself. Perhaps that's a real bug? 
In any case, I just used the admin interface and reset their passwords.
Good idea on using DNS to hide the server change from users, but 
unfortunately, there were DNS issues on the old server, so most users used 
the numerical IP. 
If anyone's interested, here are my exact steps (except for the ones I 
forgot to record):

# On the old server:
/etc/init.d/apache2 stop
easy_install -U ReviewBoard
# Or did I do rb-site upgrade /var/www/OldServer? I can't recall. Are 
they the same thing?
su postgres
pg_dump reviewboard  /tmp/rb.dump
exit
scp /tmp/rb.dump [NewServer]
more conf/settings_local.py
# On New Server (with an identical ReviewBoard and temporary database 
installed)
/etc/init.d/apache2 stop
systemctl stop postgresql.service
vim conf/settings_local.py [add SECRET_KEY]
su - postgres
dropdb reviewboard
createdb reviewboard
psql reviewboard  /tmp/rb.dump 
exit
/etc/init.d/apache2 restart
systemctl restart postgresql.service
cd /var/www 
ln -s NewServer OldServer 
rb-site upgrade /var/www/NewServer
# Probably another restart, then things worked...

- Peter
On Tuesday, July 2, 2013 2:14:43 PM UTC-4, Christian Hammond wrote:

 Hi Peter, 

 Your plan sounds about right. Let me give you a few more tidbits of info. 

 First, you don't want to use dumpdb/loaddb. Those are slow, last-resort 
 methods for going in-between database types (and are not guaranteed to 
 be bug-free). Instead, you do want psql's native commands. 

 You can minimize downtime by setting up the latest 1.7 release on the 
 new server first. Create a temporary database that's used, then copy 
 over the SECRET_KEY from the old site's conf/settings_local.py into the 
 new one. Then, when you're ready, you can stop Apache, dump the 
 database, import on the new server, run 'rb-site upgrade' (to upgrade 
 the database schema), and then start Apache back up. 

 I don't know what your DNS setup is like, but you could just set the old 
 name to point to the new server. 

 If you're using VMs for any of this, you could put postgres on its own 
 VM, and then in the future it'll be easier to move Review Board 
 instances around without dumping/loading the database. 

 Hope that helps. 

 Christian 


 Peter Snelling wrote: 
  I been trying out reviewboard for about 6 weeks, and it's working pretty 
  well (only real issue is I haven't been able to get e-mails working 
  properly). Now I've got a new better server to install it on. I'd like 
  to copy the existing review and users from the existing database before 
  I move it -- about 60 users and 135 review requests. I'm using pgsql, 
  apache, and currently version 1.7.7.1. 
  I don't see anything on 
  http://www.reviewboard.org/docs/manual/1.7/admin/ on how to do this, 
 but 
  I see there have been a few questions about it in this group. It looks 
  like some of the problems have been moving to a different database (eg: 
  mysql to pgsql) or a different version of RB, so to keep things easy, 
  I'll keep the same pgsql, apache, OS, and RB instance (by upgrading just 
  before exporting?). I'm thinking I should probably: 
  - Send users a outage notice 
  - Stop apache 
  - Upgrade to the latest 1.7 version 
  - Export the database 
  - Install on a new server 
  - Import the database 
  - Send users a notice about the new server. Maybe also put a redirect on 
  the old server, pointing to the new one. 
  I'm not sure in particular about how to do the db export/import. I see 
  some people here used rb-site manage /var/oldRbPath dumpdb  
  dumpdb.json , then copy that file over and do rb-site manage 
  /var/newRbPath loaddb dumpdb.json. Is that the best way? Or is it 
  better to use psql commands to dump the database? 
  
  -- 
  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 javascript: 
  For more options, visit this group at 
  

Re: Enter key doesn't work for search on reviewboard

2013-07-03 Thread Christian Hammond
Yep, looks like a bug. I don't have a solution. Quickest way to get it 
fixed is to patch it and send us the patch. At the very least, file a 
bug and we'll get to it at some point, but we're swamped right now.


Christian


Varun Jain wrote:

Hi Team,

Do we have some solution?

Thanks,
Varun

--
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
---
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.




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

--
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
--- 
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.




ReviewBoard 1.7.11 Detecting Extensions

2013-07-03 Thread Django Son
I have failed to have ReviewBoard detect extensions. I grabbed a few 
extensions from 

https://github.com/reviewboard/rb-extension-pack

and placed them in reviewboard/htdocs/media/ext.

Then, I went into each extension and ran

python setup.py build
python setup.py install

After running these commands, I have :
build  dist  rbreports  RB_Reports.egg-info  setup.py

I also restarted the server. I tried this for multiple extensions, but none 
will appear on the ReviewBoard admin extension panel.

An example extension directory would be : 
reviewboard/htdocs/media/ext/rbreports

Am I missing something obvious or am I not performing a step so RB is not 
detecting these extensions?

-- 
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
--- 
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: ReviewBoard 1.7.11 Detecting Extensions

2013-07-03 Thread Christian Hammond

Hi,

You shouldn't place those in ext/. That's something that's fully under 
Review Board's extension manager's control.


What you should do is check them out to some directory not under the 
reviewboard install's tree, and then, for each extension you want to 
install, run:


$ sudo ./setup.py install

If you're using virtualenv for your install, you will need to switch to 
your virtualenv and not use sudo.


For now, you will then need to reload Apache. A refresh button is coming.

You should then see them show up.

I must point out, though, that rb-extension-pack is kind of a dumping 
ground of test extensions. They are *not* guaranteed to work. That said, 
I believe RBReports works, but don't expect it to do much.


Also, look in your reviewboard.log and see if any errors show up.

Christian


Django Son wrote:

I have failed to have ReviewBoard detect extensions. I grabbed a few
extensions from

https://github.com/reviewboard/rb-extension-pack

and placed them in reviewboard/htdocs/media/ext.

Then, I went into each extension and ran

python setup.py build
python setup.py install

After running these commands, I have :
build dist rbreports RB_Reports.egg-info setup.py

I also restarted the server. I tried this for multiple extensions, but
none will appear on the ReviewBoard admin extension panel.

An example extension directory would be :
reviewboard/htdocs/media/ext/rbreports

Am I missing something obvious or am I not performing a step so RB is
not detecting these extensions?

--
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
---
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.




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

--
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
--- 
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.




Preview interdiffs?

2013-07-03 Thread miket
Is there a way, from the command line, to *preview* the interdiff between 
my last post-review and my most recent changes?  I don't want to view the 
diff between my current code and the repo, I want to see what the interdiff 
would be if I posted another review version, without actually posting a new 
version.  Thanks.

-- 
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
--- 
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: Error during creation of P4 SCM Repository

2013-07-03 Thread RB
Hi,

Are you able to fix the below issue. I am facing the same issue now.

RB

On Friday, October 22, 2010 3:34:30 PM UTC+5:30, Dolphin wrote:

 Hi All, 

 I am getting an error while creating the P4 SCM Repository. 

 The following error is displayed when I give all the details about 
 perforce server and save. 
 The Python module P4 is not installed.You may need to restart the 
 server after installing it (Highlighting the repository path in the 
 web UI). 

 when I check the installed Python modules. I can see P4 to be present. 
 Am I missing some thing??? 

 Cheers, 
 Srini

-- 
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
--- 
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: Preview interdiffs?

2013-07-03 Thread David Trowbridge
You could perhaps do something like this if you're using a SCM like git and
you were careful about your commits, but there's nothing built into review
board to do so.

If you do post a new revision, you can look at the new diff (and interdiff)
before publishing it.

-David


On Tue, Jul 2, 2013 at 3:46 PM, mi...@ava.ai wrote:

 Is there a way, from the command line, to *preview* the interdiff between
 my last post-review and my most recent changes?  I don't want to view the
 diff between my current code and the repo, I want to see what the interdiff
 would be if I posted another review version, without actually posting a new
 version.  Thanks.

 --
 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
 ---
 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.




-- 
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
--- 
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.