Error on adding repository to reviewboard

2012-05-30 Thread Arvind
Hello,
 
I have setup a review board on my Ubuntu machine (10.04).
When I try to add a repository which is on perforce server, following error 
message gets flashed everytime :
 
*[P4#run] Errors during command execution("p4 describe s1") [Error]: Client 
is too old to use this server. Please upgrade to a 2011.1 or later Perforce 
client.*
 
However I have installed latest P4 client avaialble on perforce website.
*p4 -V*  output : 
Rev. P4/LINUX26X86/2012.1/459601 (2012/05/11)
 
 
also* P4 info* gives following output:
 
Server Version : P4D/Linux26X86_64/2011.1/428451 (2012/03/08)
Minimum Client Level: 2011.1:70
 
What I understand is that I have version 2012.1 installed on my ubuntu 
machine and server to which I'm trying to connect allows 2011.1 or later 
client versions.
On my Ubuntu machine I can successfully perform P4 sync commands.
 
Can you please help me how to debug this problem or pint me where the 
problem could be.
 
Thanks,
Arvind

-- 
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: Apache configuration for Review Board - to be Reviewed

2012-05-30 Thread Christian Hammond
Hi,

As I mentioned in my other reply, you'll need to get a DNS entry for your 
domain pointing to your public IP on EC2. Apache matches the accessed domain to 
find the right site.

Christian



On May 30, 2012, at 20:31, Soumen Hajra  wrote:

> All,  Soumen here from www.snapstech.com
> While configuring Apache, I find few .conf files which is confusing
> me.  I am not sure which one to
> configure and how to configure correctly.. This is what I did. But it
> is not working..
> 
> # rb-site install /var/www/reviewboard
> 
> - Domain Name: reviews.snapstechnologies.com
> - Root Path [/]: /reviews/
> - Media URL [media/]: media/
> - Database Type: mysql
> - Database Name [reviewboard]: reviewboard
> - Database Server [localhost]: 127.0.0.1
> - Database Username: reviewboard
> - Database Password: reviewboard
> - Cache Type: memcached
> - Memcache Server [memcached://localhost:11211/]: memcached://localhost:11211/
> - Web Server: apache
> - Python Loader: wsgi
> - Username [admin]: admin
> - Password: admin
> - E-Mail Address: My Email Address
> 
> After these details .. following file gets created..
> 
> [root@ip-10-28-87-177 conf]# pwd
> /var/www/reviewboard/conf
> [root@ip-10-28-87-177 conf]# cat apache-wsgi.conf
> 
>   ServerName reviews.snapstechnologies.com
>   DocumentRoot "/var/www/reviewboard/htdocs"
> 
>   # Error handlers
>   ErrorDocument 500 /errordocs/500.html
> 
>   WSGIPassAuthorization On
>   WSGIScriptAlias "/reviews" "/var/www/reviewboard/htdocs/
> reviewboard.wsgi/reviews"
> 
>   
>   AllowOverride All
>   Options -Indexes FollowSymLinks
>   Allow from all
>   
> 
>   # Alias static media requests to filesystem
>   Alias /reviews/media "/var/www/reviewboard/htdocs/media"
>   Alias /reviews/errordocs "/var/www/reviewboard/htdocs/
> errordocs"
>   Alias /reviews/favicon.ico "/var/www/reviewboard/htdocs/media/
> rbcommons/images/favicon.png"
> 
> [root@ip-10-28-87-177 conf]#
> 
> 
> Now I see there is /etc/httpd/conf.d  directory. DO I NEED TO MAKE ANY
> CHANGES HERE?
> 
> Now I am making changes to the file /etc/httpd/conf/httpd.conf
> 
> 
>   ServerName reviews.snapstechnologies.com
>   DocumentRoot "/var/www/reviewboard/htdocs"
> 
>   # Error handlers
>   ErrorDocument 500 /errordocs/500.html
> 
>   WSGIPassAuthorization On
>   WSGIScriptAlias "/reviews" "/var/www/reviewboard/htdocs/
> reviewboard.wsgi/reviews"
> 
>   
>   AllowOverride All
>   Options -Indexes FollowSymLinks
>   Allow from all
>   
> 
>   # Alias static media requests to filesystem
>   Alias /reviews/media "/var/www/reviewboard/htdocs/media"
>   Alias /reviews/errordocs "/var/www/reviewboard/htdocs/
> errordocs"
>   Alias /reviews/favicon.ico "/var/www/reviewboard/htdocs/media/
> rbcommons/images/favicon.png"
> 
> 
> On restarting I got folowing warning. What does it mean?
> [root@ip-10-28-87-177 conf]# service httpd restart
> Stopping httpd:[  OK  ]
> Starting httpd: [Wed May 30 21:50:55 2012] [warn] module wsgi_module
> is already loaded, skipping
>  [  OK  ]
> 
> Here is my server: ec2-23-20-195-216.compute-1.amazonaws.com
> What will be my url to look if reviewbord is working? It still is not
> working..
> 
> -- 
> Want to help the Review Board project? Donate today at 
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to 
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at 
> http://groups.google.com/group/reviewboard?hl=en

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


Apache configuration for Review Board - to be Reviewed

2012-05-30 Thread Soumen Hajra
All,  Soumen here from www.snapstech.com
While configuring Apache, I find few .conf files which is confusing
me.  I am not sure which one to
configure and how to configure correctly.. This is what I did. But it
is not working..

# rb-site install /var/www/reviewboard

- Domain Name: reviews.snapstechnologies.com
- Root Path [/]: /reviews/
- Media URL [media/]: media/
- Database Type: mysql
- Database Name [reviewboard]: reviewboard
- Database Server [localhost]: 127.0.0.1
- Database Username: reviewboard
- Database Password: reviewboard
- Cache Type: memcached
- Memcache Server [memcached://localhost:11211/]: memcached://localhost:11211/
- Web Server: apache
- Python Loader: wsgi
- Username [admin]: admin
- Password: admin
- E-Mail Address: My Email Address

After these details .. following file gets created..

[root@ip-10-28-87-177 conf]# pwd
/var/www/reviewboard/conf
[root@ip-10-28-87-177 conf]# cat apache-wsgi.conf

   ServerName reviews.snapstechnologies.com
   DocumentRoot "/var/www/reviewboard/htdocs"

   # Error handlers
   ErrorDocument 500 /errordocs/500.html

   WSGIPassAuthorization On
   WSGIScriptAlias "/reviews" "/var/www/reviewboard/htdocs/
reviewboard.wsgi/reviews"

   
   AllowOverride All
   Options -Indexes FollowSymLinks
   Allow from all
   

   # Alias static media requests to filesystem
   Alias /reviews/media "/var/www/reviewboard/htdocs/media"
   Alias /reviews/errordocs "/var/www/reviewboard/htdocs/
errordocs"
   Alias /reviews/favicon.ico "/var/www/reviewboard/htdocs/media/
rbcommons/images/favicon.png"

[root@ip-10-28-87-177 conf]#


Now I see there is /etc/httpd/conf.d  directory. DO I NEED TO MAKE ANY
CHANGES HERE?

Now I am making changes to the file /etc/httpd/conf/httpd.conf


   ServerName reviews.snapstechnologies.com
   DocumentRoot "/var/www/reviewboard/htdocs"

   # Error handlers
   ErrorDocument 500 /errordocs/500.html

   WSGIPassAuthorization On
   WSGIScriptAlias "/reviews" "/var/www/reviewboard/htdocs/
reviewboard.wsgi/reviews"

   
   AllowOverride All
   Options -Indexes FollowSymLinks
   Allow from all
   

   # Alias static media requests to filesystem
   Alias /reviews/media "/var/www/reviewboard/htdocs/media"
   Alias /reviews/errordocs "/var/www/reviewboard/htdocs/
errordocs"
   Alias /reviews/favicon.ico "/var/www/reviewboard/htdocs/media/
rbcommons/images/favicon.png"


On restarting I got folowing warning. What does it mean?
[root@ip-10-28-87-177 conf]# service httpd restart
Stopping httpd:[  OK  ]
Starting httpd: [Wed May 30 21:50:55 2012] [warn] module wsgi_module
is already loaded, skipping
  [  OK  ]

Here is my server: ec2-23-20-195-216.compute-1.amazonaws.com
What will be my url to look if reviewbord is working? It still is not
working..

-- 
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: Could you please check the steps to enable reviewboard to display other language?

2012-05-30 Thread Brant Chen
Thank you Po-Chien!
我发现zh_CN也可以。
我之前的错误在于:
我翻译了mo里面的某一句话,并找到显示那句话的页面,结果发现编译后那就话的页面仍然是英文。
后来我才发现原因所在:我找到显示那句话的页面错了

非常感谢您的帮助!


BR/Brant.



2012/5/21 Po-Chien Lin 

> Oh,
>
> I forgot that ``LANGUAGES'' item need also be modified to be the same with
> your ``LANGUAGE_CODE'' setting
>
> LANGUAGE_CODE = 'zh-cn'
> USE_I18N = True
> LANGUAGES = (
>  ('zh-cn', _('Chinese')),
> )
>
> But keep your django.po file under ``locale/zh_CN/**LC_MESSAGES/'' as you
> already did.
>
> -linpc
>
> Po-Chien Lin於 2012年5月21日星期一UTC+8下午3�r45分35秒��道:
>
>> Hi Brant,
>>
>> The  LANGUAGE_CODE should be in the form: (It is also mentioned in
>> settings.py)
>> http://www.w3.org/TR/REC-**html40/struct/dirlang.html#h-**8.1.1
>>
>> In your case, I think it should be:
>> LANGUAGE_CODE = 'zh-cn'
>>
>> Try it, Good luck :)
>>
>> - linpc
>>
>> Brant於 2012年5月17日星期四UTC+**8下午3�r11分20秒��道:
>>>
>>> Could anyone please check the steps to enable reviewboard to display
>>> other language?
>>>
>>> Could anyone please check my steps to enable reviewboard to display
>>> other language?
>>> It doesn't work.
>>> Thank you in advanced.
>>>
>>> Environment:
>>> Ubuntu 12.04 LTS
>>> python 2.7
>>> ReviewBoard: 1.6.6
>>> Installed by easy_install
>>> English language show well.
>>> System default locale: zh_CN.UTF-8
>>>
>>> My steps to enable it to show zh_CN language:
>>> 1. Modify following places in "/usr/local/lib/python2.7/**dist-packages/
>>>
>>> ReviewBoard-1.6.6-py2.7.egg/**reviewboard/settings.py":
>>>   (1) LANGUAGE_CODE = 'zh_CN'
>>>   (2) USE_I18N = True
>>>LANGUAGES = (
>>>  ('zh', _('Chinese')),
>>> )
>>> 2. Compile settings.py by a python script:
>>> import py_compile
>>>
>>> py_compile.compile(r'/usr/**local/lib/python2.7/dist-**packages/
>>> ReviewBoard-1.6.6-py2.7.egg/**reviewboard/settings.py')
>>>
>>> 3. Under /usr/local/lib/python2.7/dist-**packages/ReviewBoard-1.6.6-
>>> py2.7.egg/reviewboard ,run:
>>> mkdir -p locale/zh_CN/LC_MESSAGES/
>>> django-admin.py makemessages -l zh_CN
>>>
>>> Now we got django.po.
>>>
>>> 4. Fill out locale/zh_CN/LC_MESSAGES/**django.po with my Chinese
>>> translation.
>>>
>>> 5. Under /usr/local/lib/python2.7/dist-**packages/ReviewBoard-1.6.6-
>>> py2.7.egg/reviewboard ,run:
>>> django-admin.py compilemessages -l zh_CN
>>>
>>> Now we got django.mo.
>>>
>>> 6. Restart apatch2:
>>> apachectl  -k restart
>>>
>>> 7. Refresh ReviewBoard portal.
>>>
>>> Unfortunately, Nothing happened :(
>>>
>>> Question 1:
>>> 1. Could you please point me what should I do with above steps?
>>>
>>> 2. I tried copying /usr/local/lib/python2.7/dist-**packages/Sphinx-1.1.3-
>>>
>>> py2.7.egg/sphinx/locale/zh_CN/**LC_MESSAGES/sphinx.mo
>>>  to
>>>  /usr/local/lib/python2.7/**dist-packages/ReviewBoard-1.6.**6-py2.7.egg/
>>>
>>> reviewboard/locale/zh_CN/LC_**MESSAGES/django.mo
>>> Then restart apache, now it works partly
>>> But after I refresh portal again, it went back to English
>>> Do you know why?
>>>
>>> Thank you very much ~~
>>>
>>  --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
>

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

Re: Preventing self-reviews

2012-05-30 Thread Rob Fagen
Thanks for the clarification. We'll look into it on our end in the 
pre-commit integration.

On Wednesday, May 30, 2012 11:55:44 AM UTC-7, Christian Hammond wrote:
>
> Review Board actively tries to stay out of this sort of policy. We don't 
> have anything for preventing self-reviews, and likely won't. In the end, we 
> have no control whether a person is allowed to submit code. That's a 
> company policy sort of thing. So, it doesn't make a lot of sense to prevent 
> a user from reviewing their own code or marking Ship It.
>
> If you have some form of pre-commit hook that checks if code has been 
> reviewed, it should also be able to filter out the Ship Its from the author 
> quite easily.
>
> Christian
>
> On Wed, May 30, 2012 at 11:24 AM, Rob Fagen  wrote:
>
>> Doesn't look like this was ever answered. We've got the same situation 
>> that we want to prevent self-review (we have another mechanism for checking 
>> in without review).
>>
>>
>> On Thursday, January 5, 2012 6:39:50 AM UTC-8, Igor Berger wrote:
>>>
>>> Agreed. But I want to make sure at least 1 other person looks at my 
>>> changes.
>>>
>>> It's good that I can comment on a review I submitted.
>>> But I want to enforce that someone else has to click Ship It.
>>>
>>
>

-- 
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: Preventing self-reviews

2012-05-30 Thread Christian Hammond
Review Board actively tries to stay out of this sort of policy. We don't
have anything for preventing self-reviews, and likely won't. In the end, we
have no control whether a person is allowed to submit code. That's a
company policy sort of thing. So, it doesn't make a lot of sense to prevent
a user from reviewing their own code or marking Ship It.

If you have some form of pre-commit hook that checks if code has been
reviewed, it should also be able to filter out the Ship Its from the author
quite easily.

Christian

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


On Wed, May 30, 2012 at 11:24 AM, Rob Fagen  wrote:

> Doesn't look like this was ever answered. We've got the same situation
> that we want to prevent self-review (we have another mechanism for checking
> in without review).
>
>
> On Thursday, January 5, 2012 6:39:50 AM UTC-8, Igor Berger wrote:
>>
>> Agreed. But I want to make sure at least 1 other person looks at my
>> changes.
>>
>> It's good that I can comment on a review I submitted.
>> But I want to enforce that someone else has to click Ship It.
>>
>  --
> Want to help the Review Board project? Donate today at
> http://www.reviewboard.org/donate/
> Happy user? Let us know at http://www.reviewboard.org/users/
> -~--~~~~--~~--~--~---
> To unsubscribe from this group, send email to
> reviewboard+unsubscr...@googlegroups.com
> For more options, visit this group at
> http://groups.google.com/group/reviewboard?hl=en
>

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

Re: Preventing self-reviews

2012-05-30 Thread Rob Fagen
Doesn't look like this was ever answered. We've got the same situation that 
we want to prevent self-review (we have another mechanism for checking in 
without review).

On Thursday, January 5, 2012 6:39:50 AM UTC-8, Igor Berger wrote:
>
> Agreed. But I want to make sure at least 1 other person looks at my 
> changes.
>
> It's good that I can comment on a review I submitted.
> But I want to enforce that someone else has to click Ship It.
>

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

New RB site setup issues with apache

2012-05-30 Thread Dan Miller
I'm having issues getting my ReviewBoard site up and running and
wanted to see if anyone has encountered this before or has ideas on
what I can try to resolve it.

After installing all the dependencies (i'm pretty sure I got them
all), I installed ReviewBoard via easy_install.  I then ran "rb-site
install /var/www/reviews" to install my RB site - accepting mostly the
defaults.  I then edited my apache http.conf file to include the
apache-wsgi.conf and restarted the httpd.  But now when I access the
server via a browser it doesn't load my RB site.  I see a HTTP 301
response code in my access.log, but the browser never redirects
anywhere.  I have tried this on Firefox 3.6 and IE 8 and both behave
the same.

10.x.x.x - - [30/May/2012:02:56:18 -0700] "GET / HTTP/1.1" 301 - "-"
"Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 5.1; Trident/4.0; .NET
CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.4506.2152; .NET CLR
3.5.30729; .NET4.0C; .NET4.0E)"

The httpd error_log shows the following on startup:

[Wed May 30 03:00:13 2012] [notice] suEXEC mechanism enabled
(wrapper: /usr/sbin/suexec)
[Wed May 30 03:00:13 2012] [notice] Digest: generating secret for
digest authentication ...
[Wed May 30 03:00:13 2012] [notice] Digest: done
[Wed May 30 03:00:13 2012] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Wed May 30 03:00:13 2012] [warn] mod_wsgi: Runtime using Python/
2.6.6.
[Wed May 30 03:00:13 2012] [notice] Apache/2.2.15 (Unix) DAV/2
mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.12.6.2 PHP/
5.3.2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips SVN/1.6.11 mod_wsgi/3.2 Python/
2.6.6 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal
operations

I'm not sure if the warn in the mod_wsgi compiled/runtime discrepancy
is causing some issues?

Then when accessing the site I get a security warning in the httpd
error_log:

[Wed May 30 03:01:55 2012] [error] /usr/lib/python2.6/site-packages/
pycrypto-2.6-py2.6-linux-x86_64.egg/Crypto/Util/number.py:57:
PowmInsecureWarning: Not using mpz_powm_sec.  You should rebuild using
libgmp >= 5 to avoid timing attack vulnerability.
[Wed May 30 03:01:55 2012] [error]   _warn("Not using mpz_powm_sec.
You should rebuild using libgmp >= 5 to avoid timing attack
vulnerability.", PowmInsecureWarning)

Any ideas on what I've done wrong and how I can resolve these issues?

Thanks!

Dan

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