Since I am having the same issue, I’ll consolidate on this thread. Here is my uwsgi-error.log at start-up:
*** Starting uWSGI 2.0.19.1 (64bit) on [Tue May 11 08:01:48 2021] *** compiled with version: 8.3.1 20191121 (Red Hat 8.3.1-5) on 09 May 2021 00:39:19 os: Linux-4.18.0-240.22.1.el8_3.x86_64 #1 SMP Thu Apr 8 19:01:30 UTC 2021 nodename: xxxxx machine: x86_64 clock source: unix detected number of CPU cores: 12 current working directory: / detected binary path: /usr/local/mailman3/bin/uwsgi !!! no internal routing support, rebuild with pcre support !!! your processes number limit is 126645 your memory page size is 4096 bytes detected max file descriptor number: 1024 lock engine: pthread robust mutexes thunder lock: disabled (you can enable it with --thunder-lock) uwsgi socket 0 bound to TCP address 127.0.0.1:8000 fd 10 Python version: 3.8.3 (default, Aug 31 2020, 16:03:14) [GCC 8.3.1 20191121 (Red Hat 8.3.1-5)] PEP 405 virtualenv detected: /usr/local/mailman3 Set PythonHome to /usr/local/mailman3 Python main interpreter initialized at 0x9cc410 python threads support enabled your server socket listen backlog is limited to 100 connections your mercy for graceful operations on workers is 60 seconds mapped 250032 bytes (244 KB) for 4 cores *** Operational MODE: preforking+threaded *** added /etc/mailman3/ to pythonpath. WSGI app 0 (mountpoint='') ready in 1 seconds on interpreter 0x9cc410 pid: 20599 9 (default app) *** uWSGI is running in multiple interpreter mode *** spawned uWSGI master process (pid: 205999) spawned uWSGI worker 1 (pid: 206001, cores: 2) spawned uWSGI worker 2 (pid: 206002, cores: 2) [uwsgi-daemons] spawning "/usr/local/mailman3/bin/mailman-web qcluster" (uid: 10 01 gid: 1001) Traceback (most recent call last): File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 224, in fetch_command app_name = commands[subcommand] KeyError: 'qcluster'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/mailman3/bin/mailman-web", line 8, in <module> sys.exit(main()) File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman_web/manage.py" , line 30, in main execute_from_command_line(sys.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 231, in fetch_command settings.INSTALLED_APPS File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 76, in __getattr__ self._setup(name) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 63, in _setup self._wrapped = Settings(settings_module) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 142, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'settings' [uwsgi-daemons] throttling "/usr/local/mailman3/bin/mailman-web qcluster" for 1 seconds [uwsgi-daemons] respawning "/usr/local/mailman3/bin/mailman-web qcluster" (uid: 1001 gid: 1001) Traceback (most recent call last): File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 224, in fetch_command app_name = commands[subcommand] KeyError: 'qcluster'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/mailman3/bin/mailman-web", line 8, in <module> sys.exit(main()) File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman_web/manage.py" , line 30, in main execute_from_command_line(sys.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 231, in fetch_command settings.INSTALLED_APPS File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 76, in __getattr__ self._setup(name) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 63, in _setup self._wrapped = Settings(settings_module) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 142, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named 'settings' [uwsgi-daemons] throttling "/usr/local/mailman3/bin/mailman-web qcluster" for 1 seconds [uwsgi-daemons] respawning "/usr/local/mailman3/bin/mailman-web qcluster" (uid: 1001 gid: 1001) Traceback (most recent call last): File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 224, in fetch_command app_name = commands[subcommand] KeyError: 'qcluster'
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/local/mailman3/bin/mailman-web", line 8, in <module> sys.exit(main()) File "/usr/local/mailman3/lib64/python3.8/site-packages/mailman_web/manage.py" , line 30, in main execute_from_command_line(sys.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 401, in execute_from_command_line utility.execute() File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 395, in execute self.fetch_command(subcommand).run_from_argv(self.argv) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/core/management /__init__.py", line 231, in fetch_command settings.INSTALLED_APPS File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 76, in __getattr__ self._setup(name) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 63, in _setup self._wrapped = Settings(settings_module) File "/usr/local/mailman3/lib64/python3.8/site-packages/django/conf/__init__.p y", line 142, in __init__ mod = importlib.import_module(self.SETTINGS_MODULE) File "/usr/lib64/python3.8/importlib/__init__.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "<frozen importlib._bootstrap>", line 1014, in _gcd_import File "<frozen importlib._bootstrap>", line 991, in _find_and_load File "<frozen importlib._bootstrap>", line 973, in _find_and_load_unlocked ModuleNotFoundError: No module named ‘settings'
and so on…
Here is my uwsgi.ini:
# /etc/mailman3/uwsgi.ini #
[uwsgi] # Port on which uwsgi will be listening. uwsgi-socket = 127.0.0.1:8000
# If running uwsgi from the virtual environment ... virtualenv = /usr/local/mailman3
module=mailman_web.wsgi:application # Add to python import path. pythonpath = /etc/mailman3/
# The default settings module. env = DJANGO_SETTINGS_MODULE=settings
# Setup default number of processes and threads per process. master = true processes = 2 threads = 2
# Setup the django_q related worker processes. attach-daemon = /usr/local/mailman3/bin/mailman-web qcluster
# Setup the request log. req-logger = file:/usr/local/mailman3/web/logs/uwsgi.log
# Log qcluster commands separately. logger = qcluster file:/usr/local/mailman3/web/logs/uwsgi-qcluster.log log-route = qcluster uwsgi-daemons
# Last log and it logs the rest of the stuff. logger = file:/usr/local/mailman3/web/logs/uwsgi-error.log
Running from the command line as mailman looks pretty good:
[mailman3]# sudo -u mailman bin/mailman-web qcluster 12:15:26 [Q] INFO Q Cluster orange-chicken-violet-moon starting. 12:15:26 [Q] INFO Process-1:1 ready for work at 206071 12:15:26 [Q] INFO Process-1:2 ready for work at 206072 12:15:26 [Q] INFO Process-1:3 ready for work at 206073 12:15:26 [Q] INFO Process-1:4 ready for work at 206074 12:15:26 [Q] INFO Process-1:5 ready for work at 206075 12:15:26 [Q] INFO Process-1:6 ready for work at 206076 12:15:26 [Q] INFO Process-1:7 ready for work at 206077 12:15:26 [Q] INFO Process-1:8 ready for work at 206078 12:15:26 [Q] INFO Process-1:9 ready for work at 206079 12:15:26 [Q] INFO Process-1:10 ready for work at 206080 12:15:26 [Q] INFO Process-1:11 ready for work at 206081 12:15:26 [Q] INFO Process-1:12 ready for work at 206082 12:15:26 [Q] INFO Process-1:13 monitoring at 206083 12:15:26 [Q] INFO Process-1 guarding cluster orange-chicken-violet-moon 12:15:26 [Q] INFO Process-1:14 pushing tasks at 206084 12:15:26 [Q] INFO Q Cluster orange-chicken-violet-moon running. 12:15:26 [Q] INFO Process-1:1 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:2 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:3 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:4 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:5 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:6 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:7 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:8 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:9 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:10 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:11 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:12 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:1 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:2 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:3 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:4 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:5 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:6 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:7 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:8 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:9 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:10 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:11 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:1 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:2 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:4 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:12 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:3 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:5 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:8 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:7 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Process-1:9 processing [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month] 12:15:26 [Q] INFO Processed [rebuild_mailinglist_cache_for_month]
I appreciate your willingness to assist with this issue. Thanks very much.
Jeff