Re: Installing on CentOS8 or RHEL8

2022-01-06 Thread David Trowbridge
Josh,

The RPM hasn't been maintained in a very long time. Installing via the
python toolchain is the best way to get running and stay up to date.

David

On Thu, Jan 6, 2022 at 11:25 AM Josh Davis  wrote:

> We have upgraded all of our servers to RHEL8 and I am trying to get
> ReviewBoard installed. In the past (RHEL7) we installed ReviewBoard from an
> rpm package.  I can't find one that works with RHEL8. Is there one I have
> missed?
>
> --
> 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/c8f30c92-6789-41fd-8ab3-f494a1ce8101n%40googlegroups.com
> 
> .
>

-- 
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/CAFS3VNVWAJ%2B-Dc-9xUg%2BSP0bDhp8qEqmpzBafcrFGqrzZHF65g%40mail.gmail.com.


Installing on CentOS8 or RHEL8

2022-01-06 Thread Josh Davis
 We have upgraded all of our servers to RHEL8 and I am trying to get 
ReviewBoard installed. In the past (RHEL7) we installed ReviewBoard from an 
rpm package.  I can't find one that works with RHEL8. Is there one I have 
missed?

-- 
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/c8f30c92-6789-41fd-8ab3-f494a1ce8101n%40googlegroups.com.


Error 500 if DEBUG option in settings_local.py is set to False (RB 4.0 with docker-compose)

2022-01-06 Thread Line Stettler
Hi 

I set up Reviewboard 4 with docker using nginx (alpine), memcached (alpine) 
mysql (8) and reviewboard (4.0) docker container. 

As long as DEBUG option in the *settings_local.py* config file is set to 
True, everything works fine. But if I set the DEBUG option to False, I get 
"Something broke! (Error 500) [ it appears something broke when you tried 
to go to here. These is either a bug in Review Board or a server 
configuration error. Please report this to your administrator] 

The log of the reviewboard container looks fine. 
But in the log of the Nginx Container I found the following error logs:

[*1 connect() failed (111: Connection reused) while connecting to 
upstream], client: 192.168.20.20, server: my. reviewboard.domain, request 
"GET /dashboard/  HTTP/1.1" upstream: 
"http://192.168.20.25:8080/dashboard/;, host: "my.reviewboard.domain"]

and 

[*3 connect() failed (111 Connection refused) while connecting to upstream, 
client: 192.168.20.20, server: my. reviewboard.domain, request "GET 
/favicon.ico HTTP/1.1" upstream: "http://192.168.20.25:8080/favicon.ico/;, 
host: "my.reviewboard.domain" referrer: 
"https://my.reviewboard.domain/dashboard/;]

Is there a fix or a work around to disable DEBUG output in reviewboard?

Could you help to figure out this problem?

Thanks!

---
Best regards,
Line

-- 
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/ad61e471-36f1-4dc8-8986-ee2c727be778n%40googlegroups.com.


RBTools Ticket #4954: rbtools 2.0 does not read .reviewboardrc with encoding UTF8-BOM

2022-01-06 Thread Mark Falconer
--
To reply, visit https://hellosplat.com/s/beanbag/tickets/4954/
--

New ticket #4954 by mark.falconer
For Beanbag, Inc. > RBTools

Status: New
Tags: Priority:Medium, Type:Defect


--
rbtools 2.0 does not read .reviewboardrc with encoding UTF8-BOM
==

# What version are you running?
RBTools 2.0.1 (Python 3.8.10)

# What steps will reproduce the problem?
1. On Windows, add a .reviewboardrc to a repository using notepad.
2. run rbt post to post a diff


# What is the expected output? What do you see instead?
Expected: The diff is posted
Actual: The diff fails

# What operating system are you using?
Win10

# Attach the debug out from the command.

```
$ rbt post --debug

Traceback (most recent call last):
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\utils\filesystem.py",
 line 220, in parse_config_file
config = _load_python_file(filename, config)
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\utils\filesystem.py",
 line 52, in _load_python_file
exec(compile(f.read(), filename, 'exec'), config)
  File "D:\Workspace\DataNG Documents.reviewboardrc", line 1
REVIEWBOARD_URL = 'http://dev-revbrd01.hrh.local/'
 ^
SyntaxError: invalid character in identifier

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "C:\Program Files\RBTools\bin..\Python\Scripts\rbt-script.py", line 33, 
in 
sys.exit(load_entry_point('RBTools==2.0.1', 'console_scripts', 'rbt')())
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\commands\main.py",
 line 124, in main
command.run_from_argv([RB_MAIN, command_name] + args)
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\commands__init__.py",
 line 744, in run_from_argv
parser = self.create_arg_parser(argv)
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\commands__init__.py",
 line 731, in create_arg_parser
self.config = load_config()
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\utils\filesystem.py",
 line 250, in load_config
parsed_config = parse_config_file(filename)
  File "C:\Program 
Files\RBTools\Python\lib\site-packages\rbtools-2.0.1-py3.8.egg\rbtools\utils\filesystem.py",
 line 222, in parse_config_file
raise Exception('Syntax error in config file: %s\n'
Exception: Syntax error in config file: D:\Workspace\DataNG 
Documents.reviewboardrc
Line 1 offset 18
```


# Please provide any additional information below.
Notepad creates files with encoding UTF8-BOM. Changing the encoding to remove 
the BOM works. Creating the file using rbt works. 

I am raising this for 2 reasons:

1. The documentation states that .reviewboardrc should be a valid python file. 
Running ` "C:\Program Files\RBTools\Python\python" .reviewboardrc` completes 
successfully (i.e. does nothing, but no errors), indicating that it is.
   
2. RBTools versions before 2.0 worked successfully.

I think the config file should be read with encoding `utf-8-sig`
https://www.howtosolutions.net/2019/04/python-fixing-unexpected-utf-8-bom-error-when-loading-json-data/

--

-- 
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/20220106084624.4918.43381%40ip-10-1-54-209.ec2.internal.