Skip to content

fix

fix #10

GitHub Actions / JUnit Test Report failed Jul 5, 2023 in 0s

12 tests run, 11 passed, 0 skipped, 1 failed.

Annotations

Check failure on line 1 in ch-monitoring tool

See this annotation in the file changed.

@github-actions github-actions / JUnit Test Report

ch-monitoring tool.Check Distributed tables

409 Client Error for http+docker://localhost/v1.41/containers/42f05f3cf4b828027a3ccecad7db17aab037822b70b82209d9e202e161b7e858/exec: Conflict ("Container 42f05f3cf4b828027a3ccecad7db17aab037822b70b82209d9e202e161b7e858 is not running")
Raw output
Failing step: And a working s3 ... failed in 0.125s
Location: features/monrun.feature:5
Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/api/client.py", line 268, in _raise_for_status
    response.raise_for_status()
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/requests/models.py", line 1021, in raise_for_status
    raise HTTPError(http_error_msg, response=self)
requests.exceptions.HTTPError: 409 Client Error: Conflict for url: http+docker://localhost/v1.41/containers/42f05f3cf4b828027a3ccecad7db17aab037822b70b82209d9e202e161b7e858/exec

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/behave/model.py", line 1329, in run
    match.run(runner.context)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/behave/matchers.py", line 98, in run
    self.func(context, *args, **kwargs)
  File "steps/s3.py", line 14, in step_wait_for_s3_alive
    minio.initialize(context)
  File "/home/runner/work/ch-tools/ch-tools/tests/modules/minio.py", line 51, in initialize
    _configure_s3_credentials(context)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/tenacity/__init__.py", line 289, in wrapped_f
    return self(f, *args, **kw)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/tenacity/__init__.py", line 379, in __call__
    do = self.iter(retry_state=retry_state)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/tenacity/__init__.py", line 314, in iter
    return fut.result()
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/concurrent/futures/_base.py", line 451, in result
    return self.__get_result()
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/concurrent/futures/_base.py", line 403, in __get_result
    raise self._exception
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/tenacity/__init__.py", line 382, in __call__
    result = fn(*args, **kwargs)
  File "/home/runner/work/ch-tools/ch-tools/tests/modules/minio.py", line 74, in _configure_s3_credentials
    _mc_execute(
  File "/home/runner/work/ch-tools/ch-tools/tests/modules/minio.py", line 99, in _mc_execute
    output = _container(context).exec_run(f"mcli --json {command}").output.decode()
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/models/containers.py", line 194, in exec_run
    resp = self.client.api.exec_create(
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/utils/decorators.py", line 19, in wrapped
    return f(self, resource_id, *args, **kwargs)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/api/exec_api.py", line 79, in exec_create
    return self._result(res, True)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/api/client.py", line 274, in _result
    self._raise_for_status(response)
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/api/client.py", line 270, in _raise_for_status
    raise create_api_error_from_http_exception(e) from e
  File "/opt/hostedtoolcache/Python/3.10.12/x64/lib/python3.10/site-packages/docker/errors.py", line 39, in create_api_error_from_http_exception
    raise cls(e, response=response, explanation=explanation) from e
docker.errors.APIError: 409 Client Error for http+docker://localhost/v1.41/containers/42f05f3cf4b828027a3ccecad7db17aab037822b70b82209d9e202e161b7e858/exec: Conflict ("Container 42f05f3cf4b828027a3ccecad7db17aab037822b70b82209d9e202e161b7e858 is not running")