-
-
Notifications
You must be signed in to change notification settings - Fork 191
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can't create new container ... #237
Comments
also update command : `exegol update -vvv [D] Running update module [D] Loading git at /root/.exegol/exegol-resources |
pipx upgrade exegol |
Describe the bug
I successfully created a first container. But now when I want to create a new one, I constantly get this message: "Your version of Exegol Wrapper is not up to date!" it goes around in a loop. I have to stop it CTRL-C then I have an error report that I cannot interpret (always the same).
when I stop I have this:
`[] Creating new exegol container
[+] Exegol container successfully created !
[] Starting container machine
[] Your start-up sequence takes time, your my-resource setup configuration may be significant.
[] [Tips] If you want to skip startup update, you can use CTRL+C and spawn a shell immediately. (Startup sequence will continue in background)
[!] User skip startup status updates. Spawning a shell now.
[-] It seems that something unexpected happened ...
[-] To draw our attention to the problem and allow us to fix it, you can share your error with us (by copying and pasting it with this syntax:
<error>
) by creating a GitHub issue at this address:https://github.com/ThePorgs/Exegol/issues
[+] Thank you for your collaboration!
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolManager.py:397 │
│ in __loadOrCreateContainer │
│ │
│ 394 │ │ │ │ │ │ │ │ raise NotImplemented │
│ 395 │ │ │ │ else: │
│ 396 │ │ │ │ │ assert container_tag is not None │
│ ❱ 397 │ │ │ │ │ cls.__container = DockerUtils().getContainer(container_tag) │
│ 398 │ │ except (ObjectNotFound, IndexError): │
│ 399 │ │ │ # ObjectNotFound is raised when the container_tag provided by the user does │
│ 400 │ │ │ # IndexError is raise when no container exist (raised from TUI interactive s │
│ │
│ ╭───────────────────────────────── locals ──────────────────────────────────╮ │
│ │ cls = <class 'exegol.manager.ExegolManager.ExegolManager'> │ │
│ │ container_tag = 'machine' │ │
│ │ container_tags = None │ │
│ │ multiple = False │ │
│ │ must_exist = False │ │
│ │ override_container = None │ │
│ ╰───────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/utils/DockerUtils.py:189 in │
│ getContainer │
│ │
│ 186 │ │ │ │ lowered_tag = tag.lower() │
│ 187 │ │ │ │ if lowered_tag != tag: │
│ 188 │ │ │ │ │ return self.getContainer(lowered_tag) │
│ ❱ 189 │ │ │ raise ObjectNotFound │
│ 190 │ │ # Filter results with exact name matching │
│ 191 │ │ for c in container: │
│ 192 │ │ │ if c.name == f"exegol-{tag}": │
│ │
│ ╭────────────────────────────────── locals ───────────────────────────────────╮ │
│ │ container = [] │ │
│ │ self = <exegol.utils.DockerUtils.DockerUtils object at 0x7fddd89297f0> │ │
│ │ tag = 'machine' │ │
│ ╰─────────────────────────────────────────────────────────────────────────────╯ │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
ObjectNotFound
During handling of the above exception, another exception occurred:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/api/client.py:275 in │
│ _raise_for_status │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/requests/models.py:1024 in │
│ raise_for_status │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
HTTPError: 409 Client Error: Conflict for url: http+docker://localhost/v1.47/containers/b1c689899b9f7cb5bf1eb0ee1556c42b3c99a609c9963bd31339f936cc761fb8/exec
The above exception was the direct cause of the following exception:
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolController.py:70 │
│ in main │
│ │
│ 67 │ │ # Set logger verbosity depending on user input │
│ 68 │ │ ExeLog.setVerbosity(ParametersManager().verbosity, ParametersManager().quiet) │
│ 69 │ │ # Start Main controller & Executing action selected by user CLI │
│ ❱ 70 │ │ ExegolController.call_action() │
│ 71 │ except KeyboardInterrupt: │
│ 72 │ │ logger.empty_line() │
│ 73 │ │ logger.info("Exiting") │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolController.py:50 │
│ in call_action │
│ │
│ 47 │ │ │ # Fetch main operation function │
│ 48 │ │ │ main_action = cls.__action() │
│ 49 │ │ │ # Execute main function │
│ ❱ 50 │ │ │ main_action() │
│ 51 │ │ else: │
│ 52 │ │ │ # TODO review required parameters │
│ 53 │ │ │ logger.error(f"These parameters are mandatory but missing: {','.join(missing │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ cls = <class 'exegol.manager.ExegolController.ExegolController'> │ │
│ │ main_action = <bound method ExegolManager.start of <class │ │
│ │ 'exegol.manager.ExegolManager.ExegolManager'>> │ │
│ │ missing_params = [] │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolManager.py:75 in │
│ start │
│ │
│ 72 │ │ cls.__interactive_mode = not bool(ParametersManager().containertag) │
│ 73 │ │ if not cls.__interactive_mode: │
│ 74 │ │ │ logger.info("Arguments supplied with the command, skipping interactive mode" │
│ ❱ 75 │ │ container = cls.__loadOrCreateContainer() │
│ 76 │ │ assert container is not None and type(container) is ExegolContainer │
│ 77 │ │ if not container.isNew(): │
│ 78 │ │ │ # Check and warn user if some parameters don't apply to the current session │
│ │
│ ╭────────────────────────── locals ──────────────────────────╮ │
│ │ cls = <class 'exegol.manager.ExegolManager.ExegolManager'> │ │
│ ╰────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolManager.py:405 │
│ in __loadOrCreateContainer │
│ │
│ 402 │ │ │ if must_exist: │
│ 403 │ │ │ │ logger.warning(f"The container named '{container_tag}' has not been foun │
│ 404 │ │ │ │ return [] if multiple else None │
│ ❱ 405 │ │ │ return cls.__createContainer(container_tag) │
│ 406 │ │ assert cls.__container is not None │
│ 407 │ │ return cast(Union[Optional[ExegolContainer], List[ExegolContainer]], cls.__conta │
│ 408 │
│ │
│ ╭───────────────────────────────── locals ──────────────────────────────────╮ │
│ │ cls = <class 'exegol.manager.ExegolManager.ExegolManager'> │ │
│ │ container_tag = 'machine' │ │
│ │ container_tags = None │ │
│ │ multiple = False │ │
│ │ must_exist = False │ │
│ │ override_container = None │ │
│ ╰───────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/manager/ExegolManager.py:526 │
│ in __createContainer │
│ │
│ 523 │ │ │ │ │ │ "read CLI options with [green]exegol start -h[/green]") │
│ 524 │ │ │
│ 525 │ │ container = DockerUtils().createContainer(model) │
│ ❱ 526 │ │ container.postCreateSetup() │
│ 527 │ │ return container │
│ 528 │ │
│ 529 │ @classmethod │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ cls = <class 'exegol.manager.ExegolManager.ExegolManager'> │ │
│ │ config = <exegol.model.ContainerConfig.ContainerConfig object at 0x7fddd72aad60> │ │
│ │ container = <exegol.model.ExegolContainer.ExegolContainer object at 0x7fddd729c100> │ │
│ │ image = full (3.1.5/3.1.5 amd64) - 56.0GB - ([green]Up to date (v.3.1.5)[/green], │ │
│ │ 23.5GB) │ │
│ │ model = <exegol.model.ExegolContainerTemplate.ExegolContainerTemplate object at │ │
│ │ 0x7fddd729ab20> │ │
│ │ name = 'machine' │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/model/ExegolContainer.py:313 │
│ in postCreateSetup │
│ │
│ 310 │ │ Operation to be performed after creating a container │
│ 311 │ │ :return: │
│ 312 │ │ """ │
│ ❱ 313 │ │ self.__applyX11ACLs() │
│ 314 │ │ # if not a temporary container, apply custom config │
│ 315 │ │ if not is_temporary: │
│ 316 │ │ │ # Update entrypoint script in the container │
│ │
│ ╭──────────────────────────────────────── locals ────────────────────────────────────────╮ │
│ │ is_temporary = False │ │
│ │ self = <exegol.model.ExegolContainer.ExegolContainer object at 0x7fddd729c100> │ │
│ ╰────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/model/ExegolContainer.py:399 │
│ in __applyX11ACLs │
│ │
│ 396 │ │ │ # Check if the host has a xauth entry corresponding to the current display. │
│ 397 │ │ │ if xauthEntry: │
│ 398 │ │ │ │ logger.debug(f"Adding xauth cookie to container: {xauthEntry}") │
│ ❱ 399 │ │ │ │ self.exec(f"xauth add {xauthEntry}", as_daemon=False, quiet=True) │
│ 400 │ │ │ │ logger.debug(f"Removing {tmpXauthority}") │
│ 401 │ │ │ │ os.remove(tmpXauthority) │
│ 402 │ │ │ else: │
│ │
│ ╭──────────────────────────────────────── locals ─────────────────────────────────────────╮ │
│ │ _ = 14 │ │
│ │ display_host = 'localhost' │ │
│ │ self = <exegol.model.ExegolContainer.ExegolContainer object at 0x7fddd729c100> │ │
│ │ tmpXauthority = '/tmp/tmp9wu_rzvq' │ │
│ │ xauthEntry = 'localhost:10 MIT-MAGIC-COOKIE-1 21dd5df916d4f6c7f4f1a9152b2942ea\n' │ │
│ ╰─────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/exegol/model/ExegolContainer.py:188 │
│ in exec │
│ │
│ 185 │ │ │ if logger.getEffectiveLevel() > logger.VERBOSE and not ParametersManager().d │
│ 186 │ │ │ │ logger.info("Hint: use verbose mode to see command output (-v).") │
│ 187 │ │ exec_payload, str_cmd = ExegolContainer.formatShellCommand(command, quiet) │
│ ❱ 188 │ │ stream = self.__container.exec_run(exec_payload, environment={"CMD": str_cmd, "D │
│ 189 │ │ if as_daemon and not quiet: │
│ 190 │ │ │ logger.success("Command successfully executed in background") │
│ 191 │ │ else: │
│ │
│ ╭─────────────────────────────────────────── locals ───────────────────────────────────────────╮ │
│ │ as_daemon = False │ │
│ │ command = 'xauth add localhost:10 MIT-MAGIC-COOKIE-1 │ │
│ │ 21dd5df916d4f6c7f4f1a9152b2942ea\n' │ │
│ │ exec_payload = 'zsh -c 'autoload -Uz compinit; compinit; source ~/.zshrc; eval "$CMD"'' │ │
│ │ is_tmp = False │ │
│ │ quiet = True │ │
│ │ self = <exegol.model.ExegolContainer.ExegolContainer object at 0x7fddd729c100> │ │
│ │ str_cmd = 'xauth add localhost:10 MIT-MAGIC-COOKIE-1 │ │
│ │ 21dd5df916d4f6c7f4f1a9152b2942ea\n' │ │
│ ╰──────────────────────────────────────────────────────────────────────────────────────────────╯ │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/models/containers.py:208 in │
│ exec_run │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/utils/decorators.py:19 in │
│ wrapped │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/api/exec_api.py:78 in │
│ exec_create │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/api/client.py:281 in _result │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/api/client.py:277 in │
│ _raise_for_status │
│ │
│ /root/.local/pipx/venvs/exegol/lib/python3.8/site-packages/docker/errors.py:39 in │
│ create_api_error_from_http_exception │
╰──────────────────────────────────────────────────────────────────────────────────────────────────╯
APIError: 409 Client Error for http+docker://localhost/v1.47/containers/b1c689899b9f7cb5bf1eb0ee1556c42b3c99a609c9963bd31339f936cc761fb8/exec: Conflict ("container
b1c689899b9f7cb5bf1eb0ee1556c42b3c99a609c9963bd31339f936cc761fb8 is not running")`
Steps To Reproduce
exegol start machine --vpn /config.ovpn
CTRL-C
Exegol Wrapper Version
Host OS
Linux
Configuration of the concerned container
Execution logs in debug mode
Exception
No response
Anything else?
thank you for your time, I really want to use exegol
The text was updated successfully, but these errors were encountered: