Skip to content
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

STDOUT propagation is broken after termination signal #169

Open
david-garcia-garcia opened this issue Feb 20, 2024 · 5 comments
Open

STDOUT propagation is broken after termination signal #169

david-garcia-garcia opened this issue Feb 20, 2024 · 5 comments
Assignees
Labels
bug Something isn't working

Comments

@david-garcia-garcia
Copy link

Describe the bug
After docker sends the termination signal to the container, any STDOUT from the hosted process is not propagated anymore to the container.

To Reproduce
Docker compose project here: https://github.com/david-garcia-garcia/dockernosigterm

In the dockerfile you have two entrypoints, one with LogMonitor the other without it.

Without log monitor, when you shutdown the container you get this output in the container stdout:

2024-02-20 21:57:43 True
2024-02-20 21:57:43 Waiting for console control event...
2024-02-20 21:57:47 Task progress: 1 of 20
2024-02-20 21:57:48 Task progress: 2 of 20
2024-02-20 21:57:49 Task progress: 3 of 20
2024-02-20 21:57:50 Task progress: 4 of 20
2024-02-20 21:57:51 Task progress: 5 of 20
2024-02-20 21:57:52 Task progress: 6 of 20
2024-02-20 21:57:53 Task progress: 7 of 20
2024-02-20 21:57:54 Task progress: 8 of 20
2024-02-20 21:57:55 Task progress: 9 of 20
2024-02-20 21:57:56 Task progress: 10 of 20
2024-02-20 21:57:57 Task progress: 11 of 20
2024-02-20 21:57:58 Task progress: 12 of 20
2024-02-20 21:57:59 Task progress: 13 of 20
2024-02-20 21:58:00 Task progress: 14 of 20
2024-02-20 21:58:01 Task progress: 15 of 20
2024-02-20 21:58:02 Task progress: 16 of 20
2024-02-20 21:58:03 Task progress: 17 of 20
2024-02-20 21:58:04 Task progress: 18 of 20
2024-02-20 21:58:05 Task progress: 19 of 20
2024-02-20 21:58:06 Task progress: 20 of 20

When using the entry point with LogMonitor.exe you get nothing.

Expected behavior
Output from the hosted process is properly propagated until the hosted process totally terminates.

@david-garcia-garcia david-garcia-garcia added the bug Something isn't working label Feb 20, 2024
@iankingori iankingori self-assigned this Feb 29, 2024
@iankingori
Copy link
Contributor

@CharityKathure is this resolved by: #165?

@david-garcia-garcia
Copy link
Author

@iankingori I tested and can confirm the issue still exists.

Expected behavior:

image

Current behavior:

image

LogMonitor is completely loosing all output/logs after termination signal has been sent.

@iankingori
Copy link
Contributor

Thanks for testing @david-garcia-garcia . Adding it to priority items for the next patch release.

@CharityKathure CharityKathure self-assigned this Sep 5, 2024
@Marucik
Copy link

Marucik commented Nov 27, 2024

Hi. Any updates on this?

@CharityKathure
Copy link
Contributor

@Marucik This issue is being addressed. We are currently investigating the root cause and working on a fix. Thank you for bringing this to our attention.

cc @iankingori

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants