Re: Debug logs from custom RB extensions

2017-02-02 Thread Abhishek Choudhary
Hi,

Its nothing really different from what is done in rbslack extension 
(present in rb-extension-pack repo on github). I followed that as an 
example to create the custom extension below which will send updates on 
different review request related events.

Code snippets:

import logging
.

 def on_review_published(self, user, review, **kwargs):
 """
 Handler to send update for the review_published signal.
 This is called when a review is published for a review request.
 """
 # Get review request corresponding to this review
 review_request = review.review_request
 logging.debug("RBExtension: Sending update for " + \
 "review_published event: review request pk=%s" % review_request.pk)



Thanks,
Abhi


On Friday, February 3, 2017 at 2:49:22 AM UTC+5:30, Christian Hammond wrote:
>
> Hi Abhi,
>
> Can you show me the code for doing the logging? Logging from extensions 
> should definitely be going into the reviewboard.log file.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Thu, Feb 2, 2017 at 1:45 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I have written a custom RB extension but debug logs statements are not 
>> getting printed in the logs. I am using Apache to run RB. I have enabled 
>> debug logs in settings_local in Django configuration and also enabled 
>> Server debug logs from Admin UI.
>> I am not having any luck with this. I am using logging module in the 
>> extension similar to rbslack extension 
>> <https://github.com/reviewboard/rb-extension-pack/tree/9279adf6bd68c58c641641e28f14626d159bcad0/rbslack>
>>
>> Could you please tell me the correct way to enable debug logging for RB 
>> server that will enable logs from Extensions as well.
>>
>> Thanks,
>> Abhi
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Debug logs from custom RB extensions

2017-02-02 Thread Abhishek Choudhary
Hi,

I have written a custom RB extension but debug logs statements are not 
getting printed in the logs. I am using Apache to run RB. I have enabled 
debug logs in settings_local in Django configuration and also enabled 
Server debug logs from Admin UI.
I am not having any luck with this. I am using logging module in the 
extension similar to rbslack extension 


Could you please tell me the correct way to enable debug logging for RB 
server that will enable logs from Extensions as well.

Thanks,
Abhi

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Review Board turns 10 today!

2016-09-28 Thread Abhishek Choudhary
Happy Birthday ReviewBoard :) This is one of the most active and helpful 
forum i have seen.

Thanks :)
Abhi

On Wednesday, September 28, 2016 at 4:54:37 AM UTC+5:30, Christian Hammond 
wrote:
>
> Hey everyone,
>
> Review Board is officially 10 years old today! Happy birthday Review Board!
>
> There's been a lot of change in the industry in 10 years, and during that 
> time we've seen code review go from a painful process of whiteboards or 
> e-mailed diff attachments to something that people can at least mostly 
> tolerate doing :) I like to think we've helped with that a bit.
>
> The product's certainly grown a lot in 10 years. In the beginning, it was 
> really just a tiny experimental project that could talk to one repository. 
> These days, it's used at thousands of companies, some of which actually 
> have several million review requests posted.
>
> I'm personally very proud of how far this project has come. We were able 
> to take our little side project and turn it into a full-time job, and I 
> feel so lucky to be able to focus on this every day. We wouldn't be here 
> without the support of our user base, so thank you everyone for helping us 
> get to 10 years. :)
>
> We wrote a Happy Birthday blog post 
> 
>  
> about the beginnings of Review Board, where we are now, and where we're 
> going over the next couple of years.
>
> We always like hearing from people who use Review Board every day. I'd 
> love to hear of any good stories people might have about Review Board, and 
> of course if you are a happy user, let's get you on the Happy Users 
>  page :)
>
> Here's to 10 more great years!
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag 
> Makers of Review Board 
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Cannot Upload diff using RBTools v0.7.6

2016-09-19 Thread Abhishek Choudhary
Hi David,

Please see - 
https://groups.google.com/d/msg/reviewboard/Xt4lVN14OSU/u1NhUVHhDgAJ. 
Currently RBTools doesn't generate/upload diff for uncommitted changes in 
GIT repository and hence I have to generate the diff myself and upload 
using diff-filename feature.

Is there any issue/request logged requesting this feature  - posting diff 
for changes in working copy or index? Should I log a feature request?

Thanks,
Abhi

On Saturday, September 17, 2016 at 1:30:45 AM UTC+5:30, David Trowbridge 
wrote:
>
> We have no immediate plans to allow review requests to span multiple 
> repositories since that's a pretty fundamental change to the database 
> schema.
>
> This is really only a problem when creating your own diffs and using rbt 
> post with --diff-filename. If you let rbt post do the diff, it would verify 
> that the current repository matched the review request you were trying to 
> update.
>
> -David
>
> On Fri, Sep 16, 2016 at 4:31 AM Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> After putting some debug logging in ReviewBoard code I was able to figure 
>> out the issue:
>>
>> I was putting a diff from a different repository in the already created 
>> review request which wasn't clear from the Error from RBTools command - may 
>> be we can be more specific here. It was a clear mismatch -between 
>> repositories which was wrong. 
>>
>> Is there any plan to support multiple repositories in same review request?
>>
>> Server logs:
>>
>> *[Fri Sep 16 11:09:24.545492 2016] [wsgi:error] [pid 19647] YYY -in 
>> validate_diff.py repository:  *
>>
>> [Fri Sep 16 11:09:24.545536 2016] [wsgi:error] [pid 19647]  path: 
>>  
>>
>> [Fri Sep 16 11:09:24.545554 2016] [wsgi:error] [pid 19647]  
>> base_commit_id: None
>>
>> [Fri Sep 16 07:09:24.953046 2016] [wsgi:info] [pid 10408] mod_wsgi 
>> (pid=10408): Python home /u/choudhab/reviewboard/RBenv-2.5.
>>
>> [Fri Sep 16 07:09:24.953376 2016] [wsgi:info] [pid 10408] mod_wsgi 
>> (pid=10408): Initializing Python.
>>
>> [Fri Sep 16 07:09:25.126321 2016] [wsgi:info] [pid 10408] mod_wsgi 
>> (pid=10408): Attach interpreter ''.
>>
>> [Fri Sep 16 07:09:25.126557 2016] [wsgi:info] [pid 10408] mod_wsgi 
>> (pid=10408): Adding 
>> '/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages' to path
>>
>> .
>>
>> [Fri Sep 16 07:09:25.164827 2016] [wsgi:info] [pid 10408] mod_wsgi 
>> (pid=10408): Imported 'mod_wsgi'.
>>
>> [Fri Sep 16 11:09:25.367645 2016] [wsgi:error] [pid 19647] XXX- in 
>> diff.py the request for which diff is created: 19569L
>>
>> *[Fri Sep 16 11:09:25.367709 2016] [wsgi:error] [pid 19647] XXX- in 
>> diff.py the review request repository is: *
>>
>> [Fri Sep 16 11:09:25.367778 2016] [wsgi:error] [pid 19647] YYY- Form data:
>>
>> [Fri Sep 16 11:09:25.367796 2016] [wsgi:error] [pid 19647] PPP - 
>> '_encoding' : 'utf-8'
>>
>> [Fri Sep 16 11:09:25.367803 2016] [wsgi:error] [pid 19647] PPP - 
>> '_mutable' : True
>>
>> [Fri Sep 16 11:09:25.405357 2016] [wsgi:error] [pid 19647] YYY - diff.py 
>> UploadDiffForm: > 0x2ab3fab11090>
>>
>> [Fri Sep 16 11:09:25.405436 2016] [wsgi:error] [pid 19647] OOO - 'files' 
>> : > (application/octet-stream)>
>>
>> ]}>
>>
>> [Fri Sep 16 11:09:25.405453 2016] [wsgi:error] [pid 19647] OOO - 
>> 'is_bound' : True
>>
>> [Fri Sep 16 11:09:25.405473 2016] [wsgi:error] [pid 19647] OOO - 
>> 'cleaned_data' : {'parent_diff_path': None, 'path': > diff (application/
>>
>> octet-stream)>, 'base_commit_id': None}
>>
>> [Fri Sep 16 11:09:25.405487 2016] [wsgi:error] [pid 19647] OOO - 
>> 'error_class' : 
>>
>> [Fri Sep 16 11:09:25.405494 2016] [wsgi:error] [pid 19647] OOO - 
>> 'empty_permitted' : False
>>
>> *[Fri Sep 16 11:09:25.405525 2016] [wsgi:error] [pid 19647] OOO - 
>> 'repository' : *
>>
>> [Fri Sep 16 11:09:25.405573 2016] [wsgi:error] [pid 19647] OOO - 'fields' 
>> : {'path': , 
>> 'parent_diff_pa
>>
>> th': , 
>> 'base_commit_id': }
>>
>> [Fri Sep 16 11:09:25.405585 2016] [wsgi:error] [pid 19647] OOO - 
>> 'initial' : {}
>>
>> [Fri Sep 16 11:09:25.409148 2016] [wsgi:error] [pid 19647] OOO - 
>> 'request' : >
>> [Fri Sep 16 11:09:25.409155 2016] [wsgi:error] [pid 19647] 
>> path:/api/review-requests/19569/diffs/,
>>
>> [Fri Sep 16 11:09:25.409157 2016] [wsgi:error] [pid 19647] 
>> GET:,
>>
>>
>> On Friday, September 16, 2016 at 2:02:03 PM UTC+5:30, 

Re: Cannot Upload diff using RBTools v0.7.6

2016-09-16 Thread Abhishek Choudhary
After putting some debug logging in ReviewBoard code I was able to figure 
out the issue:

I was putting a diff from a different repository in the already created 
review request which wasn't clear from the Error from RBTools command - may 
be we can be more specific here. It was a clear mismatch -between 
repositories which was wrong. 

Is there any plan to support multiple repositories in same review request?

Server logs:

*[Fri Sep 16 11:09:24.545492 2016] [wsgi:error] [pid 19647] YYY -in 
validate_diff.py repository:  *

[Fri Sep 16 11:09:24.545536 2016] [wsgi:error] [pid 19647]  path: 
 

[Fri Sep 16 11:09:24.545554 2016] [wsgi:error] [pid 19647]  base_commit_id: 
None

[Fri Sep 16 07:09:24.953046 2016] [wsgi:info] [pid 10408] mod_wsgi 
(pid=10408): Python home /u/choudhab/reviewboard/RBenv-2.5.

[Fri Sep 16 07:09:24.953376 2016] [wsgi:info] [pid 10408] mod_wsgi 
(pid=10408): Initializing Python.

[Fri Sep 16 07:09:25.126321 2016] [wsgi:info] [pid 10408] mod_wsgi 
(pid=10408): Attach interpreter ''.

[Fri Sep 16 07:09:25.126557 2016] [wsgi:info] [pid 10408] mod_wsgi 
(pid=10408): Adding 
'/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages' to path

.

[Fri Sep 16 07:09:25.164827 2016] [wsgi:info] [pid 10408] mod_wsgi 
(pid=10408): Imported 'mod_wsgi'.

[Fri Sep 16 11:09:25.367645 2016] [wsgi:error] [pid 19647] XXX- in diff.py 
the request for which diff is created: 19569L

*[Fri Sep 16 11:09:25.367709 2016] [wsgi:error] [pid 19647] XXX- in diff.py 
the review request repository is: *

[Fri Sep 16 11:09:25.367778 2016] [wsgi:error] [pid 19647] YYY- Form data:

[Fri Sep 16 11:09:25.367796 2016] [wsgi:error] [pid 19647] PPP - 
'_encoding' : 'utf-8'

[Fri Sep 16 11:09:25.367803 2016] [wsgi:error] [pid 19647] PPP - '_mutable' 
: True

[Fri Sep 16 11:09:25.405357 2016] [wsgi:error] [pid 19647] YYY - diff.py 
UploadDiffForm: 

[Fri Sep 16 11:09:25.405436 2016] [wsgi:error] [pid 19647] OOO - 'files' : 


]}>

[Fri Sep 16 11:09:25.405453 2016] [wsgi:error] [pid 19647] OOO - 'is_bound' 
: True

[Fri Sep 16 11:09:25.405473 2016] [wsgi:error] [pid 19647] OOO - 
'cleaned_data' : {'parent_diff_path': None, 'path': , 'base_commit_id': None}

[Fri Sep 16 11:09:25.405487 2016] [wsgi:error] [pid 19647] OOO - 
'error_class' : 

[Fri Sep 16 11:09:25.405494 2016] [wsgi:error] [pid 19647] OOO - 
'empty_permitted' : False

*[Fri Sep 16 11:09:25.405525 2016] [wsgi:error] [pid 19647] OOO - 
'repository' : *

[Fri Sep 16 11:09:25.405573 2016] [wsgi:error] [pid 19647] OOO - 'fields' : 
{'path': , 
'parent_diff_pa

th': , 
'base_commit_id': }

[Fri Sep 16 11:09:25.405585 2016] [wsgi:error] [pid 19647] OOO - 'initial' 
: {}

[Fri Sep 16 11:09:25.409148 2016] [wsgi:error] [pid 19647] OOO - 'request' 
: ,


On Friday, September 16, 2016 at 2:02:03 PM UTC+5:30, Abhishek Choudhary 
wrote:
>
> Hi,
>
> I am able to post diff for new files in the same repository. I am also 
> able to post diffs without errors in another repository with similar 
> configuration.
> I have checked that the files exist in the remote.
>
> Any help will be appreciated.
>
> Thanks,
> Abhi
>
> On Friday, September 16, 2016 at 12:27:33 PM UTC+5:30, Abhishek Choudhary 
> wrote:
>>
>> 'git diff HEAD > /var/tmp/rb_temp_diff_q7okiA'
>>
>>
>>
>> On Friday, September 16, 2016 at 4:15:13 AM UTC+5:30, David Trowbridge 
>> wrote:
>>>
>>> How are you creating the diff file that you're trying to upload?
>>>
>>> -David
>>>
>>> On Thu, Sep 15, 2016 at 1:07 PM Abhishek Choudhary <xab...@gmail.com> 
>>> wrote:
>>>
>>>> Hi
>>>>
>>>> I am using RBTools v0.7.6 with ReviewBoard v2.5.6.1 but I am not able 
>>>> to create review request using post command. I get below error. However, I 
>>>> am able to create review request for the same repository and diff from UI.
>>>>
>>>> Any help with this error will be appreciated. 
>>>>
>>>> *RBtools error:*
>>>> Note that /u/choudhab/base//bin/share/post-review.py is the same rbt 
>>>> script with some authentication customization for client side.
>>>>
>>>> Command:
>>>> /u/choudhab/base//bin/share/post-review.py post  --server 
>>>> reviewboard-staging.deshaw.com --summary "Personal#10377" 
>>>> --description "test" --review-request-id 19569 --target-people choudhab 
>>>> --bugs-closed personal/10377 --debug  --publish --diff-filename 
>>>> /var/tmp/rb_temp_diff_q7okiA
>>>>
>>>> Traceback (most recent call last):
>>>>   File "/u/choudhab/base//bin/share/post-review.py", line 169, in 
>>>> 
>>>> sys.exit(main())
>>>>   File 
>>>> &quo

Re: Cannot Upload diff using RBTools v0.7.6

2016-09-16 Thread Abhishek Choudhary
Hi,

I am able to post diff for new files in the same repository. I am also able 
to post diffs without errors in another repository with similar 
configuration.
I have checked that the files exist in the remote.

Any help will be appreciated.

Thanks,
Abhi

On Friday, September 16, 2016 at 12:27:33 PM UTC+5:30, Abhishek Choudhary 
wrote:
>
> 'git diff HEAD > /var/tmp/rb_temp_diff_q7okiA'
>
>
>
> On Friday, September 16, 2016 at 4:15:13 AM UTC+5:30, David Trowbridge 
> wrote:
>>
>> How are you creating the diff file that you're trying to upload?
>>
>> -David
>>
>> On Thu, Sep 15, 2016 at 1:07 PM Abhishek Choudhary <xab...@gmail.com> 
>> wrote:
>>
>>> Hi
>>>
>>> I am using RBTools v0.7.6 with ReviewBoard v2.5.6.1 but I am not able to 
>>> create review request using post command. I get below error. However, I am 
>>> able to create review request for the same repository and diff from UI.
>>>
>>> Any help with this error will be appreciated. 
>>>
>>> *RBtools error:*
>>> Note that /u/choudhab/base//bin/share/post-review.py is the same rbt 
>>> script with some authentication customization for client side.
>>>
>>> Command:
>>> /u/choudhab/base//bin/share/post-review.py post  --server 
>>> reviewboard-staging.deshaw.com --summary "Personal#10377" --description 
>>> "test" --review-request-id 19569 --target-people choudhab --bugs-closed 
>>> personal/10377 --debug  --publish --diff-filename 
>>> /var/tmp/rb_temp_diff_q7okiA
>>>
>>> Traceback (most recent call last):
>>>   File "/u/choudhab/base//bin/share/post-review.py", line 169, in 
>>> 
>>> sys.exit(main())
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/main.py",
>>>  
>>> line 133, in main
>>> command.run_from_argv([RB_MAIN, command_name] + args)
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/__init__.py",
>>>  
>>> line 629, in run_from_argv
>>> exit_code = self.main(*args) or 0
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>>>  
>>> line 808, in main
>>> base_dir=base_dir)
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>>>  
>>> line 469, in post_request
>>> raise CommandError(u'\n'.join(error_msg))
>>> rbtools.commands.CommandError: Error uploading diff
>>>
>>>
>>> The file was not found in the repository. (HTTP 400, API Error 207)
>>>
>>> Your review request still exists, but the diff is not attached.
>>>
>>> http://reviewboard-staging.com/r/19569/
>>>
>>>
>>>
>>> *Some Server logs:*
>>> *from RBTools case:*
>>> [Thu Sep 15 19:47:46.462772 2016] [wsgi:error] [pid 18175] XXX- the 
>>> request for which diff is created: 
>>> [Thu Sep 15 19:47:46.485741 2016] [wsgi:error] [pid 18175] XXX- files - 
>>> 
>>>
>>> *from UI case:*
>>> [Thu Sep 15 20:00:09.512906 2016] [wsgi:error] [pid 18175] XXX- the 
>>> request for which diff is created: 
>>> [Thu Sep 15 20:00:09.538130 2016] [wsgi:error] [pid 18175] XXX- files - 
>>> 
>>>
>>> Thanks,
>>> Abhi
>>>
>>> -- 
>>> Supercharge your Review Board with Power Pack: 
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons: 
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://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.
>>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Cannot Upload diff using RBTools v0.7.6

2016-09-16 Thread Abhishek Choudhary
'git diff HEAD > /var/tmp/rb_temp_diff_q7okiA'



On Friday, September 16, 2016 at 4:15:13 AM UTC+5:30, David Trowbridge 
wrote:
>
> How are you creating the diff file that you're trying to upload?
>
> -David
>
> On Thu, Sep 15, 2016 at 1:07 PM Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi
>>
>> I am using RBTools v0.7.6 with ReviewBoard v2.5.6.1 but I am not able to 
>> create review request using post command. I get below error. However, I am 
>> able to create review request for the same repository and diff from UI.
>>
>> Any help with this error will be appreciated. 
>>
>> *RBtools error:*
>> Note that /u/choudhab/base//bin/share/post-review.py is the same rbt 
>> script with some authentication customization for client side.
>>
>> Command:
>> /u/choudhab/base//bin/share/post-review.py post  --server 
>> reviewboard-staging.deshaw.com --summary "Personal#10377" --description 
>> "test" --review-request-id 19569 --target-people choudhab --bugs-closed 
>> personal/10377 --debug  --publish --diff-filename 
>> /var/tmp/rb_temp_diff_q7okiA
>>
>> Traceback (most recent call last):
>>   File "/u/choudhab/base//bin/share/post-review.py", line 169, in 
>> sys.exit(main())
>>   File 
>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/main.py",
>>  
>> line 133, in main
>> command.run_from_argv([RB_MAIN, command_name] + args)
>>   File 
>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/__init__.py",
>>  
>> line 629, in run_from_argv
>> exit_code = self.main(*args) or 0
>>   File 
>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>>  
>> line 808, in main
>> base_dir=base_dir)
>>   File 
>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>>  
>> line 469, in post_request
>> raise CommandError(u'\n'.join(error_msg))
>> rbtools.commands.CommandError: Error uploading diff
>>
>>
>> The file was not found in the repository. (HTTP 400, API Error 207)
>>
>> Your review request still exists, but the diff is not attached.
>>
>> http://reviewboard-staging.com/r/19569/
>>
>>
>>
>> *Some Server logs:*
>> *from RBTools case:*
>> [Thu Sep 15 19:47:46.462772 2016] [wsgi:error] [pid 18175] XXX- the 
>> request for which diff is created: 
>> [Thu Sep 15 19:47:46.485741 2016] [wsgi:error] [pid 18175] XXX- files - 
>> 
>>
>> *from UI case:*
>> [Thu Sep 15 20:00:09.512906 2016] [wsgi:error] [pid 18175] XXX- the 
>> request for which diff is created: 
>> [Thu Sep 15 20:00:09.538130 2016] [wsgi:error] [pid 18175] XXX- files - 
>> 
>>
>> Thanks,
>> Abhi
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Cannot Upload diff using RBTools v0.7.6

2016-09-15 Thread Abhishek Choudhary
Hi

I am using RBTools v0.7.6 with ReviewBoard v2.5.6.1 but I am not able to 
create review request using post command. I get below error. However, I am 
able to create review request for the same repository and diff from UI.

Any help with this error will be appreciated. 

*RBtools error:*
Note that /u/choudhab/base//bin/share/post-review.py is the same rbt script 
with some authentication customization for client side.

Command:
/u/choudhab/base//bin/share/post-review.py post  --server 
reviewboard-staging.deshaw.com --summary "Personal#10377" --description 
"test" --review-request-id 19569 --target-people choudhab --bugs-closed 
personal/10377 --debug  --publish --diff-filename 
/var/tmp/rb_temp_diff_q7okiA

Traceback (most recent call last):
  File "/u/choudhab/base//bin/share/post-review.py", line 169, in 
sys.exit(main())
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/main.py",
 
line 133, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/__init__.py",
 
line 629, in run_from_argv
exit_code = self.main(*args) or 0
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
 
line 808, in main
base_dir=base_dir)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
 
line 469, in post_request
raise CommandError(u'\n'.join(error_msg))
rbtools.commands.CommandError: Error uploading diff


The file was not found in the repository. (HTTP 400, API Error 207)

Your review request still exists, but the diff is not attached.

http://reviewboard-staging.com/r/19569/



*Some Server logs:*
*from RBTools case:*
[Thu Sep 15 19:47:46.462772 2016] [wsgi:error] [pid 18175] XXX- the request 
for which diff is created: 
[Thu Sep 15 19:47:46.485741 2016] [wsgi:error] [pid 18175] XXX- files - 


*from UI case:*
[Thu Sep 15 20:00:09.512906 2016] [wsgi:error] [pid 18175] XXX- the request 
for which diff is created: 
[Thu Sep 15 20:00:09.538130 2016] [wsgi:error] [pid 18175] XXX- files - 


Thanks,
Abhi

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Can RBtools post command generate diff given a list of files?

2016-08-31 Thread Abhishek Choudhary
Any updates? Is this a missing functionality or am i missing something?

On Monday, August 29, 2016 at 10:00:47 PM UTC+5:30, Abhishek Choudhary 
wrote:
>
> Hi,
>
> I am using RBtools to post review requests. Currently I have make a local 
> commit (or generate diff file using git diff) and then post a review 
> request. Is there any option that I can use to pass the changed files so 
> that post can generate diff for me.
>
> I tried using -I FILENAME, --include FILENAME from Diff Generation Options 
> but it doesn't seem to work. I get below error:
>
>  File 
> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>  
> line 712, in main
> raise CommandError("There don't seem to be any diffs!")
> rbtools.commands.CommandError: There don't seem to be any diffs!
>
> rbt post --server 'http://reviewboard.com:7578/' --debug -I urls.py
>
> Is there anything I am doing wrong here?
>
>
> Thanks,
> Abhi
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Can RBtools post command generate diff given a list of files?

2016-08-30 Thread Abhishek Choudhary
It is a GIT repository. RBTools version is v0.7.6.

I tried rbt diff --server 'http://reviewboard.com:7578/' --debug  -I 
urls.py:

>>> RBTools 0.7.6
>>> Python 2.7.11 (default, Apr 25 2016, 09:27:56) 
[GCC 5.2.1 20150902 (Red Hat 5.2.1-2)]
>>> Running on Linux-3.10.0-327.22.2.el7.x86_64-x86_64-with-redhat-7.2-Maipo
>>> Home = /u/choudhab
>>> Current directory = /u/choudhab/django-courses/aip
>>> Checking for a Subversion repository...
>>> Running: svn --non-interactive info
>>> Command exited with rc 1: ['svn', '--non-interactive', u'info']
svn: E155007: '/u/choudhab/django-courses/aip' is not a working copy
---
>>> Checking for a Git repository...
>>> Running: git rev-parse --git-dir
>>> Running: git config core.bare
>>> Running: git rev-parse --show-toplevel
>>> Running: git symbolic-ref -q HEAD
>>> Running: git config --get branch.master.merge
>>> Running: git config --get branch.master.remote
>>> Running: git config --get remote.origin.url
>>> repository info: Path: gitlab:sundars/django-courses.git, Base path: , 
Supports changesets: False
>>> Making HTTP GET request to http://reviewboard.com:7578/api/
>>> inside http_error_401
>>> retry count: 1
>>> req.get_host() returned reviewboard.com:7578
>>> authGSSClientInit() succeeded
>>> authGSSClientStep() succeeded
>>> authGSSClientResponse() succeeded
>>> cleaning context
[20160830 03:41:17:448 git.py:120 WARNING] Your working directory is not 
clean. Any changes which have not been committed to a branch will not be 
included in your review request.


Does RBTools not support generating diff for files not yet committed? The 
changed files are not yet staged or committed to local copy.

Thanks,
Abhi

On Tuesday, August 30, 2016 at 12:28:55 AM UTC+5:30, Christian Hammond 
wrote:

> Hi Abhishek,
>
> Can you tell me what version of RBTools you're using and what kind of 
> repository this is?
>
> I'd also like to see the full debug output of the command.
>
> Thanks,
>
> Christian 
>
>
> On Monday, August 29, 2016, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I am using RBtools to post review requests. Currently I have make a local 
>> commit (or generate diff file using git diff) and then post a review 
>> request. Is there any option that I can use to pass the changed files so 
>> that post can generate diff for me.
>>
>> I tried using -I FILENAME, --include FILENAME from Diff Generation 
>> Options but it doesn't seem to work. I get below error:
>>
>>  File 
>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
>>  
>> line 712, in main
>> raise CommandError("There don't seem to be any diffs!")
>> rbtools.commands.CommandError: There don't seem to be any diffs!
>>
>> rbt post --server 'http://reviewboard.com:7578/' --debug -I urls.py
>>
>> Is there anything I am doing wrong here?
>>
>>
>> Thanks,
>> Abhi
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>
> -- 
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Can RBtools post command generate diff given a list of files?

2016-08-29 Thread Abhishek Choudhary
Hi,

I am using RBtools to post review requests. Currently I have make a local 
commit (or generate diff file using git diff) and then post a review 
request. Is there any option that I can use to pass the changed files so 
that post can generate diff for me.

I tried using -I FILENAME, --include FILENAME from Diff Generation Options 
but it doesn't seem to work. I get below error:

 File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/rbtools/commands/post.py",
 
line 712, in main
raise CommandError("There don't seem to be any diffs!")
rbtools.commands.CommandError: There don't seem to be any diffs!

rbt post --server 'http://reviewboard.com:7578/' --debug -I urls.py

Is there anything I am doing wrong here?


Thanks,
Abhi

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Authenticate using Kerberos when using RBT Python API

2016-08-26 Thread Abhishek Choudhary
Hi Christian,

The way i have tried this in client is by creating a custom transport class 
(which is passed in RBclient during instantiation) and custom ReviewBoard 
server which uses a kerberos client for request/response.

How do i think should i go about for making it configurable between a 
normal transport and custom based transport (using kerb client) - provide a 
option on command line?

Thanks,
Abhi


On Thursday, August 11, 2016 at 11:14:40 AM UTC+5:30, Christian Hammond 
wrote:
>
> Hi Abhi,
>
> RBTools is not designed to let you swap out the RBClient support.
>
> I'd suggest trying to work out how you could sanely write this within the 
> RBTools source code, and work with us to get a patch into RBTools itself.
>
> How are you solving the server side?
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Aug 10, 2016 at 4:55 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I looked at the RBtools code and the API and looks like I need my own 
>> implementation of ReviewBoardServer  and the Transport class to plug into 
>> RBClient.
>>
>> But problem is that I could not find a way to plug in a custom RBClient 
>> implementation into the RBtools commands like Post? Can any reviewboard dev 
>> help me out here.
>>
>> Thanks,
>> Abhi
>>
>> On Thursday, August 4, 2016 at 6:59:32 PM UTC+5:30, Abhishek Choudhary 
>> wrote:
>>>
>>> Hi,
>>>
>>> I am able authenticate users in ReviewBoard setup using Kerberos via 
>>> browser. I am trying to create a commandline tool to post and create 
>>> reviews, review-requests using RBT python API. But I am not able to make it 
>>> work.
>>>
>>> Could someone from ReviewBoard dev help out here on where to start?
>>>
>>> Thanks,
>>> Abhi
>>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Authenticate using Kerberos when using RBT Python API

2016-08-22 Thread Abhishek Choudhary
Hi Christian,

For the server side, I have written a simple custom authentication backend 
(extending from RB's AuthBackend) which uses REMOTE_USER (set by Apache) to 
authenticate the user. I am adding RemoteUserMiddleware in the 
settings_local.py file. This has worked so far in basic usage of 
ReviewBoard. Do you see any drawbacks with this approach?

I will try to modify RBTools source code and see if I can make it work. 
Before the upgrade i used to use post_review.py script (with some 
customizations) for posting reviews, is it advisable to use that with 
latest version (I haven't tested it yet)?

Thanks,
Abhi




On Thursday, August 11, 2016 at 11:14:40 AM UTC+5:30, Christian Hammond 
wrote:
>
> Hi Abhi,
>
> RBTools is not designed to let you swap out the RBClient support.
>
> I'd suggest trying to work out how you could sanely write this within the 
> RBTools source code, and work with us to get a patch into RBTools itself.
>
> How are you solving the server side?
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Aug 10, 2016 at 4:55 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I looked at the RBtools code and the API and looks like I need my own 
>> implementation of ReviewBoardServer  and the Transport class to plug into 
>> RBClient.
>>
>> But problem is that I could not find a way to plug in a custom RBClient 
>> implementation into the RBtools commands like Post? Can any reviewboard dev 
>> help me out here.
>>
>> Thanks,
>> Abhi
>>
>> On Thursday, August 4, 2016 at 6:59:32 PM UTC+5:30, Abhishek Choudhary 
>> wrote:
>>>
>>> Hi,
>>>
>>> I am able authenticate users in ReviewBoard setup using Kerberos via 
>>> browser. I am trying to create a commandline tool to post and create 
>>> reviews, review-requests using RBT python API. But I am not able to make it 
>>> work.
>>>
>>> Could someone from ReviewBoard dev help out here on where to start?
>>>
>>> Thanks,
>>> Abhi
>>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Authenticate using Kerberos when using RBT Python API

2016-08-10 Thread Abhishek Choudhary
Hi,

I looked at the RBtools code and the API and looks like I need my own 
implementation of ReviewBoardServer  and the Transport class to plug into 
RBClient.

But problem is that I could not find a way to plug in a custom RBClient 
implementation into the RBtools commands like Post? Can any reviewboard dev 
help me out here.

Thanks,
Abhi

On Thursday, August 4, 2016 at 6:59:32 PM UTC+5:30, Abhishek Choudhary 
wrote:
>
> Hi,
>
> I am able authenticate users in ReviewBoard setup using Kerberos via 
> browser. I am trying to create a commandline tool to post and create 
> reviews, review-requests using RBT python API. But I am not able to make it 
> work.
>
> Could someone from ReviewBoard dev help out here on where to start?
>
> Thanks,
> Abhi
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


Authenticate using Kerberos when using RBT Python API

2016-08-04 Thread Abhishek Choudhary
Hi,

I am able authenticate users in ReviewBoard setup using Kerberos via 
browser. I am trying to create a commandline tool to post and create 
reviews, review-requests using RBT python API. But I am not able to make it 
work.

Could someone from ReviewBoard dev help out here on where to start?

Thanks,
Abhi

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: Using REMOTE_USER to authenticate in reviewboard

2016-07-29 Thread Abhishek Choudhary
Hi,

Wierdly, I tried following approach and it worked:

-copied MIDDLEWARE_CLASSES from settings.py and added 
django.contrib.auth.middleware.RemoteUserMiddleware 
after AuthenticationMiddleware in settings.py
-Went to admin account using username and password that was created at 
rb-site installation and edited Authentication method to Legacy 
Authentication Module and in backends I gave full path of my custom auth 
backend that inherits from RemoteUserBackend

After this It started respecting REMOTE_USER and logged users automatically 
and I was able to create new review requests and had access to dashboard.

Let me know if there is anything wrong with this approach and If I should 
do this some other way.

Thanks,
Abhi

On Friday, July 29, 2016 at 3:38:47 AM UTC+5:30, Christian Hammond wrote:
>
> Hi Abhi,
>
> The authenticate() method is needed for the login page, which will require 
> a password. If you just never use that page, you won't have to worry about 
> using those parameters as-is (see X509AuthBackend and X509AuthMiddleware).
>
> What kind of problems are you hitting, specifically? Any errors?
>
> For the record, your auth backend will need to be a subclass of our 
> AuthBackend class. You can use multiple inheritance for this, though. We 
> have more specialized needs than what Django provides by default, so just 
> dropping in a subclass of RemoteUserBackend without complying with 
> AuthBackend won't work.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Jul 27, 2016 at 5:46 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I would like to use REMOTE_USER set by Apache to authenticate users in 
>> ReviewBoard. I have tried adding RemoteUserMiddleware in MIDDLEWARE_CLASSES 
>> and my custom auth backend which extends django's RemoteUserBackend 
>> in AUTHENTICATION_BACKENDS in settings_local.py. But the authentication is 
>> not working. 
>>
>> I looked at 
>> https://www.reviewboard.org/docs/manual/2.5/extending/extensions/hooks/auth-backend-hook/#auth-backend-hook
>>  
>> but it requires that I provide a subclass of 
>> reviewboard.accounts.backends.AuthBackend 
>> <https://www.reviewboard.org/docs/manual/2.5/extending/coderef/python/reviewboard.accounts.backends/#reviewboard.accounts.backends.AuthBackend>
>>  
>> whose authenticate method takes username and password as arguments. But i 
>> don't have password corresponding to the username.
>>
>> Could you someone help me with this? Has anyone tried using this with 
>> ReviewBoard v2.5.x?
>>
>> Thanks,
>> Abhi
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: 'Can't create table 'reviewboard.#sql-280a_6' error while upgrading to v2.5.6.1 from v1.5.1

2016-07-27 Thread Abhishek Choudhary
Hi Christian,

The fix you provided worked, I was able to install reviewboard site using 
rb-site. I will test the ReviewBoard diff-viewer functionality and let you 
know if I find something broken.

(RBenv-2.5) ? rb-site install --debug ~/reviewboard/site-old

* Installing the site...

Building site directories ... OK

Building site configuration files ... OK

Creating database ... Creating tables ...

Creating table extensions_registeredextension

Creating table accounts_localsiteprofile

Creating table accounts_trophy

Creating table attachments_fileattachmenthistory

Creating table attachments_fileattachment

Creating table diffviewer_filediffdata

Creating table diffviewer_rawfilediffdata

Creating table hostingsvcs_hostingserviceaccount

Creating table notifications_webhooktarget_repositories

Creating table notifications_webhooktarget

Creating table reviews_fileattachmentcomment

Creating table site_localsite_users

Creating table site_localsite_admins

Creating table site_localsite

Creating table webapi_webapitoken

Upgrading Review Board from 1.5.1 to 2.5.6.1

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

There are unapplied evolutions for reviews.

There are unapplied evolutions for scmtools.

There are unapplied evolutions for site.

There are unapplied evolutions for webapi.

Adding baseline version for new models

Evolutions in attachments baseline: file_attachment_orig_filename, 
file_attachment_file_max_length_512, file_attachment_repo_info, 
file_attachment_repo_path_no_index, 
file_attachment_repo_revision_max_length_64, file_attachment_revision

Evolutions in hostingsvcs baseline: account_hosting_url, 
account_hosting_url_max_length_255, account_unique_together_baseline

Evolutions in site baseline: localsite_public

Evolutions in webapi baseline: webapitoken_jsonfield_null

Evolutions in notifications baseline: webhooktarget_extra_state, 
webhooktarget_extra_data_null

Project signature has changed - an evolution is required

Installing custom SQL ...

Installing indexes ...

Installed 0 object(s) from 0 fixture(s)

Registering new SCM Tool Plastic SCM 
(reviewboard.scmtools.plastic.PlasticTool) in database

OK

Performing migrations ... Evolution successful.

OK

Creating administrator account ... OK

Saving site settings ... Saving site /u/choudhab/reviewboard/site-old to 
the sitelist /etc/reviewboard/sites

 

WARNING: Could not save site to sitelist /etc/reviewboard/sites

OK

Setting up support ... OK


Thanks,

Abhi 


On Wednesday, July 27, 2016 at 6:17:57 PM UTC+5:30, Abhishek Choudhary 
wrote:
>
> Thanks Christian for quick responses and providing a fix so soon. I will 
> try this and let you know how it goes.
>
> On Wednesday, July 27, 2016 at 4:35:06 PM UTC+5:30, Christian Hammond 
> wrote:
>>
>> Hi Abhi,
>>
>> Please give the attached build of django-evolution a try, and see if it 
>> allows you to upgrade. You'll want to start fresh from the backup of your 
>> database.
>>
>> Please also test the Review Board install thoroughly, especially the diff 
>> viewer.
>>
>> Christian
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>> On Wed, Jul 27, 2016 at 3:10 AM, Christian Hammond <
>> chri...@beanbaginc.com> wrote:
>>
>>> Hi,
>>>
>>> I wanted to give you a status update on this.
>>>
>>> This is due to a django_evolution bug, in combination with the versions 
>>> you're upgrading from/to. We have a fix in the django_evolution tree that 
>>> fixes part of this. It seems to evolve your database just fine, but there 
>>> are bugs with certain configurations that I'm aiming to fix. Once I have 
>>> that fixed (working on it), I'll feel more comfortable sending that your 
>>> way.
>>>
>>> Give me another day or two, and I think I'll have this sorted out.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>>> On Tue, Jul 26, 2016 at 12:14 PM, Christian Hammond <
>>> chri...@beanbaginc.com> wrote:
>>>
>>>> --hint --execute will only ever break things. Outside of developing 
>>>> Review Board itself, you'll never want to run that f

Re: 'Can't create table 'reviewboard.#sql-280a_6' error while upgrading to v2.5.6.1 from v1.5.1

2016-07-27 Thread Abhishek Choudhary
Thanks Christian for quick responses and providing a fix so soon. I will 
try this and let you know how it goes.

On Wednesday, July 27, 2016 at 4:35:06 PM UTC+5:30, Christian Hammond wrote:
>
> Hi Abhi,
>
> Please give the attached build of django-evolution a try, and see if it 
> allows you to upgrade. You'll want to start fresh from the backup of your 
> database.
>
> Please also test the Review Board install thoroughly, especially the diff 
> viewer.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Jul 27, 2016 at 3:10 AM, Christian Hammond <chri...@beanbaginc.com 
> > wrote:
>
>> Hi,
>>
>> I wanted to give you a status update on this.
>>
>> This is due to a django_evolution bug, in combination with the versions 
>> you're upgrading from/to. We have a fix in the django_evolution tree that 
>> fixes part of this. It seems to evolve your database just fine, but there 
>> are bugs with certain configurations that I'm aiming to fix. Once I have 
>> that fixed (working on it), I'll feel more comfortable sending that your 
>> way.
>>
>> Give me another day or two, and I think I'll have this sorted out.
>>
>> Christian
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>> On Tue, Jul 26, 2016 at 12:14 PM, Christian Hammond <
>> chri...@beanbaginc.com > wrote:
>>
>>> --hint --execute will only ever break things. Outside of developing 
>>> Review Board itself, you'll never want to run that for any reason. It 
>>> bypasses our evolutions and tries to brute-force, which will fail to result 
>>> in the same schema, will lose data, and force you into a state that takes 
>>> very careful work (by us) to get out of.
>>>
>>> I'll take a look today and let you know what I find out.
>>>
>>> Christian
>>>
>>>
>>> On Tuesday, July 26, 2016, Abhishek Choudhary <xab...@gmail.com 
>>> > wrote:
>>>
>>>> Hi Christian,
>>>>
>>>> PFA schema.sql and data.sql. If the database is in an inconsistent 
>>>> state - i am okay with starting afresh as the current setup has some 
>>>> really 
>>>> old data.
>>>>
>>>> I tried to do 'rb-site manage --debug ~/reviewboard/site evolve -- 
>>>> --hint --execute' but it gave me below error. Does it give any hint for 
>>>> the 
>>>> problem. 
>>>>
>>>> You have requested a database evolution. This will alter tables
>>>> and data currently in the 'default' database, and may result in
>>>> IRREVERSABLE DATA LOSS. Evolutions should be *thoroughly* reviewed
>>>> prior to execution.
>>>>
>>>> Are you sure you want to execute the evolutions?
>>>>
>>>> Type 'yes' to continue, or 'no' to cancel: yes
>>>> CommandError: Error applying evolution: (1060, "Duplicate column name 
>>>> 'diff_base64'")
>>>>
>>>>
>>>>
>>>>
>>>> On Tuesday, July 26, 2016 at 4:37:19 PM UTC+5:30, Christian Hammond 
>>>> wrote:
>>>>>
>>>>>
>>>>>
>>>>> On Tuesday, July 26, 2016, Christian Hammond <chri...@beanbaginc.com> 
>>>>> wrote:
>>>>>
>>>>>> Hi Abhi,
>>>>>>
>>>>>> I won't be able to do much else tonight, as it's 3:40AM here, but if 
>>>>>> you could supply the following here as attachments, we can start taking 
>>>>>> a 
>>>>>> look tomorrow:
>>>>>>
>>>>>> 1) A schema-only dump of your database (pre-upgrade):
>>>>>>
>>>>>> mysqldump -h  -u  -p   > schema.sql
>>>>>>
>>>>>
>>>>> Meant to add --no-data.
>>>>>
>>>>> Christian
>>>>>
>>>>>
>>>>>  
>>>>>
>>>>>>
>>>>>> 2) A data dump of the django_project_version and django_evolution 
>>>>>> tables:
>>>>>>
>>>>>> mysqldump -h  -u  -p  django_project_version 
>>>>>> django_evolution > data.sql
>>>>>>
>>>>>> Neither of the

Using REMOTE_USER to authenticate in reviewboard

2016-07-27 Thread Abhishek Choudhary
Hi,

I would like to use REMOTE_USER set by Apache to authenticate users in 
ReviewBoard. I have tried adding RemoteUserMiddleware in MIDDLEWARE_CLASSES 
and my custom auth backend which extends django's RemoteUserBackend 
in AUTHENTICATION_BACKENDS in settings_local.py. But the authentication is 
not working. 

I looked at 
https://www.reviewboard.org/docs/manual/2.5/extending/extensions/hooks/auth-backend-hook/#auth-backend-hook
 
but it requires that I provide a subclass of 
reviewboard.accounts.backends.AuthBackend 

 
whose authenticate method takes username and password as arguments. But i 
don't have password corresponding to the username.

Could you someone help me with this? Has anyone tried using this with 
ReviewBoard v2.5.x?

Thanks,
Abhi

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: 'Can't create table 'reviewboard.#sql-280a_6' error while upgrading to v2.5.6.1 from v1.5.1

2016-07-26 Thread Abhishek Choudhary
Hi Christian,

PFA schema.sql and data.sql. If the database is in an inconsistent state - 
i am okay with starting afresh as the current setup has some really old 
data.

I tried to do 'rb-site manage --debug ~/reviewboard/site evolve -- --hint 
--execute' but it gave me below error. Does it give any hint for the 
problem. 

You have requested a database evolution. This will alter tables
and data currently in the 'default' database, and may result in
IRREVERSABLE DATA LOSS. Evolutions should be *thoroughly* reviewed
prior to execution.

Are you sure you want to execute the evolutions?

Type 'yes' to continue, or 'no' to cancel: yes
CommandError: Error applying evolution: (1060, "Duplicate column name 
'diff_base64'")




On Tuesday, July 26, 2016 at 4:37:19 PM UTC+5:30, Christian Hammond wrote:
>
>
>
> On Tuesday, July 26, 2016, Christian Hammond <chri...@beanbaginc.com 
> > wrote:
>
>> Hi Abhi,
>>
>> I won't be able to do much else tonight, as it's 3:40AM here, but if you 
>> could supply the following here as attachments, we can start taking a look 
>> tomorrow:
>>
>> 1) A schema-only dump of your database (pre-upgrade):
>>
>> mysqldump -h  -u  -p   > schema.sql
>>
>
> Meant to add --no-data.
>
> Christian
>
>
>  
>
>>
>> 2) A data dump of the django_project_version and django_evolution tables:
>>
>> mysqldump -h  -u  -p  django_project_version 
>> django_evolution > data.sql
>>
>> Neither of these will expose any confidential information, as they'll 
>> solely cover database structures and evolution history.
>>
>> If this turns out to be a bug in Django Evolution, we'll look into the 
>> cause and get a fix to you as soon as we have it figured out.
>>
>> If it's an issue with the database or its state, and we need to conduct a 
>> repair, we'll need to discuss support options. We offer comprehensive 
>> support contracts that cover any questions or problems you have with your 
>> server, along with emergency bug fixes, upgrade assistance, and more. We 
>> also offer database repairs on a per-hourly basis. I'll talk to you more 
>> about that if it's deemed necessary, but if there's any interest in 
>> confidential on-going support, I can go into more details on that.
>>
>> Christian
>>
>>
>>
>> On Tuesday, July 26, 2016, Abhishek Choudhary <xabh...@gmail.com> wrote:
>>
>>> Hi Christian,
>>>
>>> Thanks for the quick response. Yes, I had taken a backup of my data and 
>>> I changed all my MyISAM tables to InnoDB and no longer get that unable to 
>>> create mysql table error. But I am still facing this other error (see 
>>> below). Could you please suggest something to work around this problem?
>>>
>>> * Installing the site...
>>> Building site directories ... OK
>>> Building site configuration files ... OK
>>> Creating database ... Creating tables ...
>>> There are unapplied evolutions for auth.
>>> There are unapplied evolutions for contenttypes.
>>> There are unapplied evolutions for accounts.
>>> There are unapplied evolutions for changedescs.
>>> There are unapplied evolutions for diffviewer.
>>> There are unapplied evolutions for reviews.
>>> There are unapplied evolutions for scmtools.
>>> Project signature has changed - an evolution is required
>>> Installing custom SQL ...
>>> Installing indexes ...
>>> Installed 0 object(s) from 0 fixture(s)
>>> OK
>>> ERROR:root:Unexpected error: u'FileDiffData'
>>> Traceback (most recent call last):
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
>>>  
>>> line 65, in handle
>>> self.evolve(*app_labels, **options)
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
>>>  
>>> line 125, in evolve
>>> sql.extend(self.evolve_app(app))
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
>>>  
>>> line 164, in evolve_app
>>> app_mutator.run_mutations(mutations)
>>>   File 
>>> "/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutators.py",
>>>  
>>> line 27

Re: 'Can't create table 'reviewboard.#sql-280a_6' error while upgrading to v2.5.6.1 from v1.5.1

2016-07-26 Thread Abhishek Choudhary
6.11-py2.7.egg/django/core/management/base.py",
 
line 242, in run_from_argv
self.execute(*args, **options.__dict__)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/Django-1.6.11-py2.7.egg/django/core/management/base.py",
 
line 285, in execute
output = self.handle(*args, **options)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
 
line 65, in handle
self.evolve(*app_labels, **options)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
 
line 125, in evolve
sql.extend(self.evolve_app(app))
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/management/commands/evolve.py",
 
line 164, in evolve_app
app_mutator.run_mutations(mutations)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutators.py",
 
line 279, in run_mutations
self.run_mutation(mutation)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutators.py",
 
line 268, in run_mutation
model_mutator.run_mutation(mutation)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutators.py",
 
line 165, in run_mutation
mutation.mutate(self, self.create_model())
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutations.py",
 
line 446, in mutate
self.add_column(mutator, model)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutations.py",
 
line 450, in add_column
self.field_type, self.field_attrs, model)
  File 
"/u/choudhab/reviewboard/RBenv-2.5/lib/python2.7/site-packages/django_evolution-0.7.6-py2.7.egg/django_evolution/mutations.py",
 
line 37, in create_field
related_model_sig = proj_sig[related_app_name][related_model_name]
KeyError: u'FileDiffData'

Thanks,
Abhi

On Tuesday, July 26, 2016 at 1:06:34 AM UTC+5:30, Christian Hammond wrote:
>
> Hi Abhi,
>
> The problem looks like it's an InnoDB vs MyISAM table compatibility issue. 
> Your older database was likely created using MyISAM, and is now trying to 
> upgrade using InnoDB.
>
> You'll need to either convert your existing tables to InnoDB, or set MySQL 
> to use MyISAM by default. InnoDB is better for Review Board, though, so 
> that's the recommendation.
>
> You'll also want to repeat the upgrade again from a backup. (Did you take 
> a backup before upgrading?)
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Mon, Jul 25, 2016 at 5:10 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>>
>> I am trying to upgrade my ReviewBoard setup from v1.5.1 to v2.5.6.1 and 
>> saw below error when I tried to install site using rb-site but connected to 
>> my old database. 
>>
>>
>> Do i have start afresh with database as well? Is there an easy workaround?
>>
>>
>> >rb-site install --debug ~/reviewboard/site
>>
>> ...
>>
>> Creating table attachments_fileattachmenthistory
>>
>> Creating table attachments_fileattachment
>>
>>  
>>
>> [!] There was an error synchronizing the database. Make sure the
>>
>> database is created and has the appropriate permissions, and then
>>
>> continue.
>>
>> [!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'
>>
>> (errno: 150)")
>>
>>  
>>
>> Press Enter to continue
>>
>> Creating tables ...
>>
>> Creating table diffviewer_filediffdata
>>
>> Creating table diffviewer_rawfilediffdata
>>
>> Creating table hostingsvcs_hostingserviceaccount
>>
>> Creating table notifications_webhooktarget_repositories
>>
>>  
>>
>> [!] There was an error synchronizing the database. Make sure the
>>
>> database is created and has the appropriate permissions, and then
>>
>> continue.
>>
>> [!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'
>>
>> (errno: 150)")
>>
>>  
>>
>> Press Enter to continue
>>
>> Creating tables ...
>>
>> Creatin

'Can't create table 'reviewboard.#sql-280a_6' error while upgrading to v2.5.6.1 from v1.5.1

2016-07-25 Thread Abhishek Choudhary


Hi,


I am trying to upgrade my ReviewBoard setup from v1.5.1 to v2.5.6.1 and saw 
below error when I tried to install site using rb-site but connected to my 
old database. 


Do i have start afresh with database as well? Is there an easy workaround?


>rb-site install --debug ~/reviewboard/site

...

Creating table attachments_fileattachmenthistory

Creating table attachments_fileattachment

 

[!] There was an error synchronizing the database. Make sure the

database is created and has the appropriate permissions, and then

continue.

[!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'

(errno: 150)")

 

Press Enter to continue

Creating tables ...

Creating table diffviewer_filediffdata

Creating table diffviewer_rawfilediffdata

Creating table hostingsvcs_hostingserviceaccount

Creating table notifications_webhooktarget_repositories

 

[!] There was an error synchronizing the database. Make sure the

database is created and has the appropriate permissions, and then

continue.

[!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'

(errno: 150)")

 

Press Enter to continue

Creating tables ...

Creating table notifications_webhooktarget

Creating table reviews_fileattachmentcomment

Creating table site_localsite_users

 

[!] There was an error synchronizing the database. Make sure the

database is created and has the appropriate permissions, and then

continue.

[!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'

(errno: 150)")

 

Press Enter to continue

Creating tables ...

Creating table site_localsite_admins

 

[!] There was an error synchronizing the database. Make sure the

database is created and has the appropriate permissions, and then

continue.

[!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'

(errno: 150)")

 

Press Enter to continue

Creating tables ...

Creating table site_localsite

Creating table webapi_webapitoken

 

[!] There was an error synchronizing the database. Make sure the

database is created and has the appropriate permissions, and then

continue.

[!] Details: (1005, "Can't create table 'reviewboard.#sql-280a_6'

(errno: 150)")

 

Press Enter to continue

Creating tables ...

Upgrading Review Board from 1.5.1 to 2.5.6.1

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

There are unapplied evolutions for reviews.

There are unapplied evolutions for scmtools.

There are unapplied evolutions for site.

There are unapplied evolutions for webapi.

Adding baseline version for new models

Evolutions in attachments baseline: file_attachment_orig_filename, 
file_attachment_file_max_length_512, file_attachment_repo_info, 
file_attachment_repo_path_no_index, 
file_attachment_repo_revision_max_length_64, file_attachment_revision

Evolutions in hostingsvcs baseline: account_hosting_url, 
account_hosting_url_max_length_255, account_unique_together_baseline

Evolutions in site baseline: localsite_public

Evolutions in webapi baseline: webapitoken_jsonfield_null

Evolutions in notifications baseline: webhooktarget_extra_state, 
webhooktarget_extra_data_null

Project signature has changed - an evolution is required

Installing custom SQL ...

Installing indexes ...

Installed 0 object(s) from 0 fixture(s)

Registering new SCM Tool Plastic SCM 
(reviewboard.scmtools.plastic.PlasticTool) in database

OK

ERROR:root:Unexpected error: u'FileDiffData'



Thanks,

Abhi


-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: 504 Gateway Timeout

2016-05-16 Thread Abhishek Choudhary
Yes the culprit were the git fetch operations. When a new review request 
form is created, reviewboard internally fetches all git repos and that 
taking over a minute to complete. With Apache 2.4 the default timeout value 
is 60s as opposed to apache 2.2 (300s) which is why it started failing 
recently for me.

Thanks for all the help here.

On Monday, May 16, 2016 at 7:37:13 PM UTC+5:30, Abhishek Choudhary wrote:
>
> Hi
> My reviewboard version 1.5.1
>
> scmtools/git.py contains the git fetch lines i am seeing (debug=True is 
> enabled in settings):
>
> class GitClient:
> def __init__(self, path):
> self.path = path
>
> # Adding a skinit before git fetch so that kerberos credentials
> # are acquired before doing a git fetch
> print "Before executing the git fetch statement:"
> print "The path is: " + str(path)
> cmd = 'cd ' + str(path) + '; /usr/local/bin/skinit -q; git fetch 
> --all'
> print commands.getstatusoutput(cmd)
> print "Done"
>
> Thanks,
> Abhishek
>
>
> On Monday, May 16, 2016 at 4:35:12 PM UTC+5:30, Abhishek Choudhary wrote:
>>
>> Thanks for you quick reply.
>>
>> What about the "Timeout when reading response headers from daemon 
>> process"  error. If I want to increase the timeout value as workaround for 
>> quick fix will it help? If so which timeout value should be configured here?
>>
>> On Monday, May 16, 2016 at 4:29:21 PM UTC+5:30, Christian Hammond wrote:
>>>
>>> Hi,
>>>
>>> We don't do any git fetches, and we don't output that log statement (or 
>>> output to the Apache log file). Are there any modifications to your Review 
>>> Board source code that might be doing this?
>>>
>>> You'll need to figure out what's doing that git fetch, as that 
>>> definitely sounds like it's the culprit.
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>>> On Mon, May 16, 2016 at 3:32 AM, Abhishek Choudhary <xab...@gmail.com> 
>>> wrote:
>>>
>>>> I get this error in reviewboard logs:
>>>>
>>>> [Mon May 16 06:29:59.527802 2016] [wsgi:error] [pid 4995] [client 
>>>> 10.79.176.142:32246] Timeout when reading response headers from daemon 
>>>> process 'sdlctool': /local/apps/reviewboard-prod/conf/apache_wsgi.conf, 
>>>> referer: http://reviewboard.nyc.deshaw.com/dashboard/
>>>>
>>>> I little new to this setup and am at total loss on this issue. Which 
>>>> timeout is causing this issue? I have around 100 repositories in the 
>>>> reviewboard setup. What timeout value should i configure and where?
>>>>
>>>> Thanks for help.
>>>>
>>>>
>>>>
>>>> On Monday, May 16, 2016 at 1:50:47 PM UTC+5:30, Abhishek Choudhary 
>>>> wrote:
>>>>>
>>>>> When I click on "new review request" I see following logs in 
>>>>> reviewboard:
>>>>> ...
>>>>> [Mon May 16 01:17:46.025209 2016] [wsgi:error] [pid 19078] Before 
>>>>> executing the git fetch statement:
>>>>> [Mon May 16 01:17:46.025234 2016] [wsgi:error] [pid 19078] The path 
>>>>> is: /data/sdlctools/reviewboard/repositories/git/test/batch_db/.git
>>>>> [Mon May 16 01:17:46.676418 2016] [wsgi:error] [pid 19078] (0, 
>>>>> 'Fetching origin')
>>>>> [Mon May 16 01:17:46.676437 2016] [wsgi:error] [pid 19078] Done
>>>>> [Mon May 16 01:17:46.679610 2016] [wsgi:error] [pid 19078] Before 
>>>>> executing the git fetch statement:
>>>>> [Mon May 16 01:17:46.679634 2016] [wsgi:error] [pid 19078] The path 
>>>>> is: 
>>>>> /data/sdlctools/reviewboard/repositories/git/enterprise/web-solutions/.git
>>>>> [Mon May 16 01:17:47.339001 2016] [wsgi:error] [pid 19078] (0, 
>>>>> 'Fetching origin')
>>>>> ..
>>>>>
>>>>> Seems that it tries to do git fetch for all repositories and the 
>>>>> Gateway timeout error occurs before these logs entries stop. Could this 
>>>>> be 
>>>>> an indicative of a problem?
>>>>>
>>>>> Thanks for the help
>>>>>
>>>>> On Saturday, May 14, 2016 at 3:59:43 PM UTC+5:30, Abhishek Choudhary 
>>

Re: 504 Gateway Timeout

2016-05-16 Thread Abhishek Choudhary
Hi
My reviewboard version 1.5.1

scmtools/git.py contains the git fetch lines i am seeing (debug=True is 
enabled in settings):

class GitClient:
def __init__(self, path):
self.path = path

# Adding a skinit before git fetch so that kerberos credentials
# are acquired before doing a git fetch
print "Before executing the git fetch statement:"
print "The path is: " + str(path)
cmd = 'cd ' + str(path) + '; /usr/local/bin/skinit -q; git fetch 
--all'
print commands.getstatusoutput(cmd)
print "Done"

Thanks,
Abhishek


On Monday, May 16, 2016 at 4:35:12 PM UTC+5:30, Abhishek Choudhary wrote:
>
> Thanks for you quick reply.
>
> What about the "Timeout when reading response headers from daemon process" 
>  error. If I want to increase the timeout value as workaround for quick fix 
> will it help? If so which timeout value should be configured here?
>
> On Monday, May 16, 2016 at 4:29:21 PM UTC+5:30, Christian Hammond wrote:
>>
>> Hi,
>>
>> We don't do any git fetches, and we don't output that log statement (or 
>> output to the Apache log file). Are there any modifications to your Review 
>> Board source code that might be doing this?
>>
>> You'll need to figure out what's doing that git fetch, as that definitely 
>> sounds like it's the culprit.
>>
>> Christian
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>> On Mon, May 16, 2016 at 3:32 AM, Abhishek Choudhary <xab...@gmail.com> 
>> wrote:
>>
>>> I get this error in reviewboard logs:
>>>
>>> [Mon May 16 06:29:59.527802 2016] [wsgi:error] [pid 4995] [client 
>>> 10.79.176.142:32246] Timeout when reading response headers from daemon 
>>> process 'sdlctool': /local/apps/reviewboard-prod/conf/apache_wsgi.conf, 
>>> referer: http://reviewboard.nyc.deshaw.com/dashboard/
>>>
>>> I little new to this setup and am at total loss on this issue. Which 
>>> timeout is causing this issue? I have around 100 repositories in the 
>>> reviewboard setup. What timeout value should i configure and where?
>>>
>>> Thanks for help.
>>>
>>>
>>>
>>> On Monday, May 16, 2016 at 1:50:47 PM UTC+5:30, Abhishek Choudhary wrote:
>>>>
>>>> When I click on "new review request" I see following logs in 
>>>> reviewboard:
>>>> ...
>>>> [Mon May 16 01:17:46.025209 2016] [wsgi:error] [pid 19078] Before 
>>>> executing the git fetch statement:
>>>> [Mon May 16 01:17:46.025234 2016] [wsgi:error] [pid 19078] The path is: 
>>>> /data/sdlctools/reviewboard/repositories/git/test/batch_db/.git
>>>> [Mon May 16 01:17:46.676418 2016] [wsgi:error] [pid 19078] (0, 
>>>> 'Fetching origin')
>>>> [Mon May 16 01:17:46.676437 2016] [wsgi:error] [pid 19078] Done
>>>> [Mon May 16 01:17:46.679610 2016] [wsgi:error] [pid 19078] Before 
>>>> executing the git fetch statement:
>>>> [Mon May 16 01:17:46.679634 2016] [wsgi:error] [pid 19078] The path is: 
>>>> /data/sdlctools/reviewboard/repositories/git/enterprise/web-solutions/.git
>>>> [Mon May 16 01:17:47.339001 2016] [wsgi:error] [pid 19078] (0, 
>>>> 'Fetching origin')
>>>> ..
>>>>
>>>> Seems that it tries to do git fetch for all repositories and the 
>>>> Gateway timeout error occurs before these logs entries stop. Could this be 
>>>> an indicative of a problem?
>>>>
>>>> Thanks for the help
>>>>
>>>> On Saturday, May 14, 2016 at 3:59:43 PM UTC+5:30, Abhishek Choudhary 
>>>> wrote:
>>>>>
>>>>> This happens when loading the New Review Request page. browsing the 
>>>>> already created review requests works fine. I am using GIT repository 
>>>>> which 
>>>>> is hosted on a  internal servers.
>>>>>
>>>>> Steps:
>>>>> Open dashboard page.
>>>>> Click on new review request button and the after waiting for about a 
>>>>> minute the gateway timeout error happens.
>>>>>
>>>>> On Saturday, May 14, 2016 at 2:21:26 AM UTC+5:30, Christian Hammond 
>>>>> wrote:
>>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> At what point do you see this? When loading the New Review Request 
>>>

Re: 504 Gateway Timeout

2016-05-16 Thread Abhishek Choudhary
Thanks for you quick reply.

What about the "Timeout when reading response headers from daemon process" 
 error. If I want to increase the timeout value as workaround for quick fix 
will it help? If so which timeout value should be configured here?

On Monday, May 16, 2016 at 4:29:21 PM UTC+5:30, Christian Hammond wrote:
>
> Hi,
>
> We don't do any git fetches, and we don't output that log statement (or 
> output to the Apache log file). Are there any modifications to your Review 
> Board source code that might be doing this?
>
> You'll need to figure out what's doing that git fetch, as that definitely 
> sounds like it's the culprit.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Mon, May 16, 2016 at 3:32 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> I get this error in reviewboard logs:
>>
>> [Mon May 16 06:29:59.527802 2016] [wsgi:error] [pid 4995] [client 
>> 10.79.176.142:32246] Timeout when reading response headers from daemon 
>> process 'sdlctool': /local/apps/reviewboard-prod/conf/apache_wsgi.conf, 
>> referer: http://reviewboard.nyc.deshaw.com/dashboard/
>>
>> I little new to this setup and am at total loss on this issue. Which 
>> timeout is causing this issue? I have around 100 repositories in the 
>> reviewboard setup. What timeout value should i configure and where?
>>
>> Thanks for help.
>>
>>
>>
>> On Monday, May 16, 2016 at 1:50:47 PM UTC+5:30, Abhishek Choudhary wrote:
>>>
>>> When I click on "new review request" I see following logs in reviewboard:
>>> ...
>>> [Mon May 16 01:17:46.025209 2016] [wsgi:error] [pid 19078] Before 
>>> executing the git fetch statement:
>>> [Mon May 16 01:17:46.025234 2016] [wsgi:error] [pid 19078] The path is: 
>>> /data/sdlctools/reviewboard/repositories/git/test/batch_db/.git
>>> [Mon May 16 01:17:46.676418 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
>>> origin')
>>> [Mon May 16 01:17:46.676437 2016] [wsgi:error] [pid 19078] Done
>>> [Mon May 16 01:17:46.679610 2016] [wsgi:error] [pid 19078] Before 
>>> executing the git fetch statement:
>>> [Mon May 16 01:17:46.679634 2016] [wsgi:error] [pid 19078] The path is: 
>>> /data/sdlctools/reviewboard/repositories/git/enterprise/web-solutions/.git
>>> [Mon May 16 01:17:47.339001 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
>>> origin')
>>> ..
>>>
>>> Seems that it tries to do git fetch for all repositories and the Gateway 
>>> timeout error occurs before these logs entries stop. Could this be an 
>>> indicative of a problem?
>>>
>>> Thanks for the help
>>>
>>> On Saturday, May 14, 2016 at 3:59:43 PM UTC+5:30, Abhishek Choudhary 
>>> wrote:
>>>>
>>>> This happens when loading the New Review Request page. browsing the 
>>>> already created review requests works fine. I am using GIT repository 
>>>> which 
>>>> is hosted on a  internal servers.
>>>>
>>>> Steps:
>>>> Open dashboard page.
>>>> Click on new review request button and the after waiting for about a 
>>>> minute the gateway timeout error happens.
>>>>
>>>> On Saturday, May 14, 2016 at 2:21:26 AM UTC+5:30, Christian Hammond 
>>>> wrote:
>>>>>
>>>>> Hi,
>>>>>
>>>>> At what point do you see this? When loading the New Review Request 
>>>>> page, or browsing commits, or...? Can you walk through every step?
>>>>>
>>>>> Also, what type of repository, and where is it hosted?
>>>>>
>>>>> Christian
>>>>>
>>>>>
>>>>> On Friday, May 13, 2016, Abhishek Choudhary <xab...@gmail.com> wrote:
>>>>>
>>>>>> Hi,
>>>>>>
>>>>>> I am seeing gateway timeout error with my reviewboard setup whenever 
>>>>>> i try to create a new request using 'New Review Request 
>>>>>> <http://reviewboard.nyc.deshaw.com/r/new/>' option. Dashboard loads 
>>>>>> up pretty quickly and other functionalities are working fine. The 
>>>>>> problem 
>>>>>> occurs with new request only.
>>>>>>
>>>>>> Server info:
>>>>>> Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips 
>>>>&g

Re: 504 Gateway Timeout

2016-05-16 Thread Abhishek Choudhary
I get this error in reviewboard logs:

[Mon May 16 06:29:59.527802 2016] [wsgi:error] [pid 4995] [client 
10.79.176.142:32246] Timeout when reading response headers from daemon 
process 'sdlctool': /local/apps/reviewboard-prod/conf/apache_wsgi.conf, 
referer: http://reviewboard.nyc.deshaw.com/dashboard/

I little new to this setup and am at total loss on this issue. Which 
timeout is causing this issue? I have around 100 repositories in the 
reviewboard setup. What timeout value should i configure and where?

Thanks for help.



On Monday, May 16, 2016 at 1:50:47 PM UTC+5:30, Abhishek Choudhary wrote:
>
> When I click on "new review request" I see following logs in reviewboard:
> ...
> [Mon May 16 01:17:46.025209 2016] [wsgi:error] [pid 19078] Before 
> executing the git fetch statement:
> [Mon May 16 01:17:46.025234 2016] [wsgi:error] [pid 19078] The path is: 
> /data/sdlctools/reviewboard/repositories/git/test/batch_db/.git
> [Mon May 16 01:17:46.676418 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
> origin')
> [Mon May 16 01:17:46.676437 2016] [wsgi:error] [pid 19078] Done
> [Mon May 16 01:17:46.679610 2016] [wsgi:error] [pid 19078] Before 
> executing the git fetch statement:
> [Mon May 16 01:17:46.679634 2016] [wsgi:error] [pid 19078] The path is: 
> /data/sdlctools/reviewboard/repositories/git/enterprise/web-solutions/.git
> [Mon May 16 01:17:47.339001 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
> origin')
> ..
>
> Seems that it tries to do git fetch for all repositories and the Gateway 
> timeout error occurs before these logs entries stop. Could this be an 
> indicative of a problem?
>
> Thanks for the help
>
> On Saturday, May 14, 2016 at 3:59:43 PM UTC+5:30, Abhishek Choudhary wrote:
>>
>> This happens when loading the New Review Request page. browsing the 
>> already created review requests works fine. I am using GIT repository which 
>> is hosted on a  internal servers.
>>
>> Steps:
>> Open dashboard page.
>> Click on new review request button and the after waiting for about a 
>> minute the gateway timeout error happens.
>>
>> On Saturday, May 14, 2016 at 2:21:26 AM UTC+5:30, Christian Hammond wrote:
>>>
>>> Hi,
>>>
>>> At what point do you see this? When loading the New Review Request page, 
>>> or browsing commits, or...? Can you walk through every step?
>>>
>>> Also, what type of repository, and where is it hosted?
>>>
>>> Christian
>>>
>>>
>>> On Friday, May 13, 2016, Abhishek Choudhary <xab...@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am seeing gateway timeout error with my reviewboard setup whenever i 
>>>> try to create a new request using 'New Review Request 
>>>> <http://reviewboard.nyc.deshaw.com/r/new/>' option. Dashboard loads up 
>>>> pretty quickly and other functionalities are working fine. The problem 
>>>> occurs with new request only.
>>>>
>>>> Server info:
>>>> Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips 
>>>> mod_auth_kerb/5.4 mod_wsgi/4.4.11 Python/2.7.11 Server
>>>>
>>>> I am not sure where to start looking for the issue. Has anyone seen 
>>>> this error before?
>>>>
>>>> Please help!
>>>>
>>>> Thanks,
>>>> Abhishek
>>>>
>>>> -- 
>>>> Supercharge your Review Board with Power Pack: 
>>>> https://www.reviewboard.org/powerpack/
>>>> Want us to host Review Board for you? Check out RBCommons: 
>>>> https://rbcommons.com/
>>>> Happy user? Let us know! https://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.
>>>>
>>>
>>>
>>> -- 
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: 504 Gateway Timeout

2016-05-16 Thread Abhishek Choudhary
When I click on "new review request" I see following logs in reviewboard:
...
[Mon May 16 01:17:46.025209 2016] [wsgi:error] [pid 19078] Before executing 
the git fetch statement:
[Mon May 16 01:17:46.025234 2016] [wsgi:error] [pid 19078] The path is: 
/data/sdlctools/reviewboard/repositories/git/test/batch_db/.git
[Mon May 16 01:17:46.676418 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
origin')
[Mon May 16 01:17:46.676437 2016] [wsgi:error] [pid 19078] Done
[Mon May 16 01:17:46.679610 2016] [wsgi:error] [pid 19078] Before executing 
the git fetch statement:
[Mon May 16 01:17:46.679634 2016] [wsgi:error] [pid 19078] The path is: 
/data/sdlctools/reviewboard/repositories/git/enterprise/web-solutions/.git
[Mon May 16 01:17:47.339001 2016] [wsgi:error] [pid 19078] (0, 'Fetching 
origin')
..

Seems that it tries to do git fetch for all repositories and the Gateway 
timeout error occurs before these logs entries stop. Could this be an 
indicative of a problem?

Thanks for the help

On Saturday, May 14, 2016 at 3:59:43 PM UTC+5:30, Abhishek Choudhary wrote:
>
> This happens when loading the New Review Request page. browsing the 
> already created review requests works fine. I am using GIT repository which 
> is hosted on a  internal servers.
>
> Steps:
> Open dashboard page.
> Click on new review request button and the after waiting for about a 
> minute the gateway timeout error happens.
>
> On Saturday, May 14, 2016 at 2:21:26 AM UTC+5:30, Christian Hammond wrote:
>>
>> Hi,
>>
>> At what point do you see this? When loading the New Review Request page, 
>> or browsing commits, or...? Can you walk through every step?
>>
>> Also, what type of repository, and where is it hosted?
>>
>> Christian
>>
>>
>> On Friday, May 13, 2016, Abhishek Choudhary <xab...@gmail.com> wrote:
>>
>>> Hi,
>>>
>>> I am seeing gateway timeout error with my reviewboard setup whenever i 
>>> try to create a new request using 'New Review Request 
>>> <http://reviewboard.nyc.deshaw.com/r/new/>' option. Dashboard loads up 
>>> pretty quickly and other functionalities are working fine. The problem 
>>> occurs with new request only.
>>>
>>> Server info:
>>> Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips 
>>> mod_auth_kerb/5.4 mod_wsgi/4.4.11 Python/2.7.11 Server
>>>
>>> I am not sure where to start looking for the issue. Has anyone seen this 
>>> error before?
>>>
>>> Please help!
>>>
>>> Thanks,
>>> Abhishek
>>>
>>> -- 
>>> Supercharge your Review Board with Power Pack: 
>>> https://www.reviewboard.org/powerpack/
>>> Want us to host Review Board for you? Check out RBCommons: 
>>> https://rbcommons.com/
>>> Happy user? Let us know! https://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.
>>>
>>
>>
>> -- 
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: 504 Gateway Timeout

2016-05-14 Thread Abhishek Choudhary
This happens when loading the New Review Request page. browsing the already 
created review requests works fine. I am using GIT repository which is 
hosted on a  internal servers.

Steps:
Open dashboard page.
Click on new review request button and the after waiting for about a minute 
the gateway timeout error happens.

On Saturday, May 14, 2016 at 2:21:26 AM UTC+5:30, Christian Hammond wrote:
>
> Hi,
>
> At what point do you see this? When loading the New Review Request page, 
> or browsing commits, or...? Can you walk through every step?
>
> Also, what type of repository, and where is it hosted?
>
> Christian
>
>
> On Friday, May 13, 2016, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I am seeing gateway timeout error with my reviewboard setup whenever i 
>> try to create a new request using 'New Review Request 
>> <http://reviewboard.nyc.deshaw.com/r/new/>' option. Dashboard loads up 
>> pretty quickly and other functionalities are working fine. The problem 
>> occurs with new request only.
>>
>> Server info:
>> Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips 
>> mod_auth_kerb/5.4 mod_wsgi/4.4.11 Python/2.7.11 Server
>>
>> I am not sure where to start looking for the issue. Has anyone seen this 
>> error before?
>>
>> Please help!
>>
>> Thanks,
>> Abhishek
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>
> -- 
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


504 Gateway Timeout

2016-05-13 Thread Abhishek Choudhary
Hi,

I am seeing gateway timeout error with my reviewboard setup whenever i try 
to create a new request using 'New Review Request 
' option. Dashboard loads up 
pretty quickly and other functionalities are working fine. The problem 
occurs with new request only.

Server info:
Apache/2.4.6 (Red Hat Enterprise Linux) OpenSSL/1.0.1e-fips 
mod_auth_kerb/5.4 mod_wsgi/4.4.11 Python/2.7.11 Server

I am not sure where to start looking for the issue. Has anyone seen this 
error before?

Please help!

Thanks,
Abhishek

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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: ImproperlyConfigured at /dashboard/ - The Django remote user auth middleware requires the authentication middleware to be installed.

2016-03-19 Thread Abhishek Choudhary
Hey,

How should i go about an upgrade from v1.5 to latest version. I have mysql 
database for the backend. Will it work seamlessly with the new version or 
this will require some steps?

Thanks,
Abhishek

On Wednesday, March 16, 2016 at 4:32:37 PM UTC+5:30, Christian Hammond 
wrote:
>
> Sorry, at this point, that release is far beyond our range of supported 
> versions. 1.5.1 came out over 5 years ago, and the last 1.5.x release came 
> out over 4 years ago. We're only providing support for 2.0.x and newer at 
> this point, and security releases only go back as far as 1.7.x.
> <http://mailstat.us/tr/opt-out?guid=m9ph04t68byb9iluqkj05> 
> <http://mailstat.us/tr/t/dummy>
>
> If this is a new problem that manifested suddenly, you'll need to figure 
> out what may have changed on your end. If it's based on a modification to 
> the code (adding middleware, for instance), then you may either be hitting 
> some code path that's not intended, or hitting a bug that we can't provide 
> a fix for at this point.
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Mar 16, 2016 at 3:11 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> I am using Reviewboard v1.5.1 for historical reasons. The upgrade is not 
>> something I am looking at currently. It would be great if the problem can 
>> be solved without upgrading.
>>
>> Thanks,
>> Abhishek
>>
>> On Wednesday, March 16, 2016 at 1:37:38 PM UTC+5:30, Christian Hammond 
>> wrote:
>>>
>>> Hi Abhishek,
>>>
>>> What version of Review Board is this? It looks like a very old, 
>>> unsupported version. Are you in a position where you can upgrade to 
>>> something modern?
>>>
>>> Christian
>>>
>>> -- 
>>> Christian Hammond
>>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>>> Makers of Review Board <https://www.reviewboard.org/>
>>>
>>> On Wed, Mar 16, 2016 at 12:34 AM, Abhishek Choudhary <xab...@gmail.com> 
>>> wrote:
>>>
>>>> Hi,
>>>>
>>>> I am getting below error with reviewboard instance:
>>>>
>>>> ImproperlyConfigured at /dashboard/
>>>>
>>>> The Django remote user auth middleware requires the authentication 
>>>> middleware to be installed.  Edit your MIDDLEWARE_CLASSES setting to 
>>>> insert 'django.contrib.auth.middleware.AuthenticationMiddleware' before 
>>>> the RemoteUs
>>>>
>>>> erMiddleware class.
>>>>
>>>> I am using python v2.7.11 and this is my python path:
>>>>
>>>>
>>>> '/prod/tools/infra/recaptcha_client-1.0.6-py2.6.egg', 
>>>> '/prod/tools/infra/django_evolution-0.6.5-py2.6.egg', 
>>>> '/prod/tools/infra/PIL-1.1.7-py2.6-linux-x86_64.egg', 
>>>> '/prod/tools/infra/Djblets-0.6.16-py2.6.egg', 
>>>> '/prod/tools/infra/Django-1.3.1-py2.6.egg', 
>>>> '/prod/tools/infra/ReviewBoard-1.5.1-py2.6.egg', 
>>>> '/local/apps/reviewboard-prod/conf', '/local/apps/reviewboard-prod', 
>>>> '/usr/local/python/python-2.7/std/lib/python2.7', 
>>>> '/opt/python/python-2.7/lib64/python2.7/lib-dynload', 
>>>> '/opt/python/python-2.7/lib64/python2.7', 
>>>> '/opt/python/python-2.7/lib/python2.7', 
>>>> '/opt/python/python-2.7/lib64/python2.7/lib-tk', 
>>>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages', 
>>>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/PIL', 
>>>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/newrelic-2.50.0.39',
>>>>  
>>>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/wx-3.0-gtk2',
>>>>  
>>>> '/opt/python/python-2.7/lib64/python2.7/site-packages', 
>>>> '/opt/python/python-2.7/lib/python2.7/site-packages', 
>>>> '/usr/local/lib/python2.7/site-packages', '/prod/tools/packages/lib/python'
>>>>
>>>> I had a working a setup until the change in python version. The apache 
>>>> version change is Apache/2.4.6 from Apache/2.2.15.
>>>>
>>>> Could anyone please help? The fix mentioned in exception is already in 
>>>> place i.e. the AuthenticationMiddleware is before RemoteUserMiddleware in 
>>>> settings
>>>>
>>>> Thanks,
>>>> Abhishek
>>>>
>>>>
>>>> -- 
>&g

Re: ImproperlyConfigured at /dashboard/ - The Django remote user auth middleware requires the authentication middleware to be installed.

2016-03-16 Thread Abhishek Choudhary
I am using Reviewboard v1.5.1 for historical reasons. The upgrade is not 
something I am looking at currently. It would be great if the problem can 
be solved without upgrading.

Thanks,
Abhishek

On Wednesday, March 16, 2016 at 1:37:38 PM UTC+5:30, Christian Hammond 
wrote:
>
> Hi Abhishek,
>
> What version of Review Board is this? It looks like a very old, 
> unsupported version. Are you in a position where you can upgrade to 
> something modern?
>
> Christian
>
> -- 
> Christian Hammond
> President/CEO of Beanbag <https://www.beanbaginc.com/>
> Makers of Review Board <https://www.reviewboard.org/>
>
> On Wed, Mar 16, 2016 at 12:34 AM, Abhishek Choudhary <xab...@gmail.com 
> > wrote:
>
>> Hi,
>>
>> I am getting below error with reviewboard instance:
>>
>> ImproperlyConfigured at /dashboard/
>>
>> The Django remote user auth middleware requires the authentication 
>> middleware to be installed.  Edit your MIDDLEWARE_CLASSES setting to insert 
>> 'django.contrib.auth.middleware.AuthenticationMiddleware' before the RemoteUs
>>
>> erMiddleware class.
>>
>> I am using python v2.7.11 and this is my python path:
>>
>>
>> '/prod/tools/infra/recaptcha_client-1.0.6-py2.6.egg', 
>> '/prod/tools/infra/django_evolution-0.6.5-py2.6.egg', 
>> '/prod/tools/infra/PIL-1.1.7-py2.6-linux-x86_64.egg', 
>> '/prod/tools/infra/Djblets-0.6.16-py2.6.egg', 
>> '/prod/tools/infra/Django-1.3.1-py2.6.egg', 
>> '/prod/tools/infra/ReviewBoard-1.5.1-py2.6.egg', 
>> '/local/apps/reviewboard-prod/conf', '/local/apps/reviewboard-prod', 
>> '/usr/local/python/python-2.7/std/lib/python2.7', 
>> '/opt/python/python-2.7/lib64/python2.7/lib-dynload', 
>> '/opt/python/python-2.7/lib64/python2.7', 
>> '/opt/python/python-2.7/lib/python2.7', 
>> '/opt/python/python-2.7/lib64/python2.7/lib-tk', 
>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages', 
>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/PIL', 
>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/newrelic-2.50.0.39',
>>  
>> '/usr/local/python/python-2.7/std/lib/python2.7/site-packages/wx-3.0-gtk2', 
>> '/opt/python/python-2.7/lib64/python2.7/site-packages', 
>> '/opt/python/python-2.7/lib/python2.7/site-packages', 
>> '/usr/local/lib/python2.7/site-packages', '/prod/tools/packages/lib/python'
>>
>> I had a working a setup until the change in python version. The apache 
>> version change is Apache/2.4.6 from Apache/2.2.15.
>>
>> Could anyone please help? The fix mentioned in exception is already in 
>> place i.e. the AuthenticationMiddleware is before RemoteUserMiddleware in 
>> settings
>>
>> Thanks,
>> Abhishek
>>
>>
>> -- 
>> Supercharge your Review Board with Power Pack: 
>> https://www.reviewboard.org/powerpack/
>> Want us to host Review Board for you? Check out RBCommons: 
>> https://rbcommons.com/
>> Happy user? Let us know! https://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.
>>
>
>

-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.


ImproperlyConfigured at /dashboard/ - The Django remote user auth middleware requires the authentication middleware to be installed.

2016-03-16 Thread Abhishek Choudhary
Hi,

I am getting below error with reviewboard instance:

ImproperlyConfigured at /dashboard/

The Django remote user auth middleware requires the authentication middleware 
to be installed.  Edit your MIDDLEWARE_CLASSES setting to insert 
'django.contrib.auth.middleware.AuthenticationMiddleware' before the RemoteUs

erMiddleware class.

I am using python v2.7.11 and this is my python path:


'/prod/tools/infra/recaptcha_client-1.0.6-py2.6.egg', 
'/prod/tools/infra/django_evolution-0.6.5-py2.6.egg', 
'/prod/tools/infra/PIL-1.1.7-py2.6-linux-x86_64.egg', 
'/prod/tools/infra/Djblets-0.6.16-py2.6.egg', 
'/prod/tools/infra/Django-1.3.1-py2.6.egg', 
'/prod/tools/infra/ReviewBoard-1.5.1-py2.6.egg', 
'/local/apps/reviewboard-prod/conf', '/local/apps/reviewboard-prod', 
'/usr/local/python/python-2.7/std/lib/python2.7', 
'/opt/python/python-2.7/lib64/python2.7/lib-dynload', 
'/opt/python/python-2.7/lib64/python2.7', 
'/opt/python/python-2.7/lib/python2.7', 
'/opt/python/python-2.7/lib64/python2.7/lib-tk', 
'/usr/local/python/python-2.7/std/lib/python2.7/site-packages', 
'/usr/local/python/python-2.7/std/lib/python2.7/site-packages/PIL', 
'/usr/local/python/python-2.7/std/lib/python2.7/site-packages/newrelic-2.50.0.39',
 
'/usr/local/python/python-2.7/std/lib/python2.7/site-packages/wx-3.0-gtk2', 
'/opt/python/python-2.7/lib64/python2.7/site-packages', 
'/opt/python/python-2.7/lib/python2.7/site-packages', 
'/usr/local/lib/python2.7/site-packages', '/prod/tools/packages/lib/python'

I had a working a setup until the change in python version. The apache 
version change is Apache/2.4.6 from Apache/2.2.15.

Could anyone please help? The fix mentioned in exception is already in 
place i.e. the AuthenticationMiddleware is before RemoteUserMiddleware in 
settings

Thanks,
Abhishek


-- 
Supercharge your Review Board with Power Pack: 
https://www.reviewboard.org/powerpack/
Want us to host Review Board for you? Check out RBCommons: 
https://rbcommons.com/
Happy user? Let us know! https://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.