question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Socket Exception when building

See original GitHub issue

Hi,

I cannot build an image. I get:

[INFO] Building tar: /Users/clement/Projects/vert.x/vertx-microservices-examples/aggregation-http/A/target/docker/vertx-microservices-example/aggregation-http-A/1.0-SNAPSHOT/tmp/docker-build.tar
[INFO] I/O exception (java.net.SocketException) caught when processing request to {s}->https://192.168.99.100:2376: Broken pipe
[INFO] Retrying request to {s}->https://192.168.99.100:2376
[INFO] I/O exception (java.net.SocketException) caught when processing request to {s}->https://192.168.99.100:2376: Broken pipe
[INFO] Retrying request to {s}->https://192.168.99.100:2376
[INFO] I/O exception (java.net.SocketException) caught when processing request to {s}->https://192.168.99.100:2376: Broken pipe
[INFO] Retrying request to {s}->https://192.168.99.100:2376
[ERROR] DOCKER> Broken pipe

Docker is running fine (I’m using a docker-machine).

I’m using a docker machine, my env is:

set -gx DOCKER_TLS_VERIFY "1";
set -gx DOCKER_HOST "tcp://192.168.99.100:2376";
set -gx DOCKER_CERT_PATH "/Users/clement/.docker/machine/machines/dev";
set -gx DOCKER_MACHINE_NAME "dev";

The debug mode does not give much details:

[DEBUG] http-outgoing-6 >> "[write] I/O error: Connection has been shutdown: javax.net.ssl.SSLException: java.net.SocketException: Broken pipe"
[DEBUG] http-outgoing-6: Shutdown connection
[DEBUG] Connection discarded
[DEBUG] http-outgoing-6: Close connection
[DEBUG] Connection released: [id: 6][route: {s}->https://192.168.99.100:2376][total kept alive: 3; route allocated: 3 of 100; total allocated: 3 of 20]
[ERROR] DOCKER> Broken pipe

Any idea ?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14

github_iconTop GitHub Comments

1reaction
rhusscommented, Mar 31, 2016

Ok fixed it. Now the error message looks like

[INFO] ------------------------------------------------------------------------
[INFO] BUILD FAILURE
[INFO] ------------------------------------------------------------------------
[INFO] Total time: 3.489 s
[INFO] Finished at: 2016-03-31T22:44:19+02:00
[INFO] Final Memory: 32M/329M
[INFO] ------------------------------------------------------------------------
[ERROR] Failed to execute goal io.fabric8:docker-maven-plugin:0.14.3-SNAPSHOT:build (default-cli) on project A: Execution default-cli of goal io.fabric8:docker-maven-plugin:0.14.3-SNAPSHOT:build failed: Given repository name 'vertx_acme_example/A:1.0-SNAPSHOT' is invalid:
[ERROR] * image part 'A' doesn't match allowed pattern '[a-z0-9]+(?:(?:[._]|__|[-]*)[a-z0-9]+)*'
[ERROR] See http://bit.ly/docker_image_format for more details
[ERROR] -> [Help 1]

Hope that its a bit clearer now 😉

0reactions
cescoffiercommented, Apr 1, 2016

Great thanks @rhuss !

Much better than the original broken pipe.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Handle Java SocketException - Baeldung
The most common cause of SocketException is writing or reading data to or from a closed socket connection. Another cause of it is...
Read more >
What's causing my java.net.SocketException: Connection reset?
The Exception means that the socket was closed unexpectedly from the other side. Since you are calling a web service, ...
Read more >
SocketException (Java Platform SE 7 ) - Oracle Help Center
Class SocketException​​ Thrown to indicate that there is an error creating or accessing a Socket.
Read more >
java.net.SocketException in Java with Examples
This SocketException occurs on the server-side when the client closed the socket connection before the response could be returned over the ...
Read more >
SocketException when connection to Visual Studio
The only way to get ridd of this error is to restart Windows. Maybe it works to close unity and wait for socket...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found