Is a directory: '…/mailman/templates'
hey folks,
I am struggling with my mailman server for quite some time now. I am on 3.3 and the out runner cannot sent emails any more. According to this issue 1 I found out--by logging the exception as well--, that mailman has this problem:
Mar 31 09:34:51 2020 (71057) ACCEPT: <c1e4aa1be5b61c289c69a66a6d55565333d5a35b.camel@rumpelsepp.org> Mar 31 09:34:52 2020 (71079) Cannot connect to SMTP server 127.0.0.1 on port 25: [Errno 21] Is a directory: '/usr/lib/python3.8/site-packages/mailman/templates'
What the hell is going on here? ☹︎ any ideas what's wrong? The runner doesn't try to connect to postfix, since it fails with a strange template error.
Stefan
You need to downgrade one of the dependency of Mailman, importlib_resources to 1.0.2 version.
Depending on how you installed it, you can use pip to install that version. This is a recent change and probably happened if you installed or upgraded your Mailman instance.
Abhilash (Sent from mobile device)
On Tue, Mar 31, 2020, at 12:53 AM, Stefan Tatschner wrote:
hey folks,
I am struggling with my mailman server for quite some time now. I am on 3.3 and the out runner cannot sent emails any more. According to this issue 1 I found out--by logging the exception as well--, that mailman has this problem:
Mar 31 09:34:51 2020 (71057) ACCEPT: <c1e4aa1be5b61c289c69a66a6d55565333d5a35b.camel@rumpelsepp.org> Mar 31 09:34:52 2020 (71079) Cannot connect to SMTP server 127.0.0.1 on port 25: [Errno 21] Is a directory: '/usr/lib/python3.8/site-packages/mailman/templates'
What the hell is going on here? ☹︎ any ideas what's wrong? The runner doesn't try to connect to postfix, since it fails with a strange template error.
Stefan
Mailman-users mailing list -- mailman-users@mailman3.org To unsubscribe send an email to mailman-users-leave@mailman3.org https://lists.mailman3.org/mailman3/lists/mailman-users.mailman3.org/
-- thanks, Abhilash Raj (maxking)
Stefan Tatschner wrote:
I am struggling with my mailman server for quite some time now. I am on 3.3 and the out runner cannot sent emails any more. According to this issue [1] I found out--by logging the exception as well--, that mailman has this problem:
Mar 31 09:34:51 2020 (71057) ACCEPT: <c1e4aa1be5b61c289c69a66a6d55565333d5a35b.camel@rumpelsepp.org> Mar 31 09:34:52 2020 (71079) Cannot connect to SMTP server 127.0.0.1 on port 25: [Errno 21] Is a directory: '/usr/lib/python3.8/site-packages/mailman/templates'
I had this issue over the weekend and wasted many hours on it.
Downgrade importlib-resources to 1.0.2 and it should work fine.
There was a prior post on this list a few days ago as well which I missed.
Best. Andrew.
On Tue, 2020-03-31 at 09:53 +0200, Stefan Tatschner wrote:
What the hell is going on here? ☹︎ any ideas what's wrong? The runner doesn't try to connect to postfix, since it fails with a strange template error.
Thanks folks for your answers! I ended up deploying a backup, but I am prepared for next time…
Stefan
With latest python3 via yum install, you cannot downgrade importlib.
@maxking -- what is the thinking on real fix? Can we avoid downgrading or switch to a different library?
Collecting importlib==1.0.2
Cache entry deserialization failed, entry ignored
Downloading https://files.pythonhosted.org/packages/5c/12/8f817b1fac707b23f26f4f07781474...
Complete output from command python setup.py egg_info:
Traceback (most recent call last):
File "<string>", line 1, in <module>
File "/tmp/pip-build-tiawxv9j/importlib/setup.py", line 8, in <module>
raise Exception("importlib is included in Python 3.1 and newer for 3.x")
Exception: importlib is included in Python 3.1 and newer for 3.x
On 4/14/20 10:23 AM, sunil soprey wrote:
With latest python3 via yum install, you cannot downgrade importlib.
@maxking -- what is the thinking on real fix? Can we avoid downgrading or switch to a different library?
This should be fixed by <https://gitlab.com/mailman/mailman/-/merge_requests/615> which is included in Mailman core 3.3.1rc1.
-- Mark Sapiro <mark@msapiro.net> The highway is for gamblers, San Francisco Bay Area, California better use your sense - B. Dylan
Thanks for fast response. I just tried the rc1 candidate and subscriptions are working again.
I'll run through the use-cases. thanks again.
participants (5)
-
Abhilash Raj
-
Andrew Hodgson
-
Mark Sapiro
-
Stefan Tatschner
-
sunil soprey