Re: Lets Encrypt

2020-09-17 Thread Paul Mansfield
I used the standard apache2 ssl template with the LE files like this:

SSLEngine on
SSLCertificateFile  "/etc/ssl/
example.com/example.com__fullchain.pem"
SSLCertificateKeyFile   "/etc/ssl/
example.com/example.com__privkey.pem"
SSLCipherSuite  HIGH:!aNULL:!MD5

I have a small locked down machine running the LE tools, and also Hashicorp
Vault. This machine has various cron jobs to renew certificates or access
tokens, it can copy them to a Puppet server, and then all my nodes collect
updated https cert and keys and reload their web server when they change.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcBwE700XnzFcDJFONP5NJmAG6KrdM3cbzHsXJLX1Oiemg%40mail.gmail.com.


Re: Posting a review against multiple repositories.

2020-08-06 Thread Paul Mansfield
how about having reviews follow the epic/story model... a parent review
with child reviews. Each child review would be associated with individual
repositories, and you then set it so that nothing can be landed until all
related reviews are marked as ship-its?

this might be much easier to achieve in the reviewboard code than reviews
which span repositories?

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcDcj2EWW%2Bv6JdFo57OcxtBuFpk1mr4YQH0mJz5vsQe%3DtQ%40mail.gmail.com.


reviewers idea

2020-08-04 Thread Paul Mansfield
As previously discusses some teams have a requirement that you get two
ship-its before landing, it would nice if this could be a setting in RB.

It would also be nice if you have a "required reviewers" list so that
something can't be landed without their say-so.

The other reviewers list could then be optional reviewers, or even "FYI".

Would it be possible to allow an admin to change the owner/author of a
review?

thanks

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcAfu7xU4c9rFU_jDFd%2B9yrJDxq2PUTF99zMzawFN4PC7A%40mail.gmail.com.


Re: site migration

2020-07-28 Thread Paul Mansfield
AIUI, it's all in the database.
https://groups.google.com/g/reviewboard/c/KHjIWCU_YJo

well, apart from people's avatars, so I would back up htdocs/media/


On Tue, 28 Jul 2020 at 17:16, Adam Weremczuk  wrote:

> Hi Paul,
>
> Thanks for the hint, I'll bear it in mind.
>
> What I'm after really is a site migration procedure applicable to my
> environment.
>
> If there is no official documentation in place maybe somebody could at
> least provide a list of steps?
>
> Regards,
> Adam
>
>
> On Tue, 28 Jul 2020 at 17:04, Paul Mansfield <
> paul.mansfi...@agileanalog.com> wrote:
>
>> did you restore your SECRET_KEY?
>>
>> check your reviewboard settings_local.py file
>>
>> mine is in /var/www/reviewboard/conf/settings_local.py because that's the
>> directory for my virtual http server
>>
>> in there you'll find this:
>> # Unique secret key. Don't share this with anybody.
>> SECRET_KEY = 'xxx'
>>
>> you need to make a note/copy of that key from your live RB instance, and
>> if you restore it from a backup, put that key into the new instance.
>>
>>
>>
>>
>> On Tue, 28 Jul 2020 at 15:58, Adam Weremczuk 
>> wrote:
>>
>>> Hi all,
>>>
>>> Today I've attempted a migration from:
>>>
>>> Debian 9.3
>>> Apache 2.4.25
>>> MySQL 5.7.30
>>> ReviewBoard 3.0.17
>>>
>>> to:
>>>
>>> Debian 9.13
>>> Apache 2.4.25
>>> MySQL 5.7.31
>>> ReviewBoard 3.0.18
>>>
>>> Rather small differences and I didn't expect much trouble.
>>>
>>> I started with migrating database (mysqldump) which resulted in the
>>> following error:
>>>
>>>
>>>
>>>
>>> *Something broke! (Error 500)It appears something broke when you tried
>>> to go to here. This is either a bug in Review Board or a server
>>> configuration error. Please report this to your administrator.[Tue Jul 28
>>> 13:05:08.361856 2020] [wsgi:error] [pid 1650:tid 140483573556992] [client
>>> 10.200.20.2:53391 <http://10.200.20.2:53391>] ERROR:root:Could not load
>>> siteconfig: Site matching query does not exist.*
>>>
>>> When I dropped the database and restored the original the error didn't
>>> go away which I found really strange. In order to get a fully functional
>>> vanilla RB 3.0.18 back on the destination I had to restore the entire
>>> container from a pre-db-fiddling backup.
>>>
>>> By looking at the content of mysqldump it doesn't look like db
>>> migration should be necessary anyway. The differences between a vanilla and
>>> data populated dump where down to:
>>>
>>> *ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;*
>>>
>>> vs
>>>
>>> *ENGINE=InnoDB DEFAULT CHARSET=utf8;*
>>>
>>> Is it ok to just copy "repository-clones", "data" and "conf" directories
>>> over?
>>>
>>> Is what I'm trying to achieve documented somewhere step by step in
>>> details?
>>>
>>> Please advise.
>>>
>>> Regards,
>>> Adam
>>>
>>> --
>>> 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 "Review Board Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to reviewboard+unsubscr...@googlegroups.com.
>>> To view this discussion on the web visit
>>> https://groups.google.com/d/msgid/reviewboard/CALC-DAHJf%3DF1nzFF-TwhugqA1Dgj4azZ8F83jLNBofjBZbXFsw%40mail.gmail.com
>>> <https://groups.google.com/d/msgid/reviewboard/CALC-DAHJf%3DF1nzFF-TwhugqA1Dgj4azZ8F83jLNBofjBZbXFsw%40mail.gmail.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> --
>> P Mansfield, Senior DevOps Engineer, Agile Analog Ltd
>> GPG fingerprint: 8BC9D73EE3D4669C1C138ABD41D5B0C9030D4AE6
>>
>> --
>> 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

Re: site migration

2020-07-28 Thread Paul Mansfield
did you restore your SECRET_KEY?

check your reviewboard settings_local.py file

mine is in /var/www/reviewboard/conf/settings_local.py because that's the
directory for my virtual http server

in there you'll find this:
# Unique secret key. Don't share this with anybody.
SECRET_KEY = 'xxx'

you need to make a note/copy of that key from your live RB instance, and if
you restore it from a backup, put that key into the new instance.




On Tue, 28 Jul 2020 at 15:58, Adam Weremczuk  wrote:

> Hi all,
>
> Today I've attempted a migration from:
>
> Debian 9.3
> Apache 2.4.25
> MySQL 5.7.30
> ReviewBoard 3.0.17
>
> to:
>
> Debian 9.13
> Apache 2.4.25
> MySQL 5.7.31
> ReviewBoard 3.0.18
>
> Rather small differences and I didn't expect much trouble.
>
> I started with migrating database (mysqldump) which resulted in the
> following error:
>
>
>
>
> *Something broke! (Error 500)It appears something broke when you tried to
> go to here. This is either a bug in Review Board or a server configuration
> error. Please report this to your administrator.[Tue Jul 28 13:05:08.361856
> 2020] [wsgi:error] [pid 1650:tid 140483573556992] [client 10.200.20.2:53391
> ] ERROR:root:Could not load siteconfig: Site
> matching query does not exist.*
>
> When I dropped the database and restored the original the error didn't go
> away which I found really strange. In order to get a fully functional
> vanilla RB 3.0.18 back on the destination I had to restore the entire
> container from a pre-db-fiddling backup.
>
> By looking at the content of mysqldump it doesn't look like db
> migration should be necessary anyway. The differences between a vanilla and
> data populated dump where down to:
>
> *ENGINE=InnoDB AUTO_INCREMENT=20 DEFAULT CHARSET=utf8;*
>
> vs
>
> *ENGINE=InnoDB DEFAULT CHARSET=utf8;*
>
> Is it ok to just copy "repository-clones", "data" and "conf" directories
> over?
>
> Is what I'm trying to achieve documented somewhere step by step in details?
>
> Please advise.
>
> Regards,
> Adam
>
> --
> 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
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to reviewboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/reviewboard/CALC-DAHJf%3DF1nzFF-TwhugqA1Dgj4azZ8F83jLNBofjBZbXFsw%40mail.gmail.com
> 
> .
>


-- 
P Mansfield, Senior DevOps Engineer, Agile Analog Ltd
GPG fingerprint: 8BC9D73EE3D4669C1C138ABD41D5B0C9030D4AE6

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcDhwVvxF3kXmFF1VnMbW-ud3DDJmAWkuzyHATXHabnS3Q%40mail.gmail.com.


Re: Review Board on Centos 7

2020-07-15 Thread Paul Mansfield
selinux?

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcDrMV5swmuKoOB9Ni_VAoKUTdOgr6F1QHaoSZPF5UYprQ%40mail.gmail.com.


Re: One of our user not receiving email notifications

2020-07-08 Thread Paul Mansfield
do you have a local smtp server which relays the email, or are you
directly injecting mail into google's MXers?

if you have a local mail relay, can you check the logs and verify it
is actually completing the email handshake with Google's MXers?

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcDJD3RY%2Bdo7BEhKygE9VVSy5cK-VVFcJ6O3AxBzspJ0tQ%40mail.gmail.com.


Re: LDAP authentication error

2020-05-21 Thread Paul Mansfield
On Thu, 21 May 2020 at 13:35, Adam Weremczuk  wrote:
> Is my version (3.2.0) known to be problematic and are you suggesting 2.4.15 ?

No, I just wanted to be sure that reviewboard would be able to load
python ldap if it needed it.

if you run "sudo netstat -anp | grep -E '389|636' " and then "tcpdump
port 389 or port 686" can you verify that reviewboard is actually
making a connection to the ldap server?

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcAiWa2EobdaxWasaG_XoH5Ba8Yy2oGq5aDV%2BqZJByNZSA%40mail.gmail.com.


Re: LDAP authentication error

2020-05-21 Thread Paul Mansfield
On Thu, 21 May 2020 at 11:52, Adam Weremczuk  wrote:
> My LDAP settings:

do you have python (2.x) ldap module installed?

$ pip2 list | egrep ldap
DEPRECATION: Python 2.7 reached the end of its life on January 1st,
2020. Please upgrade your Python as Python 2.7 is no longer
maintained. pip 21.0 will drop support for Python 2.7 in January 2021.
More details about Python 2 support in pip, can be found at
https://pip.pypa.io/en/latest/development/release-process/#python-2-support
python-ldap  2.4.15

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcBh52M_TxbihdKpZD%3D08p44-nF4NLbOBC6PcLV%2BsWqHmw%40mail.gmail.com.


Re: Create likes to award for excellent piece of code or for an excellent review comment

2020-05-18 Thread Paul Mansfield
how about everybody gets one(?) gold star a day they can award to a
good review or a good file/diff?

On Mon, 18 May 2020 at 04:43, Christian Hammond
 wrote:
>
> I like the idea as well. We've discussed ideas to motivate quality code 
> reviews in the past. I think it's something we'd like to explore in the 
> future.
>
> If there are any ideas in the community on how this might look, please share 
> :)
>
> Christian
>
> On Thu, May 14, 2020 at 4:50 AM Paul Mansfield 
>  wrote:
>>
>> On Wed, 13 May 2020 at 20:26, Dmitriy Matison  wrote:
>> > For the latter I want to award a guy with a like or some sort of a bounty 
>> > badge.
>>
>> I like this idea, Dmitriy is right, a code review can be a daunting
>> thing for someone who's a new coder and can often leave people feeling
>> battered and bruised if they did some complex work which needed
>> refinement!
>>
>> --
>> 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 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to reviewboard+unsubscr...@googlegroups.com.
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/CAMukpcBDETvgbqHz_NdNftY4xFJT%3DSnKjZTyAMUTxthufZ1Vug%40mail.gmail.com.
>
>
>
> --
> 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 
> "Review Board Community" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to reviewboard+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/reviewboard/CAE7VndnqHwsFGL5657vnWKQ69U%3DNCfiFKna4XWOqK95a_zbc4g%40mail.gmail.com.



-- 
P Mansfield, Senior DevOps Engineer, Agile Analog Ltd
GPG fingerprint: 8BC9D73EE3D4669C1C138ABD41D5B0C9030D4AE6

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcBsW%3DYShApDwCm86Furo5ZEiNY%2BfUxPRa%3DdDEDuRrH2Lw%40mail.gmail.com.


Re: Create likes to award for excellent piece of code or for an excellent review comment

2020-05-14 Thread Paul Mansfield
On Wed, 13 May 2020 at 20:26, Dmitriy Matison  wrote:
> For the latter I want to award a guy with a like or some sort of a bounty 
> badge.

I like this idea, Dmitriy is right, a code review can be a daunting
thing for someone who's a new coder and can often leave people feeling
battered and bruised if they did some complex work which needed
refinement!

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/CAMukpcBDETvgbqHz_NdNftY4xFJT%3DSnKjZTyAMUTxthufZ1Vug%40mail.gmail.com.


Re: Restrict Submitter

2020-01-02 Thread Paul Mansfield
as a thought. is it possible with RB to disallow the person submitting the 
review from being able to Ship-It?
also, is it possible to make RB block the landing a review without two 
ship-it's from two different people?

this would help enforce good practises, many orgs including ours require 
two ship-its for merging to master.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/33cfd45e-93a0-4d35-b478-79eda0ceeb83%40googlegroups.com.


500 error when trying to download a CSV report "code review relationships" for everybody

2019-11-26 Thread Paul Mansfield


I clicked on the Reports link in the top navigation


and then selected code review relationships and selected everyone.


I then clicked on the Download CSV link on the right hand side and got 
Something broke! (Error 500)

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



going directly to this link also reproduces the error:

https://rb.example.com/reports/review-relationships/data/?users===2019-10-27=2019-11-02=true=1
 




when I do this, I see the following error in the log:


2019-11-26 17:04:49,963 - ERROR - None - paulm - 
/reports/review-relationships/data/ - djblets.log.middleware - Exception 
thrown for user paulm at 
https://rb.example.com/reports/review-relationships/data/?users===2019-10-27=2019-11-02=true=1


1L

Traceback (most recent call last):

  File "/usr/lib/python2.7/site-packages/django/core/handlers/base.py", 
line 112, in get_response

response = wrapped_callback(request, *callback_args, **callback_kwargs)

  File 
"/usr/lib/python2.7/site-packages/reviewboard/accounts/decorators.py", line 
29, in _check

return login_required(view_func)(*args, **kwargs)

  File 
"/usr/lib/python2.7/site-packages/django/contrib/auth/decorators.py", line 
22, in _wrapped_view

return view_func(request, *args, **kwargs)

  File "/usr/lib/python2.7/site-packages/reviewboard/site/decorators.py", 
line 36, in _check

return view_func(request, local_site=local_site, *args, **kwargs)

  File "/rbpowerpack/reports/decorators.py", line 29, in _check

  File "/rbpowerpack/reports/views.py", line 58, in report_data

  File "/rbpowerpack/reports/reports.py", line 1188, in get_csv

KeyError: 1L



if I manually select people and DONT choose everyone, then it works fine


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/bc65422c-bc1f-4399-8a75-be34619009a1%40googlegroups.com.


Re: API call to search for all reviews where branch is a specific value

2019-10-23 Thread Paul Mansfield
for searching the description and testing fields, a simple free text 
database like namazu would probably be a better way than using SQL to scan 
text fields.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/e6fc11cf-cfc1-4372-b33a-28d3c7931362%40googlegroups.com.


Re: API call to search for all reviews where branch is a specific value

2019-10-23 Thread Paul Mansfield
Ideally any field in a review request should be useable as a filter, but I 
accept that the demands of indexing would be a problem.



On Wednesday, 23 October 2019 08:11:25 UTC+1, Christian Hammond wrote:
>
> So there's a challenge with this that I hadn't considered before.
>
> We don't automatically create an index for the branch field. While we 
> could push an update that adds one, this can impact upgrades to 3.0.16, 
> potentially taking a substantially long time to complete. We try to avoid 
> this for point releases, so I'd feel a lot more comfortable adding this 
> index in 4.0, where we're already performing modifications to the database 
> schema.
>
> We could still add the query argument in 3.0.16, but performance wouldn't 
> be ideal without manually adding an index (which may then need to be 
> manually removed when 4.0 is out). So unfortunately, not as clear-cut as I 
> was hoping.
>
> Going to need to ponder this...
>
> Christian
>
> On Tue, Oct 22, 2019 at 11:14 PM Christian Hammond  > wrote:
>
>> Hi Paul,
>>
>> Hmm, I thought we had this as part of the API. I'll add that for 3.0.16. 
>> We're aiming for an early-November release, trying to wrap up some work 
>> before we get that release ready, but it'll probably be the 5th or the 12th.
>>
>> If need-be, extensions can always provide custom API to fill in the gaps 
>> that we're missing, if it's blocking you on something and you can't wait 
>> until the next release.
>>
>> Christian
>>
>> On Mon, Oct 21, 2019 at 3:04 AM Paul Mansfield > > wrote:
>>
>>> Hi,
>>> imagine I have some reviews done on a feature branch called 
>>> "SCRATCH-123", and I want to search for them using the API.
>>>
>>> is this possible?
>>>
>>> reading the documents at 
>>> https://www.reviewboard.org/docs/manual/3.0/webapi/ and
>>>
>>> https://www.reviewboard.org/docs/manual/3.0/webapi/2.0/resources/review-request-list/
>>>
>>> suggests there isn't that ability, it doesn't seem to be possible filter 
>>> on the branch? then I would have to get a list of all review requests on a 
>>> repository and then iterate and filter myself?
>>>
>>> thanks
>>> Paul
>>>
>>> -- 
>>> 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 "Review Board Community" group.
>>> To unsubscribe from this group and stop receiving emails from it, send 
>>> an email to revie...@googlegroups.com .
>>> To view this discussion on the web visit 
>>> https://groups.google.com/d/msgid/reviewboard/3b47b04e-3feb-4bec-9e84-ee749b00150d%40googlegroups.com
>>>  
>>> <https://groups.google.com/d/msgid/reviewboard/3b47b04e-3feb-4bec-9e84-ee749b00150d%40googlegroups.com?utm_medium=email_source=footer>
>>> .
>>>
>>
>>
>> -- 
>> Christian Hammond
>> President/CEO of Beanbag <https://www.beanbaginc.com/>
>> Makers of Review Board <https://www.reviewboard.org/>
>>
>
>
> -- 
> 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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/d10fb256-cbfb-4a93-977f-400c32ea6fc0%40googlegroups.com.


API call to search for all reviews where branch is a specific value

2019-10-21 Thread Paul Mansfield
Hi,
imagine I have some reviews done on a feature branch called "SCRATCH-123", 
and I want to search for them using the API.

is this possible?

reading the documents at https://www.reviewboard.org/docs/manual/3.0/webapi/
 and
https://www.reviewboard.org/docs/manual/3.0/webapi/2.0/resources/review-request-list/

suggests there isn't that ability, it doesn't seem to be possible filter on 
the branch? then I would have to get a list of all review requests on a 
repository and then iterate and filter myself?

thanks
Paul

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/3b47b04e-3feb-4bec-9e84-ee749b00150d%40googlegroups.com.


Re: pkg_resources.DistributionNotFound error while testing rbt

2019-10-10 Thread Paul Mansfield

IME, you're better off using pip to install it

check whether pip has it installed:
$ sudo pip list | grep -i rbt
RBTools   1.0.2 

then
$ sudo pip install RBTools


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/89d4ba12-5b41-47ea-b925-57e917366cf5%40googlegroups.com.


Re: LDAP Configuration

2019-10-08 Thread Paul Mansfield

yes please, I had to use this flag: authlogin_nsswitch_use_ldap
I already had the other flags in my deployment scripts in puppet.

On Tuesday, 8 October 2019 11:54:38 UTC+1, Stephen Gallagher wrote:
>
>
>
> On Tue, Oct 8, 2019 at 6:35 AM Paul Mansfield  > wrote:
>
>> I found the problem. facepalm. I should have guessed. damn selinux.
>>
>> I found it because I realised that the avatars weren't working as after 
>> fixing the directory permissions under .../htdocs/media they still didn't 
>> work, so I did a "setenforce permissive" and then discovered that, ldap 
>> login worked too.
>>
>
> Do the SELinux instructions I added to 
>
> https://www.reviewboard.org/docs/manual/dev/admin/installation/creating-sites/
>  
> need updating?
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/32db415b-513e-4d6f-813e-e8c9f0e5018c%40googlegroups.com.


Re: LDAP Configuration

2019-10-08 Thread Paul Mansfield
BTW, the secret magic command is

sudo setsebool -P authlogin_nsswitch_use_ldap=1


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/49c6fefd-60da-41e7-b816-7f5effb62242%40googlegroups.com.


Re: LDAP Configuration

2019-10-08 Thread Paul Mansfield
I found the problem. facepalm. I should have guessed. damn selinux.

I found it because I realised that the avatars weren't working as after 
fixing the directory permissions under .../htdocs/media they still didn't 
work, so I did a "setenforce permissive" and then discovered that, ldap 
login worked too.

Also, avatars were broken because the original reviewboard install was at 
rb.example.com and the restored one at rb2.example.com an I hadn't changed 
the URL in the General Settings. When I looked at the html source, the URL 
was fully qualified with the domain 
(https://rb.example.com/media/...blahblah) rather than being a relative 
URI. When I changed the general settings, the HTML reference also changed 
of course and avatars started working again.

So I guess the local avatar thing is probably a bug since it shouldn't 
really need to depend on a full URL unless that's a function of the way 
it's done in order to work with multiple avatar services.


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/bbe0cf70-f9ea-4b09-a7a4-db3e0947d50a%40googlegroups.com.


Re: LDAP Configuration

2019-10-03 Thread Paul Mansfield
Hi,
thanks for coming back to me.

I don't see any outbound packets to the ldap server on the new reviewboard 
server, but I do on the old one - I am looking for any outbound traffic to 
the ldap server, or, any traffic to tcp:389

If I compare the ldap settings page on both servers, they look identical, 
so I am wondering if there's another configuration file I need to tweak.

thanks
Paul

 - 
On Tuesday, 1 October 2019 19:32:00 UTC+1, Christian Hammond wrote:
>
> Hi Paul,
>
> Does the LDAP server restrict access by IP address?
>
> Christian
>
> On Thu, Sep 26, 2019 at 8:22 AM Paul Mansfield  > wrote:
>
>>
>> I was testing my reviewboard backups are good, so I restored from the 
>> mysqldump, and copied over the saved settings_local.py
>>
>> I can login as the admin user, and the ldap settings are the same as the 
>> live server, but I can't login using ldap, and I get this error in the log:
>>
>> [Thu Sep 26 14:20:40.644378 2019] [:error] [pid 25293] 2019-09-26 
>> 14:20:40,644 - WARNING -  - root - Error authenticating with LDAP: {'desc': 
>> "Can't contact LDAP server"}
>>
>>
>> if I run tcpdump on the live server, I see a connection to the ldap 
>> server, but nothing is seen on the new standby server.
>>
>> On the new machine, I can ping the FQDN (ldap.example.com) as well as 
>> just "ldap", so that means DNS is fine, as is the domain search list in 
>> /etc/resolv.conf
>>
>> I checked that python-ldap package is installed on both, as is openldap 
>> package. Nothing obvious different when I run "pip list" on both.
>>
>> I am not sure how to go further with diagnosing the problem and what is 
>> broken, any ideas gratefully received,
>>
>> thanks
>>
>> Paul
>>
>> -- 
>> 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 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to revie...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/0ff5c79f-7056-482a-8fd7-debbec676a8e%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/reviewboard/0ff5c79f-7056-482a-8fd7-debbec676a8e%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
>
>
> -- 
> 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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/7fc40899-7fb3-4961-be28-d162b7e6d83e%40googlegroups.com.


Re: LDAP Configuration

2019-09-26 Thread Paul Mansfield

I was testing my reviewboard backups are good, so I restored from the 
mysqldump, and copied over the saved settings_local.py

I can login as the admin user, and the ldap settings are the same as the 
live server, but I can't login using ldap, and I get this error in the log:

[Thu Sep 26 14:20:40.644378 2019] [:error] [pid 25293] 2019-09-26 
14:20:40,644 - WARNING -  - root - Error authenticating with LDAP: {'desc': 
"Can't contact LDAP server"}


if I run tcpdump on the live server, I see a connection to the ldap server, 
but nothing is seen on the new standby server.

On the new machine, I can ping the FQDN (ldap.example.com) as well as just 
"ldap", so that means DNS is fine, as is the domain search list in 
/etc/resolv.conf

I checked that python-ldap package is installed on both, as is openldap 
package. Nothing obvious different when I run "pip list" on both.

I am not sure how to go further with diagnosing the problem and what is 
broken, any ideas gratefully received,

thanks

Paul

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/0ff5c79f-7056-482a-8fd7-debbec676a8e%40googlegroups.com.


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

2019-09-25 Thread Paul Mansfield
I think my problems are compounded because we're using centos7 and we have 
a lot of python3 packages "retrofitted" so it is very easy to get into a 
mess between pip2 and pip3 packages.

Now we've bought into reviewboard, as part of a backup/restore disaster 
recovery test, I will build a new reviewboard server which can be 
independent from other things and thus not get snarled up with packages 
installed for the other services :-(

In the long run when reviewboard runs on python3, then things will get 
simpler ;-)
thanks very much for your time,
Paul


On Tuesday, 24 September 2019 21:04:27 UTC+1, Christian Hammond wrote:
>
> Hi Paul,
>
> Strange.. that does sound like a Python version dependency conflict. 
> Unfortunately, Python’s design here has some less-than-ideal qualities. If 
> *any* dependency conflicts, all things registered through the Python 
> Entrypoint plugin system (extensions, repository types) will fail to load. 
> We have some bullet-proofing we need to do here to stop crashes and just 
> throw a big error up on the page, but we can’t work around the core design 
> issue in Python to the extent we’d like.
>
> You probably didn’t need to regenerate the access key, but it never hurts.
>
> Christian
>
>
> On Tue, Sep 24, 2019 at 09:01 Paul Mansfield  > wrote:
>
>> it appears that somehow the pip installation of 
>> aws/awscli/boto/boto3/botocore was all fouled up... I removed them all and 
>> reinstalled them.
>>
>> along the way I also regenerated the access key for codecommit access, 
>> I'm not sure whether that was actually required or not.
>>
>> so it seems to be working again.
>>
>> -- 
>> 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 
>> "Review Board Community" group.
>> To unsubscribe from this group and stop receiving emails from it, send an 
>> email to revie...@googlegroups.com .
>> To view this discussion on the web visit 
>> https://groups.google.com/d/msgid/reviewboard/3c22cdb0-e1cc-4ee6-baac-77317945b4a2%40googlegroups.com
>>  
>> <https://groups.google.com/d/msgid/reviewboard/3c22cdb0-e1cc-4ee6-baac-77317945b4a2%40googlegroups.com?utm_medium=email_source=footer>
>> .
>>
> -- 
> -- 
> 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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/af21612b-c6cc-4e50-86f1-f9e8e3d3c86b%40googlegroups.com.


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

2019-09-24 Thread Paul Mansfield
it appears that somehow the pip installation of 
aws/awscli/boto/boto3/botocore was all fouled up... I removed them all and 
reinstalled them.

along the way I also regenerated the access key for codecommit access, I'm 
not sure whether that was actually required or not.

so it seems to be working again.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/3c22cdb0-e1cc-4ee6-baac-77317945b4a2%40googlegroups.com.


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

2019-09-24 Thread Paul Mansfield
and I see this in the http error log

[Tue Sep 24 14:57:09.362504 2019] [:error] [pid 29304] 'NoneType' object 
has no attribute 'plans'
[Tue Sep 24 14:57:09.362508 2019] [:error] [pid 29304] Traceback (most 
recent call last):
[Tue Sep 24 14:57:09.362511 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/core/handlers/base.py", line 112, 
in get_response
[Tue Sep 24 14:57:09.362514 2019] [:error] [pid 29304] response = 
wrapped_callback(request, *callback_args, **callback_kwargs)
[Tue Sep 24 14:57:09.362517 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 
465, in wrapper
[Tue Sep 24 14:57:09.362521 2019] [:error] [pid 29304] return 
self.admin_site.admin_view(view)(*args, **kwargs)
[Tue Sep 24 14:57:09.362523 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 99, in 
_wrapped_view
[Tue Sep 24 14:57:09.362549 2019] [:error] [pid 29304] response = 
view_func(request, *args, **kwargs)
[Tue Sep 24 14:57:09.362553 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/views/decorators/cache.py", line 
52, in _wrapped_view_func
[Tue Sep 24 14:57:09.362556 2019] [:error] [pid 29304] response = 
view_func(request, *args, **kwargs)
[Tue Sep 24 14:57:09.362558 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/contrib/admin/sites.py", line 198, 
in inner
[Tue Sep 24 14:57:09.362561 2019] [:error] [pid 29304] return 
view(request, *args, **kwargs)
[Tue Sep 24 14:57:09.362564 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 29, in 
_wrapper
[Tue Sep 24 14:57:09.362567 2019] [:error] [pid 29304] return 
bound_func(*args, **kwargs)
[Tue Sep 24 14:57:09.362569 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 99, in 
_wrapped_view
[Tue Sep 24 14:57:09.362572 2019] [:error] [pid 29304] response = 
view_func(request, *args, **kwargs)
[Tue Sep 24 14:57:09.362575 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/utils/decorators.py", line 25, in 
bound_func
[Tue Sep 24 14:57:09.362578 2019] [:error] [pid 29304] return 
func(self, *args2, **kwargs2)
[Tue Sep 24 14:57:09.362580 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/db/transaction.py", line 371, in 
inner
[Tue Sep 24 14:57:09.362583 2019] [:error] [pid 29304] return 
func(*args, **kwargs)
[Tue Sep 24 14:57:09.362586 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/django/contrib/admin/options.py", line 
1270, in change_view
[Tue Sep 24 14:57:09.362589 2019] [:error] [pid 29304] form = 
ModelForm(instance=obj)
[Tue Sep 24 14:57:09.362591 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", line 445, 
in __init__
[Tue Sep 24 14:57:09.362594 2019] [:error] [pid 29304]
 self._populate_hosting_service_fields()
[Tue Sep 24 14:57:09.362597 2019] [:error] [pid 29304]   File 
"/usr/lib/python2.7/site-packages/reviewboard/scmtools/forms.py", line 598, 
in _populate_hosting_service_fields
[Tue Sep 24 14:57:09.362603 2019] [:error] [pid 29304] if service.plans:
[Tue Sep 24 14:57:09.362701 2019] [:error] [pid 29304] AttributeError: 
'NoneType' object has no attribute 'plans'

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/dec226f1-e3b2-4264-9283-5421114e6058%40googlegroups.com.


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

2019-09-24 Thread Paul Mansfield
if I try and look at the repo settings in our RB server

https://rb/admin/db/scmtools/repository/5/?_changelist_filters=q%3Dpuppet 


then I see this:

Something broke! (Error 500)

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

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/e7f4d35d-6e81-4031-a90b-abefca827782%40googlegroups.com.


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

2019-09-24 Thread Paul Mansfield
Hi,
We do post-commit reviews in feature branches. We are using AWS CodeCommit 
as a git server and have PowerPack licences for it.

I am trying to submit a review from a branch called DEVOPS-74b. I made a 
change, did a git add/commit/push to the branch. I know that the supposedly 
non-existent file is there because if I go to a different workspace and do 
a git clone and checkout the branch, the file exists and my modification is 
in the branch.

The point of branching was commit bd429081243c6fade75b675e74763dc6942578a1, 
so I tell RBT to use that as the initial point for the diff. If I run the 
"git -c" command that rbt prints then I see a perfectly normal git diff, 
nothing unusual, so it looks as if the call to the RB api is breaking.


$ rbt post --debug --branch DEVOPS-74b 
bd429081243c6fade75b675e74763dc6942578a1..DEVOPS-74b"
>>> RBTools 1.0.2
>>> Python 3.6.7 (default, Dec  5 2018, 15:01:38) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-28)]
>>> Running on 
Linux-3.10.0-957.27.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core
>>> Home = /users/paulm
>>> Current directory = /users/paulm/codecommit/DevOps-puppet
>>> Command line: rbt post --debug --branch DEVOPS-74b 
bd429081243c6fade75b675e74763dc6942578a1..DEVOPS-74b
>>> Running: tf vc help
>>> 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.DEVOPS-74b.merge
>>> Running: git config --get branch.DEVOPS-74b.remote
>>> Running: git config --get remote.origin.url
>>> Repository info: Path: 
ssh://git-codecommit.eu-west-1.amazonaws.com/v1/repos/DevOps-puppet, Base 
path: , Supports changesets: False
>>> Making HTTP GET request to https://rb/api/
>>> Running: git rev-parse 
bd429081243c6fade75b675e74763dc6942578a1..DEVOPS-74b
>>> Running: git config --get branch.DEVOPS-74b.merge
>>> Running: git config --get branch.DEVOPS-74b.remote
>>> Running: git branch --remotes
>>> Running: git rev-list bd429081243c6fade75b675e74763dc6942578a1 --not 
--remotes=origin
>>> Running: git version
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
bd429081243c6fade75b675e74763dc6942578a1..d8609c47e90ffed2eb7aba5b2968285d79bf1339
>>> Generated diff size: 2104 bytes
>>> Making HTTP GET request to https://rb/api/validation/diffs/
>>> Cached response for HTTP GET https://rb/api/validation/diffs/ expired 
and was modified
>>> Making HTTP POST request to https://rb/api/validation/diffs/
>>> Got API Error 207 (HTTP code 400): The file was not found in the 
repository.
>>> Error data: {'stat': 'fail', 'err': {'msg': 'The file was not found in 
the repository.', 'code': 207}, 'file': 
'environments/production/modules/aa_workstation/manifests/init.pp', 
'revision': '995404bf2e7bf24149269baa4ab9d3bea31b16d2'}
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 685, 
in make_request
request.url, body, headers, request.method))
  File "/usr/lib/python3.6/site-packages/rbtools/api/cache.py", line 209, 
in make_request
return self.urlopen(request)
  File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 240, 
in http_response
response.info())
  File "/usr/lib64/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 650, in 
http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: BAD REQUEST

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/commands/post.py", line 
867, in main
**validate_kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/decorators.py", line 
27, in request_method
*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 77, in execute_request_method
return self._execute_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 86, in _execute_request
rsp = self.server.make_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 687, 
in make_request
self.process_error(e.code, e.read())
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 661, 
in process_error
rsp['err']['msg'])
rbtools.api.errors.BadRequestError: The file was not found in the 
repository. (HTTP 400, API Error 207)

During handling of the above exception, another exception 

Re: database backup and restore

2019-09-20 Thread Paul Mansfield
Might I suggest a specific section be added to the admin guide explaining 
how to backup and restore a reviewboard installation?
there's no mention of it here
https://www.reviewboard.org/docs/manual/3.0/admin/
if you're restoring a broken system, do you simply install the same version 
you had, and then restore the database?

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/ed34b76d-6be3-4bc0-b286-c32d3e5c3009%40googlegroups.com.


Re: Review Board Ticket #4839: Absolute date support

2019-08-19 Thread Paul Mansfield
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4839/
--

New update by PGuehring
For Beanbag, Inc. > Review Board > Ticket #4839


Reply:

I would prefer to see it the other way round. Show the absolute date and if 
you hover the mouse, it would show the age.

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard-issues/20190819085650.2895.90103%40ip-10-1-54-209.ec2.internal.


Re: Weird authentication issue - username + password not working with RBT

2019-07-23 Thread Paul Mansfield
just a thought, but do your users have complex passwords with interesting 
punctuation? are they using single or double quotes when providing 
usernames/passwords and require complex escaping of punctuation?



>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/fa6ac324-a504-486e-89f1-310db3a7a5b6%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
ok, this fix didn't break anything and I was able to submit a review on the 
feature branch which previously caused the codec error.

thanks

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/f0f6c33d-055d-4389-aad0-9f337f20eb17%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
oh, wait... somehow pip got aliassed to pip3. now I've rerun without that, 
it worked.

apologies for the distraction


On Monday, 22 July 2019 12:21:48 UTC+1, Paul Mansfield wrote:
>
> thanks for that
>
> I think I am doing something wrong
>
> $ sudo pip install 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl ERROR: 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl is not a 
> supported wheel on this platform.
>
>
>
>
>
> and yet,,,
>>
>>
> $ wheel unpack 
> ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl 
> Unpacking to: ./ReviewBoardPowerPack-3.0.3a0.dev20190701141953...OK
>
>
>
> /paul is puzzled.
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/07398a29-315a-455c-aef2-8139f83a0eed%40googlegroups.com.


Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-22 Thread Paul Mansfield
thanks for that

I think I am doing something wrong

$ sudo pip install 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl ERROR: 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl is not a 
supported wheel on this platform.





and yet,,,
>
>
$ wheel unpack 
ReviewBoardPowerPack-3.0.3a0.dev20190701141953-cp27-none-any.whl 
Unpacking to: ./ReviewBoardPowerPack-3.0.3a0.dev20190701141953...OK



/paul is puzzled.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/786e3790-ad80-4941-9436-336bf3894ed7%40googlegroups.com.


Re: Upgrading RB v2.5.6.1 to v3.0.15

2019-07-19 Thread Paul Mansfield
AFAIK, you simply need to upgrade to the highest version of 2.5, and then 
upgrade to 3.x

Do it on a backup copy of your production server

https://www.reviewboard.org/news/2017/11/21/its-here-review-board-3-0-is-here/

https://www.reviewboard.org/docs/releasenotes/reviewboard/3.0/


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/133aba5f-ad81-44bc-819b-63395d1d2a23%40googlegroups.com.


rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-19 Thread Paul Mansfield
We've been using reviewboard for a few months now. The server is 3.0.15 on 
CentOS7, as is the client.

I am using python 3.6.8 from the IUS repository.

This is the first time I've encountered this error, trying to submit a 
post-commit review on a feature branch before it gets merged into master.

I've seen similar codec related reported but none quite the same as this.
 

$ rbt post --debug --bugs-closed DEVOPS-163 --branch DEVOPS-163 
master..DEVOPS-163
>>> RBTools 1.0.2
>>> Python 3.6.8 (default, May  2 2019, 20:40:44) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
>>> Running on 
Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core
>>> Home = /users/paulm
>>> Current directory = /users/paulm/codecommit/ADS-CICD-infrastructure/ci
>>> Command line: rbt post --debug --bugs-closed DEVOPS-163 --branch 
DEVOPS-163 master..DEVOPS-163
>>> Running: tf vc help
>>> 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.DEVOPS-163.merge
>>> Running: git config --get branch.DEVOPS-163.remote
>>> Running: git config --get remote.origin.url
>>> Repository info: Path: ssh://
...@git-codecommit.eu-west-1.amazonaws.com/v1/repos/ 

 , Base path: , 
Supports changesets: False
>>> Making HTTP GET request to https://rb. 
 
/api/ 

>>> Running: git rev-parse master..DEVOPS-163
>>> Running: git config --get branch.DEVOPS-163.merge
>>> Running: git config --get branch.DEVOPS-163.remote
>>> Running: git branch --remotes
>>> Running: git rev-list edce8a7dd4284d40a57ba59ba7fac62c34b22f16 --not 
--remotes=origin
>>> Running: git version
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
edce8a7dd4284d40a57ba59ba7fac62c34b22f16..429fbfbd88d9258f17681407afaa119d4cee7773
>>> Generated diff size: 22187 bytes
>>> Making HTTP GET request to https://rb./api/validation/diffs/ 

>>> Cached response for HTTP GET https://rb. 
 
/api/validation/diffs/ 
 expired and was 
modified
>>> Making HTTP POST request to https://rb. 
 
/api/validation/diffs/ 

>>> Got API Error 224 (HTTP code 400): Unexpected error when validating the 
diff: 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in 
range(128)
>>> Error data: {'stat': 'fail', 'err': {'msg': "Unexpected error when 
validating the diff: 'ascii' codec can't decode byte 0xc2 in position 1333: 
ordinal not in range(128)", 'code': 224}}
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 685, 
in make_request
request.url, body, headers, request.method))
  File "/usr/lib/python3.6/site-packages/rbtools/api/cache.py", line 209, 
in make_request
return self.urlopen(request)
  File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 240, 
in http_response
response.info())
  File "/usr/lib64/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 650, in 
http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: BAD REQUEST

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/commands/post.py", line 
867, in main
**validate_kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/decorators.py", line 
27, in request_method
*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 77, in execute_request_method
return self._execute_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 86, in _execute_request
rsp = self.server.make_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 687, 
in make_request

Re: rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-17 Thread Paul Mansfield

>
>
>
I discovered it's possible to change the encoding on a repository, when 
logged in as admin, so I tried "utf-8" and "ascii" and it didn't make a 
difference.  

-- 
You received this message because you are subscribed to the Google Groups 
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard-issues+unsubscr...@googlegroups.com.
To post to this group, send email to reviewboard-issues@googlegroups.com.
Visit this group at https://groups.google.com/group/reviewboard-issues.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard-issues/538ace19-43f5-45df-86e3-b0de6fcefe38%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


rbtools.commands.CommandError: Error validating diff 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in range(128) (HTTP 400, API Error 224)

2019-07-17 Thread Paul Mansfield
We've been using reviewboard for a few months now. The server is 3.0.15 on 
CentOS7, as is the client.

I am using python 3.6.8 from the IUS repository.

This is the first time I've encountered this error, trying to submit a 
post-commit review on a feature branch before it gets merged into master.

I've seen similar codec related reported but none quite the same as this.

 

$ rbt post --debug --bugs-closed DEVOPS-163 --branch DEVOPS-163 
master..DEVOPS-163
>>> RBTools 1.0.2
>>> Python 3.6.8 (default, May  2 2019, 20:40:44) 
[GCC 4.8.5 20150623 (Red Hat 4.8.5-36)]
>>> Running on 
Linux-3.10.0-957.21.2.el7.x86_64-x86_64-with-centos-7.6.1810-Core
>>> Home = /users/paulm
>>> Current directory = /users/paulm/codecommit/ADS-CICD-infrastructure/ci
>>> Command line: rbt post --debug --bugs-closed DEVOPS-163 --branch 
DEVOPS-163 master..DEVOPS-163
>>> Running: tf vc help
>>> 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.DEVOPS-163.merge
>>> Running: git config --get branch.DEVOPS-163.remote
>>> Running: git config --get remote.origin.url
>>> Repository info: Path: 
ssh://apkajzlsxcrn2rybi...@git-codecommit.eu-west-1.amazonaws.com/v1/repos/ADS-CICD-infrastructure,
 
Base path: , Supports changesets: False
>>> Making HTTP GET request to https://rb.aws.agileanalog.com/api/
>>> Running: git rev-parse master..DEVOPS-163
>>> Running: git config --get branch.DEVOPS-163.merge
>>> Running: git config --get branch.DEVOPS-163.remote
>>> Running: git branch --remotes
>>> Running: git rev-list edce8a7dd4284d40a57ba59ba7fac62c34b22f16 --not 
--remotes=origin
>>> Running: git version
>>> Running: git -c core.quotepath=false -c diff.noprefix=false diff 
--no-color --full-index --ignore-submodules -M --no-ext-diff 
edce8a7dd4284d40a57ba59ba7fac62c34b22f16..429fbfbd88d9258f17681407afaa119d4cee7773
>>> Generated diff size: 22187 bytes
>>> Making HTTP GET request to 
https://rb.aws.agileanalog.com/api/validation/diffs/
>>> Cached response for HTTP GET 
https://rb.aws.agileanalog.com/api/validation/diffs/ expired and was 
modified
>>> Making HTTP POST request to 
https://rb.aws.agileanalog.com/api/validation/diffs/
>>> Got API Error 224 (HTTP code 400): Unexpected error when validating the 
diff: 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in 
range(128)
>>> Error data: {'stat': 'fail', 'err': {'msg': "Unexpected error when 
validating the diff: 'ascii' codec can't decode byte 0xc2 in position 1333: 
ordinal not in range(128)", 'code': 224}}
Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 685, 
in make_request
request.url, body, headers, request.method))
  File "/usr/lib/python3.6/site-packages/rbtools/api/cache.py", line 209, 
in make_request
return self.urlopen(request)
  File "/usr/lib64/python3.6/urllib/request.py", line 223, in urlopen
return opener.open(url, data, timeout)
  File "/usr/lib64/python3.6/urllib/request.py", line 532, in open
response = meth(req, response)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 240, 
in http_response
response.info())
  File "/usr/lib64/python3.6/urllib/request.py", line 570, in error
return self._call_chain(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 504, in _call_chain
result = func(*args)
  File "/usr/lib64/python3.6/urllib/request.py", line 650, in 
http_error_default
raise HTTPError(req.full_url, code, msg, hdrs, fp)
urllib.error.HTTPError: HTTP Error 400: BAD REQUEST

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.6/site-packages/rbtools/commands/post.py", line 
867, in main
**validate_kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/decorators.py", line 
27, in request_method
*args, **kwargs)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 77, in execute_request_method
return self._execute_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/transport/sync.py", 
line 86, in _execute_request
rsp = self.server.make_request(request)
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 687, 
in make_request
self.process_error(e.code, e.read())
  File "/usr/lib/python3.6/site-packages/rbtools/api/request.py", line 661, 
in process_error
rsp['err']['msg'])
rbtools.api.errors.BadRequestError: Unexpected error when validating the 
diff: 'ascii' codec can't decode byte 0xc2 in position 1333: ordinal not in 
range(128) (HTTP 400, API Error 224)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/bin/rbt", line 10, in 
sys.exit(main())
  File "/usr/lib/python3.6/site-packages/rbtools/commands/main.py", line 
120, in main

Re: Page rendering and default route

2019-06-26 Thread Paul Mansfield
check you have the following mappings in your apache config for reviewboard

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



-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/8e49c36c-f71f-4716-8524-28db3d6558d4%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reviewboard upgrade from v2.5.6.1 to v3.0.14

2019-06-26 Thread Paul Mansfield
Provided your NFS storage is reliable and highly responsive, I don't see 
why you shouldn't put the service and the backing database onto an NFS 
store.

Still, personally, I'd put it onto the fastest storage which is usually 
local virtual disk, and then ensure that I had good replication of the 
database set up along with regular db dumps and file backups.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/cc255d95-48a9-4a4f-92ab-d6ed547cb577%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: https://demo.reviewboard.org/ has broken ssl certificate

2019-06-26 Thread Paul Mansfield
yes, that worked. the UI in Chrome for controlling HSTS is quite primitive, 
but did allow me to enter each domain in turn and delete from the cache.

On Friday, 14 June 2019 11:17:55 UTC+1, Christian Hammond wrote:
>
> Unfortunately, you might have to clear 
> reviewboard.org/demo.reviewboard.org from your HSTS cache in 
> chrome://net-internals/#hsts. Clearing mine solved the redirect locally. 
> It's too bad that Chrome caches it even though the end result is invalid... 
> Though I get why.
>
>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/e5d145d0-26aa-4aa2-abbd-fb11ba9a15f7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reviewboard and Gitlab

2019-06-26 Thread Paul Mansfield
I'd use the gitlab API to get a list of repositories

https://docs.gitlab.com/ee/api/repositories.html

and get a list of repositories in RB and compare and create as required
https://www.reviewboard.org/docs/manual/3.0/webapi/2.0/resources/repository-list/

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/7721373d-5128-45b1-be18-e39799b1ad6c%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Reviewboard: You don't have permission to access / on this server.

2019-06-26 Thread Paul Mansfield
Ensure the wsgi module is installed and loaded into your web server. In 
apache on centos, I have the following installed:

mod_wsgi-3.4-18.el7.x86_64
uwsgi-plugin-common-2.0.17.1-2.el7.x86_64
uwsgi-2.0.17.1-2.el7.x86_64
uwsgi-plugin-python2-2.0.17.1-2.el7.x86_64
mod_proxy_uwsgi-2.0.17.1-2.el7.x86_64



You need the following in your /etc/httpd/conf.d/rb.conf file - the wsgi 
things are the most important:

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


Alias /media "/var/www/reviewboard/htdocs/media"
Alias /static "/var/www/reviewboard/htdocs/static"
Alias /errordocs "/var/www/reviewboard/htdocs/errordocs"
Alias /favicon.ico 
"/var/www/reviewboard/htdocs/static/rb/images/favicon.png"


DocumentRoot "/var/www/reviewboard/htdocs"

AllowOverride All
Options -Indexes +FollowSymLinks
Allow from all


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/0bf4bdd0-c25f-4950-b312-3581a0ab843f%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: Extend trial license

2019-06-18 Thread Paul Mansfield
Just generate and install another evaluation powerpack licence. That worked 
for me.

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/7b8448fa-9e59-4e4b-bdf5-6c22d440017a%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: https://demo.reviewboard.org/ has broken ssl certificate

2019-06-14 Thread Paul Mansfield
starting at https://www.reviewboard.org/
I click demo down in the bottom nav bar. that link is 
for http://demo.reviewboard.org/ but it still gets redirected/bounced via 
www.reviewboard.com to the https demo.reviewboard.com

I don't think Firefox honours HSTS?

>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/0d9aeebf-2fa4-4175-8bbb-5db36483f816%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


Re: programmatically add new repositories?

2019-06-14 Thread Paul Mansfield
Hi,
thanks for coming back to me.
if you have sample code for getting a list of repositories and creating 
them, that would be most excellent. I have python scripts which scan our 
AWS/CC repositories and when new ones appear, add them to our Concourse CI 
system, or Sphinx autodoc etc, so being able to plug into reviewboard would 
be ideal.

we're in the process of working out exactly what we need for our PPack 
licence, hopefully I should have authorisation to buy it soon.

thanks
Paul

>

-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/df597c8c-bd49-4217-9872-e085c57861d8%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


https://demo.reviewboard.org/ has broken ssl certificate

2019-06-13 Thread Paul Mansfield

If you're going to enforce HSTS you need to keep the cert up to date 
because it entirely breaks access to the site when it expires

Your connection is not private

Attackers might be trying to steal your information from 
*demo.reviewboard.org* (for example, passwords, messages or credit cards). 
Learn 
more 
NET::ERR_CERT_COMMON_NAME_INVALID
Help improve Safe Browsing by sending some system information and page 
content  to Google. Privacy Policy 

ReloadHide advanced

demo.reviewboard.org normally uses encryption to protect your information. 
When Google Chrome tried to connect to demo.reviewboard.org this time, the 
website sent back unusual and incorrect credentials. This may happen when 
an attacker is trying to pretend to be demo.reviewboard.org, or a Wi-Fi 
sign-in screen has interrupted the connection. Your information is still 
secure because Google Chrome stopped the connection before any data was 
exchanged.

You cannot visit demo.reviewboard.org right now because the website uses 
HSTS. Network errors and attacks are usually temporary, so this page will 
probably work later.


-- 
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 
"Review Board Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to reviewboard+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/reviewboard/0598b2c0-3a79-4381-8161-0492362dc0f2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.


RB 3.0.14 isn't on EPEL, only 2.5.x.

2019-03-27 Thread Paul Mansfield
Sorry if this has been covered before. 

The "get review board" page
https://www.reviewboard.org/get/instructions/?org-type=business=rb=linux-rpm=free

says it's on EPEL, but all I can find after looking at four or more mirrors 
is 2.5.x, dating back to Feb 2018.

I'm running CentOS 7, and although I could install from the tar ball from
   https://downloads.reviewboard.org/releases/ReviewBoard/3.0/index.html
I'd rather used a package.


thanks for any hints,
Paul

-- 
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 
"Review Board Community" 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 3.0.14 is out

2019-03-26 Thread Paul Mansfield
Hi,
the installation instructions for the free version
https://www.reviewboard.org/get/instructions/?org-type=business=rb=linux-rpm=free

says "Review Board 3.0.14 can be installed using yum from the EPEL 
repository"

however, all I can see in EPEL is 2.5.17. I have tried four different EPEL 
mirrors. 

please can someone fix the uploads to EPEL? 

thanks,
Paul

-- 
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 
"Review Board Community" 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.