Problem with viewing diff with pre commit review.

2014-06-30 Thread Sudheendra S.N
Hi, 

I have just installed the ReviewBoard, set it up to work with CVS repo. 

I just created a "New Review Request" using the diff/patch file i have 
 generated from CVS. Contents of Patch file are as below.

Index: VPASServerConfigGlobals.h
===
RCS file: /cvs/repository///VPASServerConfigGlobals.h,v
retrieving revision 1.15.56.5.4.1.10.2.4.1.6.4
diff -u -r1.15.56.5.4.1.10.2.4.1.6.4 VPASServerConfigGlobals.h
--- VPASServerConfigGlobals.h 13 Jun 2014 11:23:35 - 
1.15.56.5.4.1.10.2.4.1.6.4
+++ VPASServerConfigGlobals.h 30 Jun 2014 08:56:45 -
@@ -35,7 +35,7 @@
 
-#define VPASSERVERCONFIG_VERSION "7.4.1"
+#define VPASSERVERCONFIG_VERSION "7.4"
 
 #define WEBXML "WEB-INF\\web.xml"
 #define CLASSES "\\webapps\\vpas\\web-inf\\classes\\"


After creating the review request when i click on ViewDiff, i am getting 
the error below.
The file 'cvs/repositoryAttic/VPASServerConfigGlobals.h' 
(r1.15.56.5.4.1.10.2.4.1.6.4) could not be found in the repository

I see there is extra directory name Attic in between.

Please help me in resolving this error. I have to get this up by today EOD.

Thanks,
Sudheendra.

And here is the TraceBack

Traceback (most recent call last):
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/views.py",
 line 236, in get
renderer = self.create_renderer(context, *args, **kwargs)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/reviews/views.py",
 line , in create_renderer
*args, **kwargs)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/views.py",
 line 326, in create_renderer
self.diff_file = self._get_requested_diff_file()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/views.py",
 line 367, in _get_requested_diff_file
request=self.request)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/diffutils.py",
 line 373, in populate_diff_chunks
chunks = generator.get_chunks()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 line 148, in get_chunks
large_data=True)
  File 
"/usr/lib/python2.6/site-packages/Djblets-0.8.5-py2.6.egg/djblets/cache/backend.py",
 line 109, in cache_memoize
data = lookup_callable()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 line 147, in 
lambda: list(self._get_chunks_uncached()),
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/chunk_generator.py",
 line 154, in _get_chunks_uncached
old = get_original_file(self.filediff, self.request, encoding_list)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/diffviewer/diffutils.py",
 line 169, in get_original_file
request=request)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/models.py",
 line 220, in get_file
large_data=True)[0]
  File 
"/usr/lib/python2.6/site-packages/Djblets-0.8.5-py2.6.egg/djblets/cache/backend.py",
 line 109, in cache_memoize
data = lookup_callable()
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/models.py",
 line 219, in 
request)],
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/models.py",
 line 379, in _get_file_uncached
data = self.get_scmtool().get_file(path, revision)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/cvs.py",
 line 59, in get_file
return self.client.cat_file(path, revision)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/cvs.py",
 line 278, in cat_file
return self._cat_specific_file(filenameAttic, revision)
  File 
"/usr/lib/python2.6/site-packages/ReviewBoard-2.0.2-py2.6.egg/reviewboard/scmtools/cvs.py",
 line 316, in _cat_specific_file
raise FileNotFoundError(filename, revision)
FileNotFoundError: The file 
'cvs/repositoryAttic/VPASServerConfigGlobals.h' 
(r1.15.56.5.4.1.10.2.4.1.6.4) could not be found in the repository

-- 
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/d/optout.


Re: Email All Reviewboard Users

2014-06-30 Thread David Trowbridge
Joe,

There's no such feature to do this. You could extract a list of e-mail
addresses through the database or the python console.

-David


On Mon, Jun 30, 2014 at 7:12 AM, Joe  wrote:

> Hello,
>
> In our review board we have 200+ users. As a admin, I want to send an
> email to all these users. Is there any way to do it from within reviewboard.
>
> We use RB 1.7.22
>
> Best regards,
> Joe.
>
>  --
> 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/d/optout.
>

-- 
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/d/optout.


Re: Error 500 on new 2.0.2 install

2014-06-30 Thread Jacek Furmankiewicz
All is OK. I think there was something wrong with the copy of ReviewBoard
that is included in the CentOS repos (1.7.6).

I did a clean reinstall from easy_install for the 2.0.2 and everything went
fine.

Thanks for your help.


On Sat, Jun 28, 2014 at 6:03 PM, David Trowbridge 
wrote:

> Did you end up turning on DEBUG in settings_local.py?
>
> -David
>
>
> On Sat, Jun 28, 2014 at 11:53 AM, Jacek Furmankiewicz 
> wrote:
>
>> OK, I figured that out, it was SELinux settings:
>>
>> setsetbool -P httpd_can_network_connect on
>> setsetbool -P httpd_can_network_sendmail on
>>
>> Now I can see the site. It is 1.7.26 (not 2.0.2) since that is the
>> default version shipped with ReviewBoard.
>>
>> However, the site has no graphics, no icons, nothing. It looks just like
>> plain text without any CSS. HTML circa 1985.
>>
>> Any ideas?
>>
>>
>> On Sat, Jun 28, 2014 at 1:40 PM, Jacek Furmankiewicz 
>> wrote:
>>
>>> I switched debug mode on and it gave me this:
>>>
>>> OperationalError at /reviews/
>>>
>>> could not connect to server: Permission denied
>>> Is the server running on host "127.0.0.1" and accepting
>>> TCP/IP connections on port 5432?
>>>
>>>  Request Method: GET  Request URL: http://dev-ci2/reviews/  Django
>>> Version: 1.4.13  Exception Type: OperationalError  Exception Value:
>>>
>>> could not connect to server: Permission denied
>>> Is the server running on host "127.0.0.1" and accepting
>>> TCP/IP connections on port 5432?
>>>
>>>
>>> But, if I try from command line, I can connect with that user and port,
>>> no issues:
>>>
>>> psql -U reviewboard -h 127.0.0.1 -p 5432
>>>
>>> Connects to PostgreSQL without any problems.
>>>
>>>
>>>
>>>
>>>
>>>
>>> On Sat, Jun 28, 2014 at 12:09 PM,  wrote:
>>>
 I installed a brand new 2.0.2 instance on CentOS 6 with a PostgreSQL
 backend.

 The whole install went fine. created the DB and my reviews site.

 However, when I go to my server's /reviews/ URL I always get the 500
 error 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*
 if I do a tail on the apache log (tail -f /var/log/httpd/error_log) I
 see nothing unusual:



 *[Sat Jun 28 11:59:04 2014] [notice] suEXEC mechanism enabled (wrapper:
 /usr/sbin/suexec)[Sat Jun 28 11:59:04 2014] [notice]
 Apache/2.2.15 (Unix) DAV/2 mod_wsgi/3.2 Python/2.6.6 configured -- resuming
 normal operations  *
 No errors present.

 if I go to my site's /logs folder, it is empty, nothing.

 Any suggestions would be welcome.

 Thanks
 Jacek

  --
 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 a topic in the
 Google Groups "reviewboard" group.
 To unsubscribe from this topic, visit
 https://groups.google.com/d/topic/reviewboard/PsEvrQ4kaDw/unsubscribe.
 To unsubscribe from this group and all its topics, send an email to
 reviewboard+unsubscr...@googlegroups.com.
 For more options, visit https://groups.google.com/d/optout.

>>>
>>>
>>  --
>> 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/d/optout.
>>
>
>  --
> 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 a topic in the
> Google Groups "reviewboard" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/reviewboard/PsEvrQ4kaDw/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> reviewboard+unsubscr...@googlegroups.com.
> For more options, visit https://groups.google.com/d/optout.
>

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

Re: Issue upgrading from 1.7.14 to 2.0.2

2014-06-30 Thread David Trowbridge
The my.cnf settings affect new databases and tables. You'll also need to
run some commands in the console to change the existing tables.

-David


On Mon, Jun 30, 2014 at 1:50 PM, sagar  wrote:

>
> So I changed my.cnf and set the default character set to utf8.
>
> the apache log still shows:
>
> codereviewtest.nyab-tds:80 127.0.0.1 - - [30/Jun/2014:20:01:32 +] "GET
> /admin/ HTTP/1.1" 500 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686;
> rv:24.0) Gecko/20100101 Firefox/24.0"
>
> On Monday, 30 June 2014 14:39:49 UTC-5, sagar wrote:
>
>> I hadn't change anything in mysql, so that's weird.
>> I'll try this and post in a bit.
>>
>> On Friday, 27 June 2014 15:01:43 UTC-5, David Trowbridge wrote:
>>
>>> It looks like your table charsets aren't set properly in MySQL. I'd go
>>> in with the MySQL client and set them all to utf-8.
>>>
>>> -David
>>>
>>> On Jun 27, 2014, at 12:08 PM, sagar  wrote:
>>>
>>> There are three log files for apache:
>>>
>>> *other_vhosts_access.log*:
>>>
>>> codereview.nyab-tds:80 149.244.179.118 - - [27/Jun/2014:19:03:44 +]
 "-" 408 0 "-" "-"
 codereview.nyab-tds:80 149.244.178.251 - - [27/Jun/2014:19:03:54 +]
 "GET /dashboard/ HTTP/1.1" 200 4318 "http://codereview.nyab-tds/
 dashboard/" "Mozilla/5.0 (X11; Linux x86_64; rv:26.0) Gecko/20100101
 Firefox/26.0"
 codereview.nyab-tds:80 149.244.179.84 - - [27/Jun/2014:19:04:00 +]
 "-" 408 0 "-" "-"
 codereview.nyab-tds:80 149.244.179.96 - - [27/Jun/2014:19:04:10 +]
 "GET /api/review-requests/1280/last-update/?api_format=json HTTP/1.1"
 304 273 "http://dfws0237.corp.knorr-bremse.com/r/1280/"; "Mozilla/5.0
 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko)
 Chrome/34.0.1847.132 Safari/537.36"
>>>
>>>
>>> *access.log* is blank
>>>
>>> *error.log*:
>>>
>>> Error opening file for reading: Permission denied
 [Fri Jun 27 18:07:41 2014] [error] /usr/local/lib/python2.7/dist-
 packages/Django-1.4.8-py2.7.egg/django/db/backends/mysql/base.py:114:
 Warning: Incorrect string value: '\\xE2\\x88\\x92 (1...' for column
 'description' at row 1
 [Fri Jun 27 18:07:41 2014] [error]   return self.cursor.execute(query,
 args)
>>>
>>>
>>>
>>> On Friday, 27 June 2014 12:25:08 UTC-5, David Trowbridge wrote:

 What about the apache error logs?

 -David

 On Jun 27, 2014, at 8:24 AM, sagar  wrote:

 Hi!

 We are currently on 1.7.14 and I am looking to upgrade us to 2.0.2.

 I've tried 3 paths to upgrade (all following the RB instructions -
 upgrade RB, upgrade site, restart apache and memcached):

 1.7.14 -> 2.0.2

 1.7.14 -> 1.7.26 -> 2.0.2

 1.7.14 -> 2.0.1 -> 2.0.2

 *I didn't go from 1.7.14 to 1.7.26 to 2.0.1 because of the schema
 change issue; figured it was probably not a good idea. *

 The upgrade seems to be successful each time. However, the moment I try
 to go to the site, I get the following error:



 *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 tried looking at the server log but there was nothing there (last
 entry was review related). I deleted the old log to see if one would get
 created, but no joy. Not sure how to debug this.

 Has anyone had this issue, and any ideas what I could to upgrade
 successfully?

 The rb-site upgrade output for path 1 (1.7.14 -> 2.0.2) is below:

 -  ---

 Creating tables ...
 Upgrading Review Board from 1.7.14 to 2.0.2
 There are unapplied evolutions for auth.
 There are unapplied evolutions for contenttypes.
 There are unapplied evolutions for accounts.
 There are unapplied evolutions for attachments.
 There are unapplied evolutions for changedescs.
 There are unapplied evolutions for diffviewer.
 There are unapplied evolutions for hostingsvcs.
 There are unapplied evolutions for reviews.
 There are unapplied evolutions for scmtools.
 There are unapplied evolutions for site.
 Adding baseline version for new models
 Project signature has changed - an evolution is required
 Installing custom SQL ...
 Installing indexes ...
 Installed 0 object(s) from 0 fixture(s)
 Evolution successful.
 -  ---

 Resetting in-database caches
 Upgrade complete!



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

Re: Issue upgrading from 1.7.14 to 2.0.2

2014-06-30 Thread sagar
 
So I changed my.cnf and set the default character set to utf8.
 
the apache log still shows:
 
codereviewtest.nyab-tds:80 127.0.0.1 - - [30/Jun/2014:20:01:32 +] "GET 
/admin/ HTTP/1.1" 500 551 "-" "Mozilla/5.0 (X11; Ubuntu; Linux i686; 
rv:24.0) Gecko/20100101 Firefox/24.0"

On Monday, 30 June 2014 14:39:49 UTC-5, sagar wrote:

> I hadn't change anything in mysql, so that's weird.
> I'll try this and post in a bit.
>
> On Friday, 27 June 2014 15:01:43 UTC-5, David Trowbridge wrote:
>
>> It looks like your table charsets aren't set properly in MySQL. I'd go in 
>> with the MySQL client and set them all to utf-8.
>>
>> -David
>>
>> On Jun 27, 2014, at 12:08 PM, sagar  wrote:
>>
>> There are three log files for apache:
>>
>> *other_vhosts_access.log*:
>>
>> codereview.nyab-tds:80 149.244.179.118 - - [27/Jun/2014:19:03:44 +] 
>>> "-" 408 0 "-" "-"
>>> codereview.nyab-tds:80 149.244.178.251 - - [27/Jun/2014:19:03:54 +] 
>>> "GET /dashboard/ HTTP/1.1" 200 4318 "
>>> http://codereview.nyab-tds/dashboard/"; "Mozilla/5.0 (X11; Linux x86_64; 
>>> rv:26.0) Gecko/20100101 Firefox/26.0"
>>> codereview.nyab-tds:80 149.244.179.84 - - [27/Jun/2014:19:04:00 +] 
>>> "-" 408 0 "-" "-"
>>> codereview.nyab-tds:80 149.244.179.96 - - [27/Jun/2014:19:04:10 +] 
>>> "GET /api/review-requests/1280/last-update/?api_format=json HTTP/1.1" 304 
>>> 273 "http://dfws0237.corp.knorr-bremse.com/r/1280/"; "Mozilla/5.0 (X11; 
>>> Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 
>>> Safari/537.36"
>>
>>
>> *access.log* is blank
>>
>> *error.log*:
>>
>> Error opening file for reading: Permission denied
>>> [Fri Jun 27 18:07:41 2014] [error] 
>>> /usr/local/lib/python2.7/dist-packages/Django-1.4.8-py2.7.egg/django/db/backends/mysql/base.py:114:
>>>  
>>> Warning: Incorrect string value: '\\xE2\\x88\\x92 (1...' for column 
>>> 'description' at row 1
>>> [Fri Jun 27 18:07:41 2014] [error]   return self.cursor.execute(query, 
>>> args)
>>
>>
>>
>> On Friday, 27 June 2014 12:25:08 UTC-5, David Trowbridge wrote:
>>>
>>> What about the apache error logs?
>>>
>>> -David
>>>
>>> On Jun 27, 2014, at 8:24 AM, sagar  wrote:
>>>
>>> Hi!
>>>
>>> We are currently on 1.7.14 and I am looking to upgrade us to 2.0.2.
>>>
>>> I've tried 3 paths to upgrade (all following the RB instructions - 
>>> upgrade RB, upgrade site, restart apache and memcached):
>>>
>>> 1.7.14 -> 2.0.2
>>>
>>> 1.7.14 -> 1.7.26 -> 2.0.2
>>>
>>> 1.7.14 -> 2.0.1 -> 2.0.2 
>>>
>>> *I didn't go from 1.7.14 to 1.7.26 to 2.0.1 because of the schema change 
>>> issue; figured it was probably not a good idea. *
>>>
>>> The upgrade seems to be successful each time. However, the moment I try 
>>> to go to the site, I get the following error:
>>>
>>>
>>>
>>> *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 tried looking at the server log but there was nothing there (last 
>>> entry was review related). I deleted the old log to see if one would get 
>>> created, but no joy. Not sure how to debug this.
>>>
>>> Has anyone had this issue, and any ideas what I could to upgrade 
>>> successfully?
>>>
>>> The rb-site upgrade output for path 1 (1.7.14 -> 2.0.2) is below:
>>>
>>> -  ---
>>>
>>> Creating tables ...
>>> Upgrading Review Board from 1.7.14 to 2.0.2
>>> There are unapplied evolutions for auth.
>>> There are unapplied evolutions for contenttypes.
>>> There are unapplied evolutions for accounts.
>>> There are unapplied evolutions for attachments.
>>> There are unapplied evolutions for changedescs.
>>> There are unapplied evolutions for diffviewer.
>>> There are unapplied evolutions for hostingsvcs.
>>> There are unapplied evolutions for reviews.
>>> There are unapplied evolutions for scmtools.
>>> There are unapplied evolutions for site.
>>> Adding baseline version for new models
>>> Project signature has changed - an evolution is required
>>> Installing custom SQL ...
>>> Installing indexes ...
>>> Installed 0 object(s) from 0 fixture(s)
>>> Evolution successful.
>>> -  ---
>>>
>>> Resetting in-database caches
>>> Upgrade complete!
>>>
>>>
>>>
>>>  -- 
>>> 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...@googlegroups.com.
>>> For more options, visit https://groups.google.com/d/optout.
>>>
>>>  -- 
>> Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
>> ---
>> Sign up for Review Board hosting at RBCommons: https://rbco

Re: Issue upgrading from 1.7.14 to 2.0.2

2014-06-30 Thread sagar
I hadn't change anything in mysql, so that's weird.
I'll try this and post in a bit.

On Friday, 27 June 2014 15:01:43 UTC-5, David Trowbridge wrote:

> It looks like your table charsets aren't set properly in MySQL. I'd go in 
> with the MySQL client and set them all to utf-8.
>
> -David
>
> On Jun 27, 2014, at 12:08 PM, sagar > 
> wrote:
>
> There are three log files for apache:
>
> *other_vhosts_access.log*:
>
> codereview.nyab-tds:80 149.244.179.118 - - [27/Jun/2014:19:03:44 +] 
>> "-" 408 0 "-" "-"
>> codereview.nyab-tds:80 149.244.178.251 - - [27/Jun/2014:19:03:54 +] 
>> "GET /dashboard/ HTTP/1.1" 200 4318 "
>> http://codereview.nyab-tds/dashboard/"; "Mozilla/5.0 (X11; Linux x86_64; 
>> rv:26.0) Gecko/20100101 Firefox/26.0"
>> codereview.nyab-tds:80 149.244.179.84 - - [27/Jun/2014:19:04:00 +] 
>> "-" 408 0 "-" "-"
>> codereview.nyab-tds:80 149.244.179.96 - - [27/Jun/2014:19:04:10 +] 
>> "GET /api/review-requests/1280/last-update/?api_format=json HTTP/1.1" 304 
>> 273 "http://dfws0237.corp.knorr-bremse.com/r/1280/"; "Mozilla/5.0 (X11; 
>> Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/34.0.1847.132 
>> Safari/537.36"
>
>
> *access.log* is blank
>
> *error.log*:
>
> Error opening file for reading: Permission denied
>> [Fri Jun 27 18:07:41 2014] [error] 
>> /usr/local/lib/python2.7/dist-packages/Django-1.4.8-py2.7.egg/django/db/backends/mysql/base.py:114:
>>  
>> Warning: Incorrect string value: '\\xE2\\x88\\x92 (1...' for column 
>> 'description' at row 1
>> [Fri Jun 27 18:07:41 2014] [error]   return self.cursor.execute(query, 
>> args)
>
>
>
> On Friday, 27 June 2014 12:25:08 UTC-5, David Trowbridge wrote:
>>
>> What about the apache error logs?
>>
>> -David
>>
>> On Jun 27, 2014, at 8:24 AM, sagar  wrote:
>>
>> Hi!
>>
>> We are currently on 1.7.14 and I am looking to upgrade us to 2.0.2.
>>
>> I've tried 3 paths to upgrade (all following the RB instructions - 
>> upgrade RB, upgrade site, restart apache and memcached):
>>
>> 1.7.14 -> 2.0.2
>>
>> 1.7.14 -> 1.7.26 -> 2.0.2
>>
>> 1.7.14 -> 2.0.1 -> 2.0.2 
>>
>> *I didn't go from 1.7.14 to 1.7.26 to 2.0.1 because of the schema change 
>> issue; figured it was probably not a good idea. *
>>
>> The upgrade seems to be successful each time. However, the moment I try 
>> to go to the site, I get the following error:
>>
>>
>>
>> *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 tried looking at the server log but there was nothing there (last entry 
>> was review related). I deleted the old log to see if one would get created, 
>> but no joy. Not sure how to debug this.
>>
>> Has anyone had this issue, and any ideas what I could to upgrade 
>> successfully?
>>
>> The rb-site upgrade output for path 1 (1.7.14 -> 2.0.2) is below:
>>
>> -  ---
>>
>> Creating tables ...
>> Upgrading Review Board from 1.7.14 to 2.0.2
>> There are unapplied evolutions for auth.
>> There are unapplied evolutions for contenttypes.
>> There are unapplied evolutions for accounts.
>> There are unapplied evolutions for attachments.
>> There are unapplied evolutions for changedescs.
>> There are unapplied evolutions for diffviewer.
>> There are unapplied evolutions for hostingsvcs.
>> There are unapplied evolutions for reviews.
>> There are unapplied evolutions for scmtools.
>> There are unapplied evolutions for site.
>> Adding baseline version for new models
>> Project signature has changed - an evolution is required
>> Installing custom SQL ...
>> Installing indexes ...
>> Installed 0 object(s) from 0 fixture(s)
>> Evolution successful.
>> -  ---
>>
>> Resetting in-database caches
>> Upgrade complete!
>>
>>
>>
>>  -- 
>> 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...@googlegroups.com.
>> For more options, visit https://groups.google.com/d/optout.
>>
>>  -- 
> 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...@googlegroups.com .
> For more options, visit https://groups.google.com/d/optout.
>
>

-- 
Get the Review Board Power Pack at http://www.reviewboard.org/powerpack/
---
Sign up for R

Re: Unable to use "New Review Request" to create requests with parent diffs

2014-06-30 Thread Bruce Cran
I've used NSIS in the past and I really don't like it: I've found it can
lead to fragile setup packages.  You may be able to use the free Visual
Studio 2013 Express with WiX after installing Update 2 to avoid having to
purchase a copy.

To build the installer, you'd just run "msbuild /m /p:Configuration=Release
contrib\installer\windows\rbtools.sln

-- 
Bruce


On Thu, Jun 26, 2014 at 2:05 AM, Christian Hammond  wrote:

> I looked into the Windows installer. I love the idea of getting one in,
> but at the moment, neither of us have Visual Studio, so we need to figure
> out if we want that as a dependency or if we want to evaluate something
> else (like NSIS). There’s also the matter of integrating this with our
> build system, which is another challenge to figure out.
>
> I’m going on vacation starting tomorrow, so I won’t be able to look into
> it any further until I’m back next week.
>

-- 
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/d/optout.


Re: New review request, no "bottom half" part

2014-06-30 Thread David Trowbridge
This feature is currently only implemented for GitHub and SVN repos. Support 
for more backends is coming down the road.

-David

> On Jun 30, 2014, at 4:53 AM, Pigeon  wrote:
> 
> 
> Short version of my question:
> 
> What would have caused the "bottom half" of the new review request page be 
> not shown at all?
> 
> Example: 
> https://www.reviewboard.org/docs/manual/2.0/_images/new-review-request.png
> 
> 
> Long version: I'm using reviewboard 2.0.2 with a git local repo. My 
> repository settings are:
> 
> Path: /path/to/a/locally/checked/out/repo/.git
> Mirror path: /var/git/repo   (this is a bare repo)
> Raw file URL: 
> http://git.mydomain.com/?p=path/repo.git;a=blob_plain;f=;hb=
> 
> I've tried enabling logging but I don't see anything at all even if I set the 
> level to debug.
> 
> Any ideas?
> 
> Thanks.
> 
> -- 
> 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/d/optout.

-- 
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/d/optout.


New review request, no "bottom half" part

2014-06-30 Thread Pigeon

Short version of my question:

What would have caused the "bottom half" of the new review request page be 
not shown at all?

Example: 
https://www.reviewboard.org/docs/manual/2.0/_images/new-review-request.png


Long version: I'm using reviewboard 2.0.2 with a git local repo. My 
repository settings are:

Path: /path/to/a/locally/checked/out/repo/.git
Mirror path: /var/git/repo   (this is a bare repo)
Raw file URL: 
http://git.mydomain.com/?p=path/repo.git;a=blob_plain;f=;hb=

I've tried enabling logging but I don't see anything at all even if I set 
the level to debug.

Any ideas?

Thanks.

-- 
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/d/optout.


Email All Reviewboard Users

2014-06-30 Thread Joe
Hello,

In our review board we have 200+ users. As a admin, I want to send an email 
to all these users. Is there any way to do it from within reviewboard.

We use RB 1.7.22

Best regards,  
Joe.

-- 
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/d/optout.


Re: Unable to Login Using LDAP Credentials

2014-06-30 Thread Stephen Gallagher
On 06/30/2014 01:05 AM, Kuldeep singh wrote:
> Hi Stephen Gallagher,
> I have changed ldap:// to ldaps:// and http:// to https://. But its
> still not working saying *"WARNING -  - LDAP error: {'info': 'A TLS
> packet with unexpected length was received.', 'desc': "Can't contact
> LDAP server"}"*
> 

HTTPS is irrelevant. If you're getting 'A TLS packet with unexpected
length was received.' then you're trying to use LDAPS against a
non-LDAPS port. Make sure your LDAP server supports LDAPS on the port
you connect to (or change the port to one that does)


> I don't know why its happening, I received certificate from System Admin
> and placed it in /etc/ssl/certs/ and set path to "TLS_CACERT   
> /etc/ssl/certs/dc4.cer" in ldap.conf.
> 
> Please help
> 
> Kuldeep
> 
> On Friday, June 27, 2014 8:46:07 PM UTC+5:30, Stephen Gallagher wrote:
> 
> On 06/24/2014 03:38 AM, Kuldeep singh wrote:
> > Hi Stephen,
> >
> > I provided Bind User credentials but now error log displaying
> different
> > *[Tue Jun 24 07:26:53 2014] [error] WARNING:root:LDAP error: {'info':
> > '2028: LdapErr: DSID-0C090203, comment: The server requires
> binds to
> > turn on integrity checking if SSLTLS are not already active on
> the
> > connection, data 0, v23f0', 'desc': 'Strong(er) authentication
> required'}
> > *
> > Please let me know if any server certificate required for
> authentication.
> >
> 
> 
> Yes, what your server is doing is telling you that it won't allow
> you to
> bind over an unencrypted connection. This means that you need to set
> Review Board up to use either an ldaps:// (SSL) connection or use TLS.
> This will also mean setting up your Review Board server to be
> capable of
> trusting the CA certificate that was used to sign the LDAP server
> certificate (this has to be left as an exercise to the reader, as it's
> different on different systems, even different Linux systems. Contact
> your system administrator for help)
> 
> -- 
> 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/d/optout.

-- 
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/d/optout.


rbt post sees API Error 210 with new RB 2.0.2 and Perforce setup

2014-06-30 Thread Stephen

I'm trying to setup a new ReviewBoard 2.0.2 instance with a Perforce SCM 
server. The RB site can be accessed via the browser fine but I'm having 
trouble posting my first review. I get this error when I run rbt post:

>>> Making HTTP GET request to 
http://srv-team-web2/rbsite2/api/repositories/
>>> Making HTTP GET request to 
http://srv-team-web2/rbsite2/api/review-requests/
>>> Making HTTP POST request to 
http://srv-team-web/rbsite2/api/review-requests/
>>> Got API Error 210 (HTTP code 500): There was an error fetching extended 
information for this repository.
>>> Error data: {u'stat': u'fail', u'err': {u'msg': u'There was an error 
fetching extended information for this repository.', u'code': 210}}
Traceback (most recent call last):
  File "/usr/local/bin/rbt", line 9, in 
load_entry_point('RBTools==0.6.1', 'console_scripts', 'rbt')()
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/main.py",
 
line 134, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/__init__.py",
 
line 416, in run_from_argv
exit_code = self.main(*args) or 0
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/post.py",
 
line 784, in main
submit_as=self.options.submit_as)
  File 
"/usr/local/lib/python2.7/dist-packages/RBTools-0.6.1-py2.7.egg/rbtools/commands/post.py",
 
line 507, in post_request
raise CommandError("Error creating review request: %s" % e)
rbtools.commands.CommandError: Error creating review request: There was an 
error fetching extended information for this repository. (HTTP 500, API 
Error 210)

The RB Server log shows an authentication error but I am able to log onto 
the Perforce server using the same credentials from the command line as the 
user concerned from the server host. The error is:

2014-06-30 10:09:25,132 - ERROR - None - stephen - 
/rbsite2/api/review-requests/ - Got unexpected SCMError when creating 
repository: [P4#run] Errors during command execution( "p4 login" )

[Error]: "Password invalid.\n'ADAuthentication' validation failed: 
Authentication Failed. Access Denied"

Traceback (most recent call last):
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/webapi/resources/review_request.py",
 
line 564, in create
create_from_commit_id=create_from_commit_id)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/reviews/managers.py",
 
line 135, in create
review_request.update_from_commit_id(commit_id)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/reviews/models/base_review_request_details.py",
 
line 181, in update_from_commit_id
changeset = scmtool.get_changeset(commit_id, allow_empty=True)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/scmtools/perforce.py",
 
line 327, in get_changeset
changeset = self.client.get_changeset(changesetid)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/scmtools/perforce.py",
 
line 203, in get_changeset
return self._run_worker(lambda: self._get_changeset(changesetid))
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/scmtools/perforce.py",
 
line 189, in _run_worker
self._convert_p4exception_to_scmexception(e)
  File 
"/usr/local/lib/python2.7/dist-packages/ReviewBoard-2.0.2-py2.7.egg/reviewboard/scmtools/perforce.py",
 
line 176, in _convert_p4exception_to_scmexception
raise SCMError(error)
SCMError: [P4#run] Errors during command execution( "p4 login" )

[Error]: "Password invalid.\n'ADAuthentication' validation failed: 
Authentication Failed. Access Denied"

Is there any extra logging I can enable to investigate a Perforce SCM 
repository setup?

Note: I've had no trouble using the same Perforce server with a RB 1.6 
server I setup.

Thanks,
Stephen.

-- 
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/d/optout.