On 11/26/21 9:49 AM, David Newman wrote:
On 11/25/21 1:16 PM, Mark Sapiro wrote:
What django admin command are you running?
As the mailman user, with venv activated:
(venv) mailman@lists:~$ hyperkitty_import -l testlist@lists.domain.com /var/lib/mailman/archives/private/testlist.mbox/testlist.mbox
hyperkitty_import is not a command. it is a subcommand to the django administration command. You need to run
mailman-web hyperkitty_import -l testlist@lists.domain.com
/var/lib/mailman/archives/private/testlist.mbox/testlist.mbox
...
If you don't set DJANGO_SETTINGS_MODULE in the environment and you have activated your virtualenv and run
mailman-web
as the django admin command it will set /etc/mailman3/settings.py as the settings.I'd run these two environment commands as the mailman user with virtualenv activated:
export DJANGO_SETTINGS_MODULE=settings export PYTHONPATH=/etc/mailman3/settings.py
That should be
export PYTHONPATH=/etc/mailman3/
but you don't need these.
Am I being overly literal here with 'settings' in that first command? Asking because 'mailman-web check' runs clean before running these commands and returns this error afterward:
ModuleNotFoundError: No module named 'settings'
Yes, the mailman-web command sets these up correctly if they aren't set, but if they are, it believes what you set which was wrong for PYTHONPATH.
Don't set those environment variables and let mailman-web do it for you.
Either way, the hyperkitty_import command still isn't found.
Again because it's not a command but a mailman-web
subcommand.
By default, only lists that you are owner, moderator or subscriber for are shown. What if you click Filter by Role and select All?
Same result. In this case, the ID of the admin and list owner are the same.
Have you set FILTER_VHOST = True in your settings.py. If so, that could possibly explain it.
Can you access these lists at something like https://example.com/mailman3/lists/listname@example.com
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan