maxking / maxking/docker-mailman
Unable to start docker compose project - error thrown
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 278
- Forks
- 121
- PR merge metrics
- No merged PRs in 30d
Description
Hi, I've tried searching but the issues I found were supposed resolved in an older version or very old.
I've modified the docker compose file to use relative paths inside the compose folder instead of /opt, added labels for traefik, and changed the version of core and web to 0.5.2, still pulling images from docker hub. I'm unable to start the containers. core throws the following error repeatedly:
mailman-core-1 | Traceback (most recent call last):
mailman-core-1 | File "/usr/bin/mailman", line 8, in <module>
mailman-core-1 | sys.exit(main())
mailman-core-1 | ^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 1157, in __call__
mailman-core-1 | return self.main(*args, **kwargs)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 1077, in main
mailman-core-1 | with self.make_context(prog_name, args, **extra) as ctx:
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 943, in make_context
mailman-core-1 | self.parse_args(ctx, args)
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 1644, in parse_args
mailman-core-1 | rest = super().parse_args(ctx, args)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 1408, in parse_args
mailman-core-1 | value, args = param.handle_parse_result(ctx, opts, args)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 2400, in handle_parse_result
mailman-core-1 | value = self.process_value(ctx, value)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/click/core.py", line 2362, in process_value
mailman-core-1 | value = self.callback(ctx, self, value)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/mailman/bin/mailman.py", line 95, in initialize_config
mailman-core-1 | initialize(value)
mailman-core-1 | File "/usr/lib/python3.12/site-packages/mailman/core/initialize.py", line 229, in initialize
mailman-core-1 | initialize_2(propagate_logs=propagate_logs)
mailman-core-1 | File "/usr/lib/python3.12/site-packages/mailman/core/initialize.py", line 187, in initialize_2
mailman-core-1 | config.db = getUtility(IDatabaseFactory, utility_name).create()
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/mailman/database/factory.py", line 57, in create
mailman-core-1 | database.initialize()
mailman-core-1 | File "/usr/lib/python3.12/site-packages/mailman/database/base.py", line 117, in initialize
mailman-core-1 | self.engine = create_engine(
mailman-core-1 | ^^^^^^^^^^^^^^
mailman-core-1 | File "<string>", line 2, in create_engine
mailman-core-1 | File "/usr/lib/python3.12/site-packages/sqlalchemy/util/deprecations.py", line 281, in warned
mailman-core-1 | return fn(*args, **kwargs) # type: ignore[no-any-return]
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/sqlalchemy/engine/create.py", line 550, in create_engine
mailman-core-1 | entrypoint = u._get_entrypoint()
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/sqlalchemy/engine/url.py", line 758, in _get_entrypoint
mailman-core-1 | cls = registry.load(name)
mailman-core-1 | ^^^^^^^^^^^^^^^^^^^
mailman-core-1 | File "/usr/lib/python3.12/site-packages/sqlalchemy/util/langhelpers.py", line 375, in load
mailman-core-1 | raise exc.NoSuchModuleError(
mailman-core-1 | sqlalchemy.exc.NoSuchModuleError: Can't load plugin: sqlalchemy.dialects:postgres
TIA. It's truncated, so let me know if you need to see more. Thanks.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start by reviewing the modified Docker Compose file and reproducing the failure with the 0.5.2 core and web images. Follow the traceback from Mailman's initialization into SQLAlchemy's database setup and verify that the containers start without the reported postgres dialect error.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- docker, docker-compose, postgres, python, sqlalchemy
- Domain
- backend, databases, devops
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 25/100