Hello, Thanks for the help in advance. I have reviewboard running on two sites on the same server. mysql 8.0.x, rocky 9, apache 2.4, curl https://install.reviewboard.org | python3.9, subversion 1.14.1
I can commit with svn on one site and it works fine, reviews are posted. But on the other site on the same machine I get multiple errors that python modules are not found. One by one I install the missing modules and then the second site works and I can commit to it. I'm not sure why these modules need to be installed because they are all already installed under the python virtual environment? For example I get the error wsgi:error] [pid 27420:tid 27548] [client 10.10.x.x:44938] File "/var/www/reviewboard2/venv/lib/python3.9/site-packages/djblets/util/templatetags/djblets_images.py", line 16, in <module> [wsgi:error] [pid 27420:tid 27548] [client 10.10.x.x:44938] from PIL import Image [wsgi:error] [pid 27420:tid 27548] [client 10.10.x.x:44938] ModuleNotFoundError: No module named 'PIL' But then I run source bin/activate, do an import of the module in python and it runs without an error indicating the module already exists, but it doesn't work properly until I install the missing modules in a non-virtual environment. pip mysqlclient pip install cryptography pip install Pillow pip install bcrypt pip install pynacl pip install PyYAML pip install pysvn *but now I can't commit to the first site without an error. *Installing the above modules seemed to break the first site. I'm able to navigate the first sites repo in the browser, checkout directories, commit to the site, but the rbt post to reviewboard produces the error below. Here is my rbt command. (stdout, stderr) = Popen(["/opt/reviewboard/bin/rbt", "post", "--debug", "--server", server, "--publish", "--description", description, "--summary", summary, "--submit-as", author, "--username", "svn", "--password", "xxxxx", "--target-groups", groups, "--target-people", people, "--repository", "myRepo", "--repository-type", "svn", "--repository-url", repoURL, revisionRange], stdout=PIPE, stderr=PIPE).communicate() here is my setting.local.py for the first site. The second site is similar except that it has a different NAME for the database, secret key, and memcache port is 11212. DATABASES = { 'default': { 'ENGINE': 'django.db.backends.mysql', 'NAME': 'reviewboard', 'USER': 'reviewboard', 'PASSWORD': 'xxxxxxxxxx', 'HOST': '127.0.0.1', 'PORT': '', }, } # Unique secret key. Don't share this with anybody. SECRET_KEY = 'xxxxxxxxxx' # Cache backend settings. CACHES = { 'default': { 'BACKEND': 'django.core.cache.backends.memcached.PyMemcacheCache', 'LOCATION': 'localhost:11211', }, } # Extra site information. SITE_ID = 1 SITE_ROOT = '/reviewboard/' FORCE_SCRIPT_NAME = '' DEBUG = True ALLOWED_HOSTS = ['myserver.com'] Here is the error after running the rbt command Making HTTP GET request to https://myserver.com:8080/reviewboard/api/\n>>> Cached response for HTTP GET https://myserver.com:8080/reviewboard/reviewboard/api/ expired and was not modified\n>>> Making HTTP GET request to https://myserver.com:8080/reviewboard/reviewboard/api/repositories/?name=myRepo&only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info%2Cdiff_file_attachments&tool=subversion\n>>> Cached response for HTTP GET https://myserver.com:8080/reviewboard/reviewboard/api/repositories/?name=myRepo&only-fields=id%2Cname%2Cmirror_path%2Cpath&only-links=info%2Cdiff_file_attachments&tool=subversion expired and was not modified\n>>> Making HTTP GET request to https://myserver.com:8080/reviewboard/reviewboard/api/repositories/1/info/\n>>> Got API Error 210 (HTTP code 500): There was an error communicating with this repository.\n>>> Error data: {\'err\': {\'code\': 210, \'msg\': \'There was an error communicating with this repository.\', \'type\': \'repository-communication-error\'}, \'stat\': \'fail\'}\nTraceback (most recent call last):\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/request.py", line 1496, in make_request\n rsp = self._urlopen(Request(\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/cache.py", line 350, in make_request\n response = LiveHTTPResponse(urlopen(request))\n File "/usr/lib64/python3.9/urllib/request.py", line 214, in urlopen\n return opener.open(url, data, timeout)\n File "/usr/lib64/python3.9/urllib/request.py", line 523, in open\n response = meth(req, response)\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/request.py", line 535, in http_response\n response = self.parent.error(\'http\', request, response,\n File "/usr/lib64/python3.9/urllib/request.py", line 561, in error\n return self._call_chain(*args)\n File "/usr/lib64/python3.9/urllib/request.py", line 494, in _call_chain\n result = func(*args)\n File "/usr/lib64/python3.9/urllib/request.py", line 641, in http_error_default\n raise HTTPError(req.full_url, code, msg, hdrs, fp)\nurllib.error.HTTPError: HTTP Error 500: Internal Server Error\n\nDuring handling of the above exception, another exception occurred:\n\nTraceback (most recent call last):\n File "/opt/reviewboard/bin/rbt", line 8, in <module>\n sys.exit(main())\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/main.py", line 214, in main\n command.run_from_argv([RB_MAIN, command_name] + args)\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py", line 1114, in run_from_argv\n self.initialize()\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/commands/base/commands.py", line 1033, in initialize\n repository, info = get_repository_resource(\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/utils/repository.py", line 90, in get_repository_resource\n return repository, _get_info(repository)\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/utils/repository.py", line 58, in _get_info\n return repository.get_info()\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/resource.py", line 334, in <lambda>\n self._get_url(url, **kwargs)))\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/decorators.py", line 23, in request_method\n return self._transport.execute_request_method(method_wrapper,\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/transport/sync.py", line 323, in execute_request_method\n return self._execute_request(request)\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/transport/sync.py", line 344, in _execute_request\n rsp = self.server.make_request(request)\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/request.py", line 1499, in make_request\n self.process_error(e.code, e.read())\n File "/opt/reviewboard/lib/python3.9/site-packages/rbtools/api/request.py", line 1462, in process_error\n raise create_api_error(http_status, rsp[\'err\'][\'code\'], rsp,\nrbtools.api.errors.APIError: There was an error communicating with this repository. (API Error 210: Repository Information Error)\n l https://install.reviewboard.org | python3.11curl https://install.reviewboard.org | python3.11. -- 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 visit https://groups.google.com/d/msgid/reviewboard/625659c5-bc25-422f-bf01-7ea759572522n%40googlegroups.com.