You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello, I encountered a problem while creating a container. Should these files be in this repository? As far as I can see, the pyproject.toml file isn't here; it's in another repository, cmdeploy.
[2/2] STEP 4/41: COPY cmdeploy/pyproject.toml /opt/chatmail/cmdeploy/pyproject.toml
Error: building at STEP "COPY cmdeploy/pyproject.toml /opt/chatmail/cmdeploy/pyproject.toml": checking on sources under "/home/support": copier: stat: "/cmdeploy/pyproject.toml": no such file or directory
Possible reason why I’m using podman and not docker? When I ran podman pull ghcr.io/chatmail/docker:main, the process continued. But there’s still an error further down:
[2/2] STEP 8/41: RUN --mount=type=cache,target=/root/.cache/pip git init -q && python3 -m venv /opt/cmdeploy && /opt/cmdeploy/bin/pip install -e chatmaild/ -e cmdeploy/
Obtaining file:///opt/chatmail/chatmaild
ERROR: Exception:
Traceback (most recent call last):
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/cli/base_command.py", line 160, in exc_logging_wrapper
status = run_func(*args)
^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/cli/req_command.py", line 247, in wrapper
return func(self, options, args)
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/commands/install.py", line 419, in run
requirement_set = resolver.resolve(
^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/resolver.py", line 73, in resolve
collected = self.factory.collect_root_requirements(root_reqs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 491, in collect_root_requirements
req = self._make_requirement_from_install_req(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 453, in _make_requirement_from_install_req
cand = self._make_candidate_from_link(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/factory.py", line 185, in _make_candidate_from_link
self._editable_candidate_cache[link] = EditableCandidate(
^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 322, in __init__
super().__init__(
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 162, in __init__
self.dist = self._prepare()
^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 231, in _prepare
dist = self._prepare_distribution()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/resolution/resolvelib/candidates.py", line 332, in _prepare_distribution
return self._factory.preparer.prepare_editable_requirement(self._ireq)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 633, in prepare_editable_requirement
dist = _get_prepared_distribution(
^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/operations/prepare.py", line 69, in _get_prepared_distribution
abstract_dist.prepare_distribution_metadata(
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/distributions/sdist.py", line 31, in prepare_distribution_metadata
self.req.load_pyproject_toml()
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/req/req_install.py", line 477, in load_pyproject_toml
pyproject_toml_data = load_pyproject_toml(
^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_internal/pyproject.py", line 64, in load_pyproject_toml
pp_toml = tomli.loads(f.read())
^^^^^^^^^^^^^^^^^^^^^
File "/opt/cmdeploy/lib/python3.11/site-packages/pip/_vendor/tomli/_parser.py", line 116, in loads
raise suffixed_err(src, pos, "Invalid statement")
pip._vendor.tomli.TOMLDecodeError: Invalid statement (at line 7, column 1)
Error: building at STEP "RUN --mount=type=cache,target=/root/.cache/pip git init -q && python3 -m venv /opt/cmdeploy && /opt/cmdeploy/bin/pip install -e chatmaild/ -e cmdeploy/": while running runtime: exit status 2
exit code: 2
podman volume inspect docker_mail || podman volume create docker_mail
['podman', 'volume', 'inspect', 'docker_mail']
podman volume inspect docker_dkim || podman volume create docker_dkim
['podman', 'volume', 'inspect', 'docker_dkim']
podman volume inspect docker_certs || podman volume create docker_certs
['podman', 'volume', 'inspect', 'docker_certs']
['podman', 'network', 'exists', 'docker_default']
podman run --name=chatmail -d --label io.podman.compose.config-hash=123 --label io.podman.compose.project=docker --label io.podman.compose.version=0.0.1 --label com.docker.compose.project=docker --label com.docker.compose.project.working_dir=/home/support/docker --label com.docker.compose.project.config_files=docker-compose.yaml --label com.docker.compose.container-number=1 --label com.docker.compose.service=chatmail --network host -e MAIL_DOMAIN=directed-by-john.vu -e ACME_EMAIL=${ACME_EMAIL:-} --tmpfs /tmp --tmpfs /run --tmpfs /run/lock -v /sys/fs/cgroup:/sys/fs/cgroup:rw -v docker_mail:/home/vmail -v docker_dkim:/etc/dkimkeys -v docker_certs:/var/lib/acme --net docker_default --network-alias chatmail --log-driver=json-file --log-opt=max-size=10m --log-opt=max-file=3 --tty --restart unless-stopped ghcr.io/chatmail/docker:main
Error: cannot set multiple networks without bridge network mode, selected mode host: invalid argument
exit code: 125
podman start chatmail
Error: no container with name or ID "chatmail" found: no such container
exit code: 125
I have tried preparing a branch with bridge mode default, but I'm not sure want to go that way (#9). you could try enabling host mode networking for podman; and I don't know whats wrong with the toml.
Activity
j4n commentedon Aug 27, 2026
Hi, I added a note on source builds in #8 - can you check if that does the trick?
serg-novoch commentedon Aug 27, 2026
Possible reason why I’m using podman and not docker? When I ran
podman pull ghcr.io/chatmail/docker:main, the process continued. But there’s still an error further down:[edited for verbatim block -j4n]
j4n commentedon Sep 1, 2026
I have tried preparing a branch with bridge mode default, but I'm not sure want to go that way (#9). you could try enabling host mode networking for podman; and I don't know whats wrong with the toml.