Migrating to mailman-web and Ubuntu 22.04
Hi.
For various reasons I want to migrate to a larger host running Ubuntu 22.04. I have set up the various packages ok and as part of the migration I want to use mailman-web instead of mailman-suite which is an older setup.
I have instructions for Mailman-web for setting up Uwsgi but I would prefer to keep Gunicorn working as per the instructions here: DOC/Mailman 3 installation experience - Mailman Wiki (list.org)<https://wiki.list.org/DOC/Mailman%203%20installation%20experience>
Has anyone done this before?
Thanks. Andrew.
Andrew Hodgson via Mailman-users writes:
I have instructions for Mailman-web for setting up Uwsgi but I would prefer to keep Gunicorn working as per the instructions here: DOC/Mailman 3 installation experience - Mailman Wiki (list.org)<https://wiki.list.org/DOC/Mailman%203%20installation%20experience>
Has anyone done this before?
I'm in the process of doing just that now. I'm not following that install exactly, but very closely, so far no problems. In particular, Apache to Gunicorn to Django and mailmanclient to Gunicorn to core are both working fine in light testing (we have a large number number of lists to migrate and a lot of corporate QA to pass so things are going step-by-step).
Is there anything in particular you're worried about?
Steve
Stephen J. Turnbull <stephenjturnbull@gmail.com> wrote:
Andrew Hodgson via Mailman-users writes:
I have instructions for Mailman-web for setting up Uwsgi but I > would prefer to keep Gunicorn working as per the instructions here: DOC/Mailman 3 installation experience - Mailman Wiki > (list.org)<https://wiki.list.org/DOC/Mailman%203%20installation%20experience>
Has anyone done this before?
I'm in the process of doing just that now. I'm not following that install exactly, but very closely, so far no problems. In particular, Apache to Gunicorn to Django and mailmanclient to Gunicorn to core are both working fine in light testing (we have a large number number of lists to migrate and a lot of >corporate QA to pass so things are going step-by-step).
Is there anything in particular you're worried about?
I'm having trouble getting Gunicorn to see the Mailman-Web installation at mailman_web.wsgi:application. Note the installation documentation I linked to uses mailman-suite which is an older (deprecated?) method of getting the web interface hooked up. I'm trying to migrate to mailman-web so that I can take advantage of changes going forward with a simpler setup.
I've potentially resolved to use Uwsgi for this and install another package which makes the installation more in line with this: https://docs.mailman3.org/en/latest/install/virtualenv.html
Andrew.
On 11/15/22 06:30, Andrew Hodgson via Mailman-users wrote:
I've potentially resolved to use Uwsgi for this and install another package which makes the installation more in line with this: https://docs.mailman3.org/en/latest/install/virtualenv.html
That doc needs to be updated to at least include gunicorn as an alternative to uwsgi. As time permits, I'll work on that.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Mark Sapiro <mark@msapiro.net> wrote:
On 11/15/22 06:30, Andrew Hodgson via Mailman-users wrote:
I've potentially resolved to use Uwsgi for this and install another package which makes the installation more in line with this: https://docs.mailman3.org/en/latest/install/virtualenv.html
That doc needs to be updated to at least include gunicorn as an alternative to uwsgi. As time permits, I'll work on that.
I've managed to complete the install now using that doc using Uwsgi in the venv. I think I used Gunicorn before because Mailman installs it as a dependency so it was something I just used. I also didn't need to install python3-dev on the host with Gunicorn, Uwsgi needed that install to complete the compilation task. I did also try using the packaged version of Uwsgi with Ubuntu but that was a bit of a non-starter.
Thanks. Andrew.
Andrew Hodgson via Mailman-users writes:
I'm having trouble getting Gunicorn to see the Mailman-Web installation at mailman_web.wsgi:application.
The basic idea is that Gunicorn expects mailman_web to be an importable module on the Python path. We provide mailman_web as an ordinary package with a trivial __init__.py, and wsgi is a module in that package. Since all the real work of creating the application is done by Django, wsgi.py can just be a standard piece of boilerplate. In sum, as long as the mailman_web directory is on the Python path, Gunicorn should find the right wsgi. If you installed with pip, it's in site-packages, and that is automatically satisfied.
Are you sure it's not finding mailman_web.wsgi:application? I would think more troublesome would be finding settings.py and urls.py. (Of course this is moot if you have success with uwsgi.)
Note the installation documentation I linked to uses mailman-suite which is an older (deprecated?) method of getting the web interface hooked up. I'm trying to migrate to mailman-web so that I can take advantage of changes going forward with a simpler setup.
That's right. I don't know if mailman-suite is actually deprecated or if it is "abandonware". But I can't think of any advantages to it, and mailman-web is definitely simpler.
participants (3)
-
Andrew Hodgson
-
Mark Sapiro
-
Stephen J. Turnbull