error when starting the mailman executable from the venv
I tried to access a 'held' message and got the 'Mailman REST API not available. Please start Mailman core.' error message. When I went to start the mailman executable from the venv I get this
#~mailman/mm/venv/bin/mailman start Starting Mailman's master runner Generating MTA alias maps Traceback (most recent call last): File "/opt/mailman/mm/venv/bin/mailman", line 11, in <module> load_entry_point('mailman==3.3.2', 'console_scripts', 'mailman')() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/bin/mailman.py", line 68, in invoke return super().invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/commands/cli_control.py", line 131, in start os.execl(*execl_args) File "/usr/lib/python3.7/os.py", line 539, in execl execv(file, args) TypeError: expected str, bytes or os.PathLike object, not NoneType
Please advise. Thank you. ~Christian
Have you tried using the following as root?
#systemctl restart mailman
On 2/10/21 8:39 AM, Christian Stalberg via Mailman-users wrote:
I tried to access a 'held' message and got the 'Mailman REST API not available. Please start Mailman core.' error message. When I went to start the mailman executable from the venv I get this
#~mailman/mm/venv/bin/mailman start Starting Mailman's master runner Generating MTA alias maps Traceback (most recent call last): File "/opt/mailman/mm/venv/bin/mailman", line 11, in <module> load_entry_point('mailman==3.3.2', 'console_scripts', 'mailman')() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 829, in __call__ return self.main(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 782, in main rv = self.invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/bin/mailman.py", line 68, in invoke return super().invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 1259, in invoke return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 1066, in invoke return ctx.invoke(self.callback, **ctx.params) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py", line 610, in invoke return callback(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func return f(get_current_context(), *args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/commands/cli_control.py", line 131, in start os.execl(*execl_args) File "/usr/lib/python3.7/os.py", line 539, in execl execv(file, args) TypeError: expected str, bytes or os.PathLike object, not NoneType
Please advise. Thank you. ~Christian
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/
Brian Carpenter Harmonylists.com Emwd.com
Thanks for the quick response Brian. No I did not try what you suggest. I rebooted the entire server and that fixed it. What can I do to prevent this from happening again?
-----Original Message----- From: Brian Carpenter <brian_carpenter@emwd.com> Sent: Wednesday, February 10, 2021 5:52 AM To: mailman-users@mailman3.org Subject: [MM3-users] Re: error when starting the mailman executable from the venv
Have you tried using the following as root?
#systemctl restart mailman
I tried to access a 'held' message and got the 'Mailman REST API not available. Please start Mailman core.' error message. When I went to start the mailman executable from the venv I get this
#~mailman/mm/venv/bin/mailman start Starting Mailman's master runner Generating MTA alias maps Traceback (most recent call last): File "/opt/mailman/mm/venv/bin/mailman", line 11, in <module> load_entry_point('mailman==3.3.2', 'console_scripts', 'mailman')() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
On 2/10/21 8:39 AM, Christian Stalberg via Mailman-users wrote: line 829, in __call__
return self.main(*args, **kwargs)
File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 782, in main
rv = self.invoke(ctx)
File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/bin/mailman.py", line 68, in invoke
return super().invoke(ctx)
File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx))
File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params)
File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs)
File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs)
File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/commands/cli_contr ol.py", line 131, in start
os.execl(*execl_args)
File "/usr/lib/python3.7/os.py", line 539, in execl execv(file, args) TypeError: expected str, bytes or os.PathLike object, not NoneType
Please advise. Thank you. ~Christian
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/
-- Brian Carpenter Harmonylists.com Emwd.com
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/
Well the first thing to check I think is the /opt/mailman/mm/logs/mailman.log to see if that holds any clues to the failure.
On 2/10/21 8:58 AM, Christian Stalberg via Mailman-users wrote:
Thanks for the quick response Brian. No I did not try what you suggest. I rebooted the entire server and that fixed it. What can I do to prevent this from happening again?
-----Original Message----- From: Brian Carpenter <brian_carpenter@emwd.com> Sent: Wednesday, February 10, 2021 5:52 AM To: mailman-users@mailman3.org Subject: [MM3-users] Re: error when starting the mailman executable from the venv
Have you tried using the following as root?
#systemctl restart mailman
I tried to access a 'held' message and got the 'Mailman REST API not available. Please start Mailman core.' error message. When I went to start the mailman executable from the venv I get this
#~mailman/mm/venv/bin/mailman start Starting Mailman's master runner Generating MTA alias maps Traceback (most recent call last): File "/opt/mailman/mm/venv/bin/mailman", line 11, in <module> load_entry_point('mailman==3.3.2', 'console_scripts', 'mailman')() File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
On 2/10/21 8:39 AM, Christian Stalberg via Mailman-users wrote: line 829, in __call__
return self.main(*args, **kwargs) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 782, in main
rv = self.invoke(ctx) File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/bin/mailman.py", line 68, in invoke
return super().invoke(ctx) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 1259, in invoke
return _process_result(sub_ctx.command.invoke(sub_ctx)) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 1066, in invoke
return ctx.invoke(self.callback, **ctx.params) File "/opt/mailman/mm/venv/lib/python3.7/site-packages/click/core.py",
line 610, in invoke
return callback(*args, **kwargs) File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/click/decorators.py", line 21, in new_func
return f(get_current_context(), *args, **kwargs) File
"/opt/mailman/mm/venv/lib/python3.7/site-packages/mailman/commands/cli_contr ol.py", line 131, in start
os.execl(*execl_args) File "/usr/lib/python3.7/os.py", line 539, in execl execv(file, args)
TypeError: expected str, bytes or os.PathLike object, not NoneType
Please advise. Thank you. ~Christian
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/
-- Brian Carpenter Harmonylists.com Emwd.com
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/
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/
Brian Carpenter Harmonylists.com Emwd.com
participants (2)
-
Brian Carpenter
-
Christian Stalberg