I switched the python symbolic link to python3, and found the logs in /var/log/httpd, and it seems it tries to use python2.7: [Mon Jun 27 16:57:10.508059 2022] [:error] [pid 1856] [client 10.103.108.170:60804] mod_wsgi (pid=1856): Target WSGI script '/var/www/XXXXXX/htdocs/reviewboard.wsgi' cannot be loaded as Python module., referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508117 2022] [:error] [pid 1856] [client 10.103.108.170:60804] mod_wsgi (pid=1856): Exception occurred processing WSGI script '/var/www/ XXXXXX/htdocs/reviewboard.wsgi'., referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508188 2022] [:error] [pid 1856] [client 10.103.108.170:60804] Traceback (most recent call last):, referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508224 2022] [:error] [pid 1856] [client 10.103.108.170:60804] File "/var/www/ XXXXXX/htdocs/reviewboard.wsgi", line 3, in <module>, referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508304 2022] [:error] [pid 1856] [client 10.103.108.170:60804] import pkg_resources, referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508318 2022] [:error] [pid 1856] [client 10.103.108.170:60804] File "/usr/lib/python2.7/site-packages/pkg_resources/__init__.py", line 72, in <module>, referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508351 2022] [:error] [pid 1856] [client 10.103.108.170:60804] from . import py31compat, referer: https://10.103.100.250/ [Mon Jun 27 16:57:10.508382 2022] [:error] [pid 1856] [client 10.103.108.170:60804] ImportError: cannot import name py31compat, referer: https://10.103.100.250/
Dátum: pondelok 27. júna 2022, čas: 15:38:50 UTC+2, odosielateľ: Martin Marusinec > Hello, > > what is the correct method to upgrade from 3.0.20 to 4.0.7 ? I inherited > the server and was asked to upgrade, however the method described in the > documentation (pip upgrade ...) does not work, it fails with python errors. > I understood the 3.x runs with python 2.7 and 4.x runs with python 3, but > here my python experience ends. > > I managed to run "python3 -m pip install --upgrade pip" without erros, and > "pip3 install ReviewBoard" afterwards. It complained I ran it as root. > Running "rb-site upgrade /var/www/rbsite" wrote ModuleNotFoundError: No > module named 'psycopg2' and some other errors. Running "pip3 install > psycopg2" wrote: > Building wheels for collected packages: psycopg2 > Building wheel for psycopg2 (setup.py) ... error > ERROR: Command errored out with exit status 1: > ... > ./psycopg/psycopg.h:35:20: fatal error: Python.h: No such file or directory > > So I run "pip install psycopg2-binary==2.8.6" (I cound not compile it and > newer version had issue with timezone). > > "rb-site upgrade /var/www/rbsite" was *successfull *this time, I > restarted httpd and memcached, however I get HTTP500 error now. I see no > log files generated. > > Running the file manually writes this: > [root@localhost htdocs]# python3 reviewboard.wsgi > /usr/local/lib/python3.6/site-packages/paramiko/transport.py:33: > CryptographyDeprecationWarning: Python 3.6 is no longer supported by the > Python core team. Therefore, support for it is deprecated in cryptography > and will be removed in a future release. > from cryptography.hazmat.backends import default_backend > [root@localhost htdocs]# > > Could you please give try to navigate me, what to fix ? > > Thansk, > > BR > > MM > -- 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 [email protected]. To view this discussion on the web visit https://groups.google.com/d/msgid/reviewboard/26eec0e5-f5c0-4a9a-b71d-ae68771170f0n%40googlegroups.com.
