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

IO Error while requesting logs: org.apache.http.ConnectionClosedException #1369

Open
theangrydev opened this issue Sep 1, 2020 · 5 comments

Comments

@theangrydev
Copy link

Description

Intermittently, I see the following IO error which makes the plugin fail to start my container:

[ERROR]  [DOCKER> IO Error while requesting logs: org.apache.http.ConnectionClosedException: Premature end of chunk coded message body: closing chunk expected Thread-135
[ERROR]  [DOCKER> [ibmcom/mq:9.1.3.0] "ibm-mq-9": Timeout after 20076 ms while waiting on log out 'wait for message'
[ERROR]  [DOCKER> Error occurred during container startup, shutting down...

I think the plugin should be more resilient to this kind of IO error and continue polling the logs.

Info

  • d-m-p version : 0.33.0
  • Maven version (mvn -v) : 3.3.9
  • Docker version : 19.03.12
  • If it's a bug, how to reproduce : run docker-maven-plugin:start with a config that waits for a log line
@rhuss
Copy link
Collaborator

rhuss commented Sep 1, 2020

yes, this can be probably improved indeed. happy for any PR tackling this, I probably don't have enough spare room to work on it.

@naturzukunft
Copy link

i got this error everytime. on:
Distributor ID: Ubuntu
Description: Ubuntu 20.04.1 LTS
Release: 20.04
Codename: focal

Apache Maven 3.6.3 (cecedd343002696d0abb50b32b541b8a6ba2883f)
Maven home: /opt/maven
Java version: 11.0.7, vendor: Oracle Corporation, runtime: xxxxxxxxxxxxxx
Default locale: en_US, platform encoding: UTF-8
OS name: "linux", version: "5.4.0-51-generic", arch: "amd64", family: "unix"

Is there a workarround?

@luxmeter
Copy link

luxmeter commented Nov 16, 2020

Same issue here. My specs:

❯ mvn -version
Apache Maven 3.5.4 (1edded0938998edf8bf061f1ceb3cfdeccf443fe; 2018-06-17T20:33:14+02:00)
Maven home: /usr/local/Cellar/maven/3.5.4/libexec
Java version: 1.8.0_201, vendor: Oracle Corporation, runtime: /Library/Java/JavaVirtualMachines/jdk1.8.0_201.jdk/Contents/Home/jre
Default locale: en_DE, platform encoding: UTF-8
OS name: "mac os x", version: "10.14.6", arch: "x86_64", family: "mac"

Docker Desktop version: 2.5.0.1
Docker Engine version: 19.03.13
Maven plugin verison: 0.34.1

Do we know what causes the issue?
@naturzukunft which Docker version do you use?

@mdsardar
Copy link

mdsardar commented Jul 16, 2021

Anyone still facing this issue still? Anyone seeing this fixed and any help?
My Specs:

mvn version
Apache Maven 3.8.1 (05c21c65bdfed0f71a2f2ada8b84da59348c4c5d)
Maven home: /opt/homebrew/Cellar/maven/3.8.1/libexec
Java version: 1.8.0_292, vendor: Azul Systems, Inc., runtime: /Library/Java/JavaVirtualMachines/zulu-8.jdk/Contents/Home/jre
Default locale: en_IN, platform encoding: US-ASCII
OS name: "mac os x", version: "10.16", arch: "x86_64", family: "mac"

Docker engine: 20.10.6
Docker desktop: 3.3.3(64133)
Maven plugin ver:

@christopher-nash
Copy link

In case it is helpful to anyone, an engineer on our team was running into this issue on his M1 Mac. It turned out it was just a timeout waiting for the container to launch. We increased the wait timeout and he was able to move past this issue. We suspect that it is because the container we were attempting to launch (localstack) was just taking longer to start due to the Rosetta virtualization on the M1 architecture. Thats a band-aid for it, but it at least may get someone over the headache temporarily.

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

6 participants