fabric8io / docker-maven-plugin

Maven plugin for running and creating Docker images
https://dmp.fabric8.io
Apache License 2.0
1.89k stars 642 forks source link

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

Open theangrydev opened 4 years ago

theangrydev commented 4 years ago

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

rhuss commented 4 years ago

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 commented 4 years ago

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 commented 4 years ago

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 commented 3 years ago

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 commented 2 years ago

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.