Review board stopped working after OS upgrade

63 vistas
Ir al primer mensaje no leído

noreply optimize

no leída,
9 nov 2023, 10:51:11 a.m.9/11/2023
para Review Board Community
Hi All,

I have a Ubuntu 18 LTS machine running review board version 2.0.27 without any issues. Since, Ubuntu 18 has become EOL I upgraded the machine to Ubuntu 20.04.6 LTS. As a result, all packages on machines including python, php, mysql and other tools along with dependencies either have been upgraded or EOL packages have been removed. Now, I am getting error "Review Board is taking a nap". I am not familiar with Ubuntu OS and review board. I would appreciate any help offered to solve it.

Thank you.

Error:
[Fri Nov 10 00:44:46.201174 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540] mod_wsgi (pid=257169): Failed to exec Python script file '/var/www/reviewboard/htdocs/reviewboard.wsgi'., referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201229 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540] mod_wsgi (pid=257169): Exception occurred processing WSGI script '/var/www/reviewboard/htdocs/reviewboard.wsgi'., referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201253 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540] Traceback (most recent call last):, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201282 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/var/www/reviewboard/htdocs/reviewboard.wsgi", line 3, in <module>, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201340 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     import pkg_resources, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201355 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3095, in <module>, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201940 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     @_call_aside, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201957 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3079, in _call_aside, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201978 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     f(*args, **kwargs), referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.201989 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 3108, in _initialize_master_working_set, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202005 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     working_set = WorkingSet._build_master(), referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202016 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 570, in _build_master, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202031 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     ws.require(__requires__), referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202041 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 888, in require, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202057 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     needed = self.resolve(parse_requirements(requirements)), referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202067 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]   File "/usr/local/lib/python2.7/dist-packages/pkg_resources/__init__.py", line 774, in resolve, referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202096 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540]     raise DistributionNotFound(req, requirers), referer: http://blr-pmx-dev3/reviewboard/dashboard
[Fri Nov 10 00:44:46.202162 2023] [wsgi:error] [pid 257169] [client 10.208.62.51:42540] DistributionNotFound: The 'six' distribution was not found and is required by paramiko, referer: http://blr-pmx-dev3/reviewboard/dashboard

David Trowbridge

no leída,
9 nov 2023, 10:51:53 a.m.9/11/2023
para revie...@googlegroups.com
What version of Review Board are you running?

David

--
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...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/f38b0de1-8f2b-47c5-a3af-d566260726ccn%40googlegroups.com.

noreply optimize

no leída,
9 nov 2023, 4:05:43 p.m.9/11/2023
para Review Board Community
Hi David,

Before OS upgrade it was  2.0.27. After upgrading OS, I am unable to browse to review board site where version can be seen. Is there any command to check currently installed version ? If it's not upgraded, it should be  2.0.27.

David Trowbridge

no leída,
9 nov 2023, 4:25:13 p.m.9/11/2023
para revie...@googlegroups.com
If installed via pip, you should be able to use "pip list" to see what version you have.

From the errors, it seems like the "paramiko" library was upgraded to a version that depends on "six", but "six" is not installed. I'd suggest looking through the paramiko release notes and installing whatever version was before that dependency was added.

2.0.27 is very old at this point. Obviously your priority is getting things back up and running, but I'd suggest upgrading to a modern version when you can.

David

noreply optimize

no leída,
10 nov 2023, 5:44:10 a.m.10/11/2023
para Review Board Community
I ran the command pip list and found below differences.

Ubuntu 18 (working VM) Ubuntu 20 (non-working VM)

ReviewBoard         2.0.27         ReviewBoard         2.0.27        
setuptools          39.2.0         setuptools          39.2.0
six                 1.11.0                 six                 missing
RBTools             0.7.11                 RBTools             0.7.11
paramiko            2.10.2             paramiko            2.10.2

six has been missing. How to install it ?

noreply optimize

no leída,
13 nov 2023, 6:04:39 a.m.13/11/2023
para Review Board Community
Hi David,

Could you please help me to fix above error ? I tried to install six / upgrade paramiko using pip, but no luck.

noreply optimize

no leída,
14 nov 2023, 12:17:21 p.m.14/11/2023
para Review Board Community
Hi All,

Can anyone help me to fix above errors and make review board working ?

David Trowbridge

no leída,
15 nov 2023, 12:04:19 a.m.15/11/2023
para revie...@googlegroups.com
You should be able to just use "pip install six". I don't know exactly how Ubuntu 18 is set up, so if that's not working one thing to check is that "pip" corresponds to python 2.7. There may be a specific pip2.7 command that you need to use.

David

noreply optimize

no leída,
16 nov 2023, 11:32:06 a.m.16/11/2023
para Review Board Community
Hi David,

I tried to install six, but its not working and I am getting below error. Any suggestions what should I do at this point ?
I already checked and found that there was no special command used to install six.

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 pip 21.0 will remove support for this functionality.
WARNING: Retrying (Retry(total=4, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/six/
WARNING: Retrying (Retry(total=3, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/six/
WARNING: Retrying (Retry(total=2, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/six/
WARNING: Retrying (Retry(total=1, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/six/
WARNING: Retrying (Retry(total=0, connect=None, read=None, redirect=None, status=None)) after connection broken by 'ProtocolError('Connection aborted.', error(104, 'Connection reset by peer'))': /simple/six/
ERROR: Could not find a version that satisfies the requirement six (from versions: none)
ERROR: No matching distribution found for six

noreply optimize

no leída,
16 nov 2023, 11:38:42 a.m.16/11/2023
para Review Board Community
Also, pip is using python 2.7 only. I just ran one command and got below output.

python -m pip --version
pip 20.3.4 from /usr/local/lib/python2.7/dist-packages/pip (python 2.7)

David Trowbridge

no leída,
17 nov 2023, 4:49:28 p.m.17/11/2023
para revie...@googlegroups.com
Does this system not have internet access?

David

Christian Hammond

no leída,
18 nov 2023, 11:46:23 p.m.18/11/2023
para revie...@googlegroups.com
As David mentioned, it looks like there’s some Internet-facing problem. If you use an HTTP(S) proxy, you’ll need to set the correct environment variables for it.

A problem you’re facing is that Review Board 2.0 is very old, no longer supported by us outside of a Premium Support contract, and isn’t necessarily going to work on modern Linux systems out of the box. The main issue is that Ubuntu manages system packages that may not be compatible with Review Board, and installing alternate versions can break Ubuntu services.

Modern versions of Review Board avoid this problem by helping you install in a “Python virtual environment”, which is isolated from the system, and avoids problems just like this.

If you need to stay on 2.0, you’ll need to diagnose why pip can’t reach the Internet, and see if you need to enable a proxy or something. We won’t be able to diagnose that very well here, so it’ll take some investigation internally.

We can talk to you about an annual support contract and then arrange meetings to get you back up and running, if you’d like to discuss that.

Once you’re back up and running, I strongly suggest testing an upgrade to a modern version, using either Docker or a manual install into a Python Virtual Environment by following our installation guide: 

Christian

--
Christian Hammond
President/CEO of Beanbag
Makers of Review Board


Responder a todos
Responder al autor
Reenviar
0 mensajes nuevos