Skip to content
This repository has been archived by the owner on Feb 10, 2021. It is now read-only.

"endpoint requires a more connection" #63

Open
AstraLuma opened this issue Dec 30, 2019 · 2 comments
Open

"endpoint requires a more connection" #63

AstraLuma opened this issue Dec 30, 2019 · 2 comments

Comments

@AstraLuma
Copy link

When attempting to build an image, I get this extremely nonsensical error:

>>> podcraft.poddir.build_server(pm, "/home/astraluma/.mc/qwi", {})
Traceback (most recent call last):
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/podman/libs/images.py", line 138, in build
    result = podman.BuildImage(config)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/varlink/client.py", line 89, in _wrapped
    return self._call(method.name, *args, **kwargs)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/varlink/client.py", line 146, in _call
    (message, more) = self._next_varlink_message()
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/varlink/client.py", line 116, in _next_varlink_message
    raise e
varlink.error.VarlinkError: {'parameters': {'reason': 'endpoint requires a more connection'}, 'error': 'io.podman.ErrorOccurred'}

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
  File "/home/astraluma/code/mc/podcraft/podcraft/poddir.py", line 57, in build_server
    'podcraft.root': serverdir,
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/podman/libs/images.py", line 138, in build
    result = podman.BuildImage(config)
  File "/home/astraluma/.virtualenvs/mc/podcraft/lib/python3.7/site-packages/podman/client.py", line 109, in __exit__
    raise error_factory(e)
podman.libs.errors.ErrorOccurred: {'parameters': {'reason': 'endpoint requires a more connection'}, 'error': 'io.podman.ErrorOccurred'}

The invocation is

client.images.build(
    buildArgs=buildargs,  # Dictionary, empty
    contextDir=buildroot,  # String, full path to a .tar
    dockerfile=dockerfile,  # String, full path to Dockerfile
    tags="TODO",
    annotations={
        'podcraft.root': serverdir,  # String, a full path (doesn't exit)
    },
)

Best as I can read the go code (don't know go) and can google, this sounds like the particulars of how python-podman is constructing the varlink invocation?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant