org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to 'localhost/127.0.0.1:25498'.

Gradle Issues | Phill | 5 years ago
  1. 0

    With the latest RC my build has stopped working with the errors below. The build is running within a FreeBSD jail and connections are from the IP address of the jail and not 127.0.0.1. {noformat} 18:58:56.819 [DEBUG] [org.gradle.process.internal.DefaultExecHandle] Started Gradle Worker 1. 18:58:57.029 [QUIET] [system.out] 18:58:57.028 [DEBUG] [org.gradle.logging.internal.DefaultLoggingConfigurer] Finished configuring with level: DEBUG, configurers: [org.gradle.logging.internal.OutputEventRenderer@4c5e176f, org.gradle.logging.internal.slf4j.Slf4jLoggingConfigurer@35549f94, org.gradle.logging.internal.JavaUtilLoggingConfigurer@46b8c8e6] 18:58:57.118 [QUIET] [system.out] 18:58:57.118 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Attempting to connect to [09e8ee82-dd94-4155-bc6a-b36a3118d60f port:25498, addresses:[localhost/127.0.0.1]]. 18:58:57.119 [QUIET] [system.out] 18:58:57.119 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Trying to connect to address localhost/127.0.0.1. 18:58:57.123 [QUIET] [system.out] 18:58:57.122 [DEBUG] [org.gradle.messaging.remote.internal.inet.TcpOutgoingConnector] Connected to address localhost/127.0.0.1. 18:58:57.124 [ERROR] [org.gradle.messaging.remote.internal.inet.TcpIncomingConnector] Cannot accept connection from remote address /109.xxx.xx.xx. 18:58:57.183 [QUIET] [system.out] 18:58:57.182 [DEBUG] [org.gradle.process.internal.child.ActionExecutionWorker] Starting Gradle Worker 1. 18:58:57.191 [ERROR] [system.err] 18:58:57.190 [ERROR] [org.gradle.messaging.remote.internal.MessageHub] Could not dispatch message [EndOfStreamEvent]. Discarding message. 18:58:57.192 [ERROR] [system.err] org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to 'localhost/127.0.0.1:25498'. 18:58:57.192 [ERROR] [system.err] at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108) 18:58:57.192 [QUIET] [system.out] 18:58:57.191 18:58:57.193 [ERROR] [system.err] at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35) 18:58:57.194 [QUIET] [system.out] [DEBUG] [org.gradle.messaging.remote.internal.SendProtocol] Starting producer 837cb4e4-f36a-4996-989e-ea70636a9556 18:58:57.195 [ERROR] [system.err] at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29) 18:58:57.196 [QUIET] [system.out] 18:58:57.195 [DEBUG] [org.gradle.messaging.remote.internal.Router] Received route available. Message: [ProducerAvailable id: 837cb4e4-f36a-4996-989e-ea70636a9556, displayName: message client, channel: org.gradle.api.internal.tasks.compile.daemon.CompilerDaemonClientProtocol] 18:58:57.197 [ERROR] [system.err] at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132) 18:58:57.199 [ERROR] [system.err] at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33) 18:58:57.200 [ERROR] [system.err] at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72) 18:58:57.201 [ERROR] [system.err] at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66) 18:58:57.201 [ERROR] [system.err] at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110) 18:58:57.202 [ERROR] [system.err] at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603) 18:58:57.203 [ERROR] [system.err] at java.lang.Thread.run(Thread.java:679) 18:58:57.203 [ERROR] [system.err] Caused by: java.io.IOException: Broken pipe 18:58:57.204 [ERROR] [system.err] at sun.nio.ch.FileDispatcher.write0(Native Method) 18:58:57.205 [ERROR] [system.err] at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47) 18:58:57.205 [ERROR] [system.err] at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122) 18:58:57.206 [ERROR] [system.err] at sun.nio.ch.IOUtil.write(IOUtil.java:78) 18:58:57.207 [ERROR] [system.err] at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:352) 18:58:57.208 [ERROR] [system.err] at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223) 18:58:57.209 [ERROR] [system.err] at java.io.DataOutputStream.flush(DataOutputStream.java:123) 18:58:57.210 [ERROR] [system.err] at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803) 18:58:57.211 [ERROR] [system.err] at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715) 18:58:57.212 [ERROR] [system.err] at org.gradle.messaging.remote.internal.Message.send(Message.java:31) 18:58:57.213 [ERROR] [system.err] at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35) 18:58:57.213 [ERROR] [system.err] at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105) 18:58:57.214 [ERROR] [system.err] ... 9 more {noformat}

    Gradle Issues | 5 years ago | Phill
    org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to 'localhost/127.0.0.1:25498'.
  2. 0

    Failure serializing ConfigException with Gradle

    GitHub | 3 years ago | onacit
    org.gradle.messaging.remote.internal.MessageIOException: Could not write message [ChannelMessage channel: org.gradle.api.internal.tasks.testing.TestResultProcessor, payload: [MethodInvocation method: failure()]] to '/127.0.0.1:5349'.
  3. 0

    Gradle build runner complains about connection problems – TeamCity

    jetbrains.com | 8 months ago
    org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:34240'.
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    gradle-user - Test Task failure due to broken pipe

    nabble.com | 8 months ago
    org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to '/127.0.0.1:50184'. at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:99) at org.gradle.messaging.remote.internal.DelegatingConnection.dispatch(DelegatingConnection.java:35) at org.gradle.messaging.dispatch.FailureHandlingDispatch.dispatch(FailureHandlingDispatch.java:29) at org.gradle.messaging.dispatch.AsyncDispatch.dispatchMessages(AsyncDispatch.java:132) at org.gradle.messaging.dispatch.AsyncDispatch.access$000(AsyncDispatch.java:33)

    1 unregistered visitors

    Root Cause Analysis

    1. org.gradle.messaging.remote.internal.MessageIOException

      Could not write message [EndOfStreamEvent] to 'localhost/127.0.0.1:25498'.

      at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch()
    2. Gradle Core
      SocketConnection.dispatch
      1. org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
      1 frame