Re: Djblets Ticket #5016: perforce rbt post fails with 500 internal error

26 views
Skip to first unread message

Christian Hammond

unread,
Dec 13, 2023, 4:00:12 AM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com
To reply, visit https://hellosplat.com/s/beanbag/tickets/5016/

New update by chipx86

For Beanbag, Inc. Djblets Ticket #5016

We have a fix pending for this, switching to a modern, maintained alternative to publicsuffix. We'll ship this in Djblets 4.1 soon. If you have a support contract with us, we can get you tailored builds, or you can try backporting the patch internally and seeing if it resolves your problem.

https://reviews.reviewboard.org/r/13454/

Status:
- New
+ PendingReview
Project:
- reviewboard
+ djblets
Tags:
+ Component:EMail
Assigned to:
+ chipx86

Shubha Ramani

unread,
Dec 13, 2023, 9:21:00 AM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by shubhar

Sure, here you go: 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,
Dec 13, 2023, 9:23:36 AM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by shubhar

For Beanbag, Inc. Djblets Ticket #5016

" We'll ship this in Djblets 4.1 soon. If you have a support contract with us, we can get you tailored builds, or you can try backporting the patch internally and seeing if it resolves your problem."

1) How soon ? Like in 2 weeks ? A month ? 2) Sure. I can try backporting the patch internally. How can I get this patch ?

Thanks kindly

Shubha

Shubha Ramani

unread,
Dec 13, 2023, 5:50:42 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com
Hi Christian, do you have an estimate when this will be fixed ? I am wondering whether to wait for the fix or revert to an older stable version of ReviewBoard (5.08 ?).

Thanks

Shubha

Christian Hammond

unread,
Dec 13, 2023, 6:18:51 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by chipx86

  1. We're still trying to figure that out. There's a few things we're coordinating for a release right now, and we have to wait until things are in place.

The thing about this failure is that, provided you're using the same version of Python between your old RB5 install and RB6, you honestly should have had the same problem. This was an issue in the third-party module, and the same version would have been used in both.

I haven't been able to reproduce this yet, but I'll have a couple more follow-up questions on that in a minute.

  1. You can use the version of pip you used above and install the publicsuffixlist package, and then apply this patch to your <venv_path>/lib/python3.11/site-packages/djblets/:

https://reviews.reviewboard.org/r/13454/diff/raw/

That should get you the patch file. You'd want to back up your djblets directory before proceeding. If all goes well, you can restart your web server and try to reproduce the problem.

So those questions:

  1. Is your /webapp path and everything in it local to the file system, or mounted over something like NFS?
  2. Was Review Board 5 installed and managed on Python 3.11, or was it using an older version?
  3. Can you think of any differences in the deployment between your RB5 and RB6 that might be useful for me to know?

Thanks!

Christian Hammond

unread,
Dec 13, 2023, 6:28:26 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by chipx86

For Beanbag, Inc. Djblets Ticket #5016

Oh, and part of that patch (the part to setup.py) won't be able to apply to an installed copy. It's meant for the source tree. If it complains, you can skip that file.

Shubha Ramani

unread,
Dec 13, 2023, 6:30:36 PM12/13/23
to Christian Hammond, reviewboa...@googlegroups.com

  1. Is your /webapp path and everything in it local to the file system, or mounted over something like NFS? It is an external disk mounted to a virtual server. For instance it's not in /home/<userid>. /webapp is a mounted disk
  2. Was Review Board 5 installed and managed on Python 3.11, or was it using an older version? This is a brand new fresh install, no ReviewBoard was ever installed before on this virtual server. Our mysql server is mysql 8.x . The installation process used virtualenv and the instructions followed were https://www.reviewboard.org/docs/manual/latest/admin/installation/linux though our location was /webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv 
  3. Can you think of any differences in the deployment between your RB5 and RB6 that might be useful for me to know? This is a brand new installation.

Christian Hammond

unread,
Dec 13, 2023, 6:34:57 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by chipx86

For Beanbag, Inc. Djblets Ticket #5016

How was your Python installed? What built that environment? I'm looking at the details and flow behind the error and the default encoding for streams isn't what I'd expect.

Can you run this on the server:

$ /webapp/PYTHON_VENVS/ReviewBoard-6.0.1-venv/bin/python
import locale
print(locale.getencoding())

Shubha Ramani

unread,
Dec 13, 2023, 6:38:00 PM12/13/23
to Christian Hammond, reviewboa...@googlegroups.com
our python3.11 is installed by IT in a special tools area.

image.png

Shubha Ramani

unread,
Dec 13, 2023, 6:40:29 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com

New update by shubhar

Python 3.11.1 (main, Jan 4 2023, 14:43:23) [GCC 9.1.0] on linux Type "help", "copyright", "credits" or "license" for more information.

import locale print(locale.getencoding()) UTF-8

Shubha Ramani

unread,
Dec 13, 2023, 7:26:27 PM12/13/23
to Christian Hammond, Shubha Ramani, reviewboa...@googlegroups.com
when will Djblets 4.1 be released? 

thanks 

shubha 
Reply all
Reply to author
Forward
0 new messages