Skip to content

Terminal session unresponsive after closing the podman compose session with CTRL+C #676

@john-ghatas

Description

@john-ghatas

Describe the bug
The terminal session goes unresponsive after closing the podman compose session with CTRL+C. Running the latest devel version (1.0.7),

To Reproduce
Steps to reproduce the behavior:

  1. Bring any compose file up (pick 1 from https://github.com/docker/awesome-compose)
  2. Close it with CTRL+C
  3. Terminal session goes unresponsive

Expected behavior
Terminal keeps it's responsiveness and keeps working

Actual behavior
The terminal session either has delayed reaction to input or stops accepting any input at all

Output

❯ podman-compose -f docker-compose.yml -f docker-compose.dev.yml up --build
[...]
TypeError: expected token to be a str, received NoneType instead
[client]   | [nodemon] app crashed - waiting for file changes before starting...
^CTraceback (most recent call last):
  File "/var/home/john/.local/bin/podman-compose", line 8, in <module>
    sys.exit(main())
             ^^^^^^
  File "/var/home/john/.local/pipx/venvs/podman-compose/lib/python3.11/site-packages/podman_compose.py", line 3072, in main
exit code: -2
exit code: -2
    podman_compose.run()
  File "/var/home/john/.local/pipx/venvs/podman-compose/lib/python3.11/site-packages/podman_compose.py", line 1490, in run
    retcode = cmd(self, args)
              ^^^^^^^^^^^^^^^
  File "/var/home/john/.local/pipx/venvs/podman-compose/lib/python3.11/site-packages/podman_compose.py", line 1866, in wrapped
exit code: -2
    return func(*args, **kw)
           ^^^^^^^^^^^^^^^^^
  File "/var/home/john/.local/pipx/venvs/podman-compose/lib/python3.11/site-packages/podman_compose.py", line 2246, in compose_up
    thread.join(timeout=1.0)
  File "/usr/lib/python3.11/threading.py", line 1116, in join
    self._wait_for_tstate_lock(timeout=max(timeout, 0))
  File "/usr/lib/python3.11/threading.py", line 1132, in _wait_for_tstate_lock
    if lock.acquire(block, timeout):
       ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
KeyboardInterrupt
❯ podman --version
podman version 4.4.4
❯ podman-compose --version
podman-compose version: 1.0.7
['podman', '--version', '']
using podman version: 4.4.4
podman-compose version 1.0.7
podman --version 
podman version 4.4.4
exit code: 0

Environment:

  • OS: Fedora Silverblue 37
  • podman version: 4.4.4
  • podman compose version: Latest devel 1.0.7 (5d279c4)

Additional context

It's currently semi workable by bringing the container up with the detached (-d) flag and tailing the logs after it's brought up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions