Review Board Ticket #5016: perforce rbt post fails with 500 internal error

24 views
Skip to first unread message

Shubha Ramani

unread,
Dec 12, 2023, 9:26:06 PM12/12/23
to Shubha Ramani, reviewboa...@googlegroups.com
To reply, visit https://hellosplat.com/s/beanbag/tickets/5016/

New ticket #5016 by shubhar

For Beanbag, Inc. Review Board

perforce rbt post fails with 500 internal error

What version are you running?

rbtools-4.1 ReviewBoard 6.0.1

What's the URL of the page containing the problem?

What steps will reproduce the problem?

  1. rbt post -g --target-people <userid> --summary "hi this is a summary" --description "hi this is a description" --debug

What is the expected output? What do you see instead?

I would expect rbt to succeed with diff URL

What operating system are you using? What browser?

Chrome, RHEL 8.x

Please provide any additional information below.

Got HTTP error: 500: <!DOCTYPE html>

<html> <head> <title>500 - Internal Server Error | Review Board</title> </head> <body> <h1>Something broke! (Error 500)</h1> <p> 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. </p> </body> </title>

Traceback (most recent call last): File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py", line 1222, in process_error rsp = json_loads(data_str) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/init.py", line 346, in loads return _default_decoder.decode(s) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/decoder.py", line 337, in decode obj, end = self.raw_decode(s, idx=_w(s, 0).end()) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/json/decoder.py", line 355, in raw_decode raise JSONDecodeError("Expecting value", s, err.value) from None json.decoder.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

During handling of the above exception, another exception occurred:

During handling of the above exception, another exception occurred:

Traceback (most recent call last): File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py", line 756, in post_request draft = draft.update(update_fields) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/resource.py", line 319, in <lambda> meth(resource, kwargs))) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/decorators.py", line 23, in request_method return self._transport.execute_request_method(method_wrapper, File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/transport/sync.py", line 289, in execute_request_method return self._execute_request(request) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/transport/sync.py", line 310, in _execute_request rsp = self.server.make_request(request) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py", line 1267, in make_request self.process_error(e.code, e.read()) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/api/request.py", line 1234, in process_error raise APIError(http_status, None, None, data_str) rbtools.api.errors.APIError: <!DOCTYPE html>

<html> <head> <title>500 - Internal Server Error | Review Board</title> </head> <body> <h1>Something broke! (Error 500)</h1> <p> 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. </p> </body> </title> (HTTP 500: Internal Server Error)

During handling of the above exception, another exception occurred: Traceback (most recent call last): File "/proj/pt_verif_dev4/users/shramani/pt_trunk/env_squash/default/squash_full/7AA3CBADF04B4FEE46E0C01EC37EFFFC-rhel7/PATH-2/rbt", line 8, in <module> sys.exit(main()) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/main.py", line 207, in main command.run_from_argv([RB_MAIN, command_name] + args) File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/init.py", line 1118, in run_from_argv exit_code = self.main(*args) or 0 File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py", line 968, in main review_request_id, review_request_url = self.post_request( File "/tool/pandora64/.package/python-3.10.1/lib/python3.10/site-packages/rbtools/commands/post.py", line 758, in post_request raise CommandError( rbtools.commands.CommandError: Error updating review request draft: <!DOCTYPE html>

<html> <head> <title>500 - Internal Server Error | Review Board</title> </head> <body> <h1>Something broke! (Error 500)</h1> <p> 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. </p> </body> </title> (HTTP 500: Internal Server Error)

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

New Priority:Medium Type:Defect

Christian Hammond

unread,
Dec 12, 2023, 9:39:28 PM12/12/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by chipx86

For Beanbag, Inc. Review Board Ticket #5016

Thanks for the report! There should be a server-side error somewhere as well, perhaps e-mailed to the administrator, or found in the reviewboard.log file. Would you be able to locate the backtrace there and attach it?

Shubha Ramani

unread,
Dec 12, 2023, 9:46:52 PM12/12/23
to Shubha Ramani, reviewboa...@googlegroups.com

New update by shubhar

look at the end of the log and you will see the related problem

Files:
+

reviewboard.log

Shubha Ramani

unread,
Dec 12, 2023, 9:47:18 PM12/12/23
to reviewboard-issues
Christian I have attached the reviewboard.log file

Christian Hammond

unread,
Dec 13, 2023, 12:01:28 AM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by chipx86

For Beanbag, Inc. Review Board Ticket #5016

Hmm, interesting. Looks like an issue in a third-party module we use. We'll look into what's going on there. Thank you for the log!

Can you check the result of /webapp/reviewboard/site_prob-6.0.1/venv/bin/pip show publicsuffix (path based on what's in the logs -- feel free to adjust if needed) and show me what that says?

Shubha Ramani

unread,
Dec 13, 2023, 9:21:27 AM12/13/23
to Christian Hammond, reviewboa...@googlegroups.com
happy to provide the info:
atlvptwebapp01:/webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/bin[ 66 ] --> ./pip show publicsuffix
Name: publicsuffix
Version: 1.1.1
Summary: Get a public suffix for a domain name using the Public Suffix List.
Home-page:
Author: Tomaz Solc
Author-email: tomaz...@tablix.org
License: MIT
Location: /webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/lib/python3.11/site-packages
Requires:
Required-by: Djblets
atlvptwebapp01:/webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/bin[ 67 ] --> ./pip3 show publicsuffix
Name: publicsuffix
Version: 1.1.1
Summary: Get a public suffix for a domain name using the Public Suffix List.
Home-page:
Author: Tomaz Solc
Author-email: tomaz...@tablix.org
License: MIT
Location: /webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/lib/python3.11/site-packages
Requires:
Required-by: Djblets
atlvptwebapp01:/webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/bin[ 68 ] --> 

Shubha Ramani

unread,
Jan 18, 2024, 1:22:10 PM1/18/24
to reviewboard-issues
Just wanted to circle back. I had ZERO problems with version 5.0.6. It works. So I fell back to 5.0.6 FYI
Reply all
Reply to author
Forward
0 new messages