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

pipe and redirect hangs #210

Open
madsbredholt opened this issue Mar 5, 2020 · 4 comments
Open

pipe and redirect hangs #210

madsbredholt opened this issue Mar 5, 2020 · 4 comments
Assignees

Comments

@madsbredholt
Copy link

madsbredholt commented Mar 5, 2020

We are unable to pipe and redirect,(stdout, stderr hangs) data out of docker, due to chances done in the sematext logagent.

This became an issue for us after upgrading the logagent from version 2.0.184 to 3.0.18, 3.0.21

The following can be done to recreate the problem locally.

The following is an example that hangs on ouput.

docker run -i --rm -e LOGSENE_ENABLED=false --log-driver none mysql:5.7.27 sh -c ”mysqldump ...” > dump.sql 2> dump_err.log

Our environment details:

AWS CentOs 7 AMI

Docker Engine 19.03.1 and 19.03.5

@adnanrahic adnanrahic self-assigned this Mar 5, 2020
@megastef
Copy link
Contributor

megastef commented Mar 6, 2020

Hi, when you use no log diver, or any other log driver than json-file or journald, you probably don't need to set LOGSENE_ENABLED=false.

Please try:

docker run -i --rm --log-driver none mysql:5.7.27 sh -c ”mysqldump ...” > dump.sql 2> dump_err.log

I assume Logagent will not collect the output, and will not make a detach API call for the container.

@madsbredholt
Copy link
Author

madsbredholt commented Mar 6, 2020 via email

@otisg
Copy link
Member

otisg commented Mar 16, 2020

Any luck with this @madsbredholt ?

@madsbredholt
Copy link
Author

madsbredholt commented Mar 17, 2020 via email

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

No branches or pull requests

4 participants