Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

mailman daemon does not start after yunohost 12 upgrade #48

Open
drousset opened this issue Nov 4, 2024 · 2 comments
Open

mailman daemon does not start after yunohost 12 upgrade #48

drousset opened this issue Nov 4, 2024 · 2 comments

Comments

@drousset
Copy link

drousset commented Nov 4, 2024

After (smooth) upgrade to yunhost 12, mailman3 service does not start.
systemctl status mailman3 output is (actual website name hidden)

Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: File "/usr/lib/python3/dist-packages/sqlalchemy/engine/url.py", line 662, in _get_entrypoint
Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: cls = registry.load(name)
Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: ^^^^^^^^^^^^^^^^^^^
Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: File "/usr/lib/python3/dist-packages/sqlalchemy/util/langhelpers.py", line 343, in load
Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: raise exc.NoSuchModuleError(
Nov 04 11:45:36 XXXXX.XXX mailman3[1205]: sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres
Nov 04 11:45:36 XXXXX.XXX systemd[1]: mailman3.service: Control process exited, code=exited, status=1/FAILURE
Nov 04 11:45:36 XXXXX.XXX systemd[1]: mailman3.service: Failed with result 'exit-code'.
Nov 04 11:45:36 XXXXX.XXX systemd[1]: Failed to start mailman3.service - Mailman3 server.
Nov 04 11:45:36 XXXXX.XXX systemd[1]: mailman3.service: Consumed 1.172s CPU time.

After googling the messages, the error seems to be related to a postgres/postgresql problem (Can't load plugin: sqlalchemy.dialects:postgres) but I can't find the origin of the problem.

Any help welcome
Thanks

@e-jim
Copy link

e-jim commented Dec 11, 2024

Hey @drousset
I was able to solve the issue just by modifying the line that starts with url: in the file /etc/mailman3/mailman.cfg
There, all I needed to do was replacing postgres:// by postgresql://
Everything seems to work from there (just restarted the service: systemctl start mailman3)

e-jim added a commit to e-jim/mailman3_ynh that referenced this issue Dec 11, 2024
As seen in issue YunoHost-Apps#48 the newer versions of sqlalchemy doesn't use the "postgres://" scheme anymore but expect it to be postgresql://
(see sqlalchemy/sqlalchemy#6083 (comment))
@drousset
Copy link
Author

drousset commented Dec 11, 2024 via email

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants