Post Review - HTTP Error 500: Internal Server Error

2009-06-05 Thread kunjal.par...@gmail.com

Hello,

Few of our uses (Not All) are seeing below message when they try to
post review.
They have post review successfully in past but now this message
appears when they try to post review.
What could be the root-cause of the issue?


$ post-review.cygwin 216609
sh: svn: command not found
repository path pf-sj1-3:1668
Unable to access http://rb.sj.broadcom.com/api/json/reviewrequests/new/.
The host path may be invalid
HTTP Error 500: Internal Server Error



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



Can not view the DIFF - ERROR

2009-06-04 Thread kunjal.par...@gmail.com

Hello,

In the review board, for any review, When I click VIEW DIFF, I get
below error.
How to fix this?

try deleting old users with 'user -d'. icense count: 737 users used of
737 licensed.

Traceback (most recent call last):
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/views.py, line 82, in view_diff
files = get_diff_files(diffset, None, interdiffset, highlighting)
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 561, in get_diff_files
enable_syntax_highlighting)
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 500, in generate_files
lambda: get_chunks(filediff.diffset,
  File /usr/local/lib64/python2.5/site-packages/djblets/util/
misc.py, line 47, in cache_memoize
data = lookup_callable()
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 503, in lambda
enable_syntax_highlighting))
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 297, in get_chunks
old = get_original_file(filediff)
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 208, in get_original_file
return cache_memoize(key, lambda: [tool.get_file(file, revision)])
[0]
  File /usr/local/lib64/python2.5/site-packages/djblets/util/
misc.py, line 47, in cache_memoize
data = lookup_callable()
  File /usr/local/lib64/python2.5/site-packages/reviewboard/
diffviewer/diffutils.py, line 208, in lambda
return cache_memoize(key, lambda: [tool.get_file(file, revision)])
[0]
  File /usr/local/lib64/python2.5/site-packages/reviewboard/scmtools/
perforce.py, line 89, in get_file
raise P4Error('\n'.join(line[1:] for line in error[1:]))
P4Error: ry deleting old users with 'user -d'.
icense count: 737 users used of 737 licensed.


--~--~-~--~~~---~--~~
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: ReviewBoard Crashed with error Profile matching query does not exist.

2009-05-29 Thread kunjal.par...@gmail.com

Thanks.
I repair few tables and ReviewBoard is live again.
However, I could not find any command which can repair all the
tables.
mysqlcheck command is not working on reviewboard database. It is
giving syntax is incorrect error.
I am trying

mysqlcheck -repair -u root -p reviewboard

Any info. will be helpful.

Thanks
Kunjal


On May 29, 8:41 am, Christian Hammond chip...@chipx86.com wrote:
 Hmm, the preferences page should create one if one doesn't already exist.
 Can you get a full backtrace on this and e-mail it to me?

 Christian

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

 On Fri, May 29, 2009 at 8:33 AM, kunjal.par...@gmail.com 



 kunjal.par...@gmail.com wrote:

  Hello,

  Yesterday we have review board crashed and we repair few tables and It
  started to work.Then suddenly everything was frozen and reviewboard
  was not responding so we re-started Linux machine.

  Now, when we try to login, we get this message. Any clue what should
  be done next?

  DoesNotExist at /account/preferences/
  Profile matching query does not exist.
  Request Method: GET
  Request URL:http://rb.sj.broadcom.com/account/preferences/
  Exception Type: DoesNotExist
  Exception Value: Profile matching query does not exist.
  Exception Location: /usr/lib/python2.5/site-packages/django/db/models/
  query.py in get, line 263
  Python Executable: /usr/bin/python
  Python Version: 2.5.1
  Python Path: ['/usr/local/lib64/python2.5/site-packages/django', '/usr/
  local/lib64/python2.5/site-packages/reviewboard', '/usr/local/lib64/
  python2.5/site-packages/djblets', '/usr/local/lib64/python2.5/site-
  packages', '/usr/lib/python2.5/site-packages/nose-0.10.1-py2.5.egg', '/
  usr/lib/python2.5/site-packages/flup-0.5-py2.5.egg', '/usr/lib64/
  python25.zip', '/usr/lib64/python2.5', '/usr/lib64/python2.5/plat-
  linux2', '/usr/lib64/python2.5/lib-tk', '/usr/lib64/python2.5/lib-
  dynload', '/usr/lib64/python2.5/site-packages', '/usr/lib64/python2.5/
  site-packages/Numeric', '/usr/lib64/python2.5/site-packages/PIL', '/
  usr/lib64/python2.5/site-packages/gst-0.10', '/usr/lib64/python2.5/
  site-packages/gtk-2.0', '/usr/lib/python2.5/site-packages']
  Server time: Fri, 29 May 2009 08:30:50 -0700- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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: ReviewBoard Crashed with error Profile matching query does not exist.

2009-05-29 Thread kunjal.par...@gmail.com

The output says:

ERROR 1064 ( 42000): You have an error in your SQL syntax; check the
manual that corresponds to your MySQL server version for the right
syntax to use near 'mysqlcheck -repair-u root -p reviewboard' at line
1

On May 29, 9:05 am, Christian Hammond chip...@chipx86.com wrote:
 That format looks correct. What's the exact output?

 Christian

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

 On Fri, May 29, 2009 at 8:47 AM, kunjal.par...@gmail.com 



 kunjal.par...@gmail.com wrote:

  Thanks.
  I repair few tables and ReviewBoard is live again.
  However, I could not find any command which can repair all the
  tables.
  mysqlcheck command is not working on reviewboard database. It is
  giving syntax is incorrect error.
  I am trying

  mysqlcheck -repair -u root -p reviewboard

  Any info. will be helpful.

  Thanks
  Kunjal

  On May 29, 8:41 am, Christian Hammond chip...@chipx86.com wrote:
   Hmm, the preferences page should create one if one doesn't already exist.
   Can you get a full backtrace on this and e-mail it to me?

   Christian

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

   On Fri, May 29, 2009 at 8:33 AM, kunjal.par...@gmail.com 

   kunjal.par...@gmail.com wrote:

Hello,

Yesterday we have review board crashed and we repair few tables and It
started to work.Then suddenly everything was frozen and reviewboard
was not responding so we re-started Linux machine.

Now, when we try to login, we get this message. Any clue what should
be done next?

DoesNotExist at /account/preferences/
Profile matching query does not exist.
Request Method: GET
Request URL:http://rb.sj.broadcom.com/account/preferences/
Exception Type: DoesNotExist
Exception Value: Profile matching query does not exist.
Exception Location: /usr/lib/python2.5/site-packages/django/db/models/
query.py in get, line 263
Python Executable: /usr/bin/python
Python Version: 2.5.1
Python Path: ['/usr/local/lib64/python2.5/site-packages/django', '/usr/
local/lib64/python2.5/site-packages/reviewboard', '/usr/local/lib64/
python2.5/site-packages/djblets', '/usr/local/lib64/python2.5/site-
packages', '/usr/lib/python2.5/site-packages/nose-0.10.1-py2.5.egg', '/
usr/lib/python2.5/site-packages/flup-0.5-py2.5.egg', '/usr/lib64/
python25.zip', '/usr/lib64/python2.5', '/usr/lib64/python2.5/plat-
linux2', '/usr/lib64/python2.5/lib-tk', '/usr/lib64/python2.5/lib-
dynload', '/usr/lib64/python2.5/site-packages', '/usr/lib64/python2.5/
site-packages/Numeric', '/usr/lib64/python2.5/site-packages/PIL', '/
usr/lib64/python2.5/site-packages/gst-0.10', '/usr/lib64/python2.5/
site-packages/gtk-2.0', '/usr/lib/python2.5/site-packages']
Server time: Fri, 29 May 2009 08:30:50 -0700- Hide quoted text -

   - Show quoted text -- Hide quoted text -

 - Show quoted text -
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Upgrade to Review Board 1.0 rc 2

2009-05-28 Thread kunjal.par...@gmail.com

Hello,

I am new to ReviewBoard and our company (Broadcom) use ReviewBoard for
code review.
I plan to upgrade to rc2 and want to make sure my steps are correct:
I do not know how to get rb-site tool.
Also, once I upgrade to new version, Do I move to new database or
existing database and how this migration will happen.
Pl. look at the steps below and let me know where I am wrong so we can
perform upgrade as soon as possible as the bug fix in rc2 are really
helful.

Step 1:


Download setuptools-0.6c9-py2.5.egg (md5) from the link:
http://pypi.python.org/pypi/setuptools#downloads


Once the EasyInstall is available, issue following command from dir: /
usr/local/lib64/python2.5/site-packages/reviewboard/

easy_install -U ReviewBoard

The console should display success or failure message and input any
information requested by easy_install application.


Step 2:

Once the ReviewBoard is installed correctly, we need to perform below
mentioned 3 steps:

Performs database updates and migrations
�X  Rebuilds missing parts of the directory structure
�X  Updates the local copies or links to the Review Board media files

As per the Review Board Group Discussion, the all above objectives can
be achieved using following command:

rb-site upgrades /usr/local/lib64/python2.5/site-packages/reviewboard/

The rb-site tool gets install when you install ReviewBoard using
easy_install. The rb-site tool will perform database update and
migration and no additional steps are required.

Step 3:

Restart the server



--~--~-~--~~~---~--~~
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: Upgrade to Review Board 1.0 rc 2

2009-05-28 Thread kunjal.par...@gmail.com

Thanks for so fast reply.I was not expecting it.. Chris.

We are using Perforce. We are using ReviewBoard from last one year and
it come to my control just yesterday.
I am not sure what version is installed but it would be nice if there
is a way to check which review board version is installed.

I am trying to do upgrade only. No new installations.

We are using MySQL database. My Linux is X85 GNU/Linux.

Just to confirm, for upgrades my database will be same as before. No
change to the database. correct?
I am just worried about database as we have lots of data there and I
do not want to mess up with it in upgrade.

Also, I get most of what you said but I do not understand concept of
target directory for the site.

I see there is /var/www/ direcotry in our Linux machine but I do not
find htdocs folder there. However, I do have htdocs directory at /usr/
local/lib64/pythong2.5/site-packages/reviewboard/.

not sure what is use of /var/www/ directory in ReviewBoard
installation.

Also, how to point  web server to the new locations?

If you can explain that would be great.

Thanks
Kunjal



On May 28, 12:19 pm, Christian Hammond chip...@chipx86.com wrote:
 Hi,

 I assume you're currently using an SVN install? What version, and how old is
 it?

 Also, what version of what distribution are you using?

 You'll basically be following the installation instructions for a brand new
 install, but will specify your existing database information. I assume this
 is MySQL or PostgreSQL. If so, then this will be fairly easy.

 Most modern Linux distributions have a new enough version of setuptools. If
 you don't have setuptools, you can use the egg you found for it.

 The easy_install command can be done from any directory. From now on, you
 should never have to think about your
 /usr/local/lib64/python2.5/site-packages/reviewboard/ directory again. It
 will be a behind-the-scenes thing entirely.

 I'm going to assume from here that your target directory for the site will
 be /var/www/reviews. Use whatever you like, it's just an example.

 So, at this point, you would do, as root:

     $ easy_install -U ReviewBoard
     $ rb-site install /var/www/reviews

 Follow the instructions. When it asks for the database information, specify
 your existing database.

 At the end, it will give you some instructions for setting permissions. Make
 sure to follow these instructions.

 If you have any uploaded media files in your old directory, you'll want to
 copy them, like so:

     $ cp -av
 /usr/local/lib64/python2.5/site-packages/reviewboard/htdocs/media/uploaded/­*
 /var/www/reviews/htdocs/media/uploaded/

 You'll then need to point your web server to the new locations. I strongly
 recommend using the generated web server configuration file in
 /var/www/reviews/conf/ as a base, because they're going to reflect the
 required Python module paths, turn on long-term expiration for the media
 files to improve performance, and many other things that yours probably
 isn't doing unless it's fairly recent.

 Then restart the server.

 The rb-site upgrade command will be used when upgrading Review Board in
 the future. Upgrades to an rb-site-based install are really easy and fast.

 Christian

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

 2009/5/28 kunjal.par...@gmail.com kunjal.par...@gmail.com





  Hello,

  I am new to ReviewBoard and our company (Broadcom) use ReviewBoard for
  code review.
  I plan to upgrade to rc2 and want to make sure my steps are correct:
  I do not know how to get rb-site tool.
  Also, once I upgrade to new version, Do I move to new database or
  existing database and how this migration will happen.
  Pl. look at the steps below and let me know where I am wrong so we can
  perform upgrade as soon as possible as the bug fix in rc2 are really
  helful.

  Step 1:

  Download setuptools-0.6c9-py2.5.egg (md5) from the link:
 http://pypi.python.org/pypi/setuptools#downloads

  Once the EasyInstall is available, issue following command from dir: /
  usr/local/lib64/python2.5/site-packages/reviewboard/

  easy_install -U ReviewBoard

  The console should display success or failure message and input any
  information requested by easy_install application.

  Step 2:

  Once the ReviewBoard is installed correctly, we need to perform below
  mentioned 3 steps:

         Performs database updates and migrations
         Rebuilds missing parts of the directory structure
         Updates the local copies or links to the Review Board media files

  As per the Review Board Group Discussion, the all above objectives can
  be achieved using following command:

  rb-site upgrades /usr/local/lib64/python2.5/site-packages/reviewboard/

  The rb-site tool gets install when you install ReviewBoard using
  easy_install. The rb-site tool will perform database update and
  migration and no additional steps are required.

  Step 3:

  Restart the server