Cannot accept connection from remote address 1.0-rc-3


(InverseBit) #1

I’ve upgraded to Gradle 1.0-rc-3 and my build is failing with the errors below, the 109.xxx.xxx.xxx IP address is the address of my build machine and the error occurs also with the --no-daemon option.

Any ideas what is going wrong here?

%gradle war --no-daemon
:buildSrc:clean
:buildSrc:compileJava UP-TO-DATE
:buildSrc:compileGroovy
Cannot accept connection from remote address /109.xxx.xxx.xxx.
Could not dispatch message [EndOfStreamEvent]. Discarding message.
org.gradle.messaging.remote.internal.MessageIOException: Could not write message [EndOfStreamEvent] to 'localhost/127.0.0.1:36698'.
 at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:108)
 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)
 at org.gradle.messaging.dispatch.AsyncDispatch$1.run(AsyncDispatch.java:72)
 at org.gradle.messaging.concurrent.DefaultExecutorFactory$StoppableExecutorImpl$1.run(DefaultExecutorFactory.java:66)
 at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1110)
 at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:603)
 at java.lang.Thread.run(Thread.java:679)
Caused by: java.io.IOException: Broken pipe
 at sun.nio.ch.FileDispatcher.write0(Native Method)
 at sun.nio.ch.SocketDispatcher.write(SocketDispatcher.java:47)
 at sun.nio.ch.IOUtil.writeFromNativeBuffer(IOUtil.java:122)
 at sun.nio.ch.IOUtil.write(IOUtil.java:78)
 at sun.nio.ch.SocketChannelImpl.write(SocketChannelImpl.java:352)
 at org.gradle.messaging.remote.internal.inet.SocketConnection$SocketOutputStream.flush(SocketConnection.java:223)
 at java.io.DataOutputStream.flush(DataOutputStream.java:123)
 at java.io.ObjectOutputStream$BlockDataOutputStream.flush(ObjectOutputStream.java:1803)
 at java.io.ObjectOutputStream.flush(ObjectOutputStream.java:715)
 at org.gradle.messaging.remote.internal.Message.send(Message.java:31)
 at org.gradle.messaging.remote.internal.DefaultMessageSerializer.write(DefaultMessageSerializer.java:35)
 at org.gradle.messaging.remote.internal.inet.SocketConnection.dispatch(SocketConnection.java:105)
 ... 9 more

(Luke Daley) #2

What version did you upgrade from?


(InverseBit) #3

1.0-milestone-5


(InverseBit) #4

I logged an issue for this - GRADLE-2265


(Adam Murdoch) #5

This should be fixed now. Can you try running with a recent nightly build: http://gradle.org/nightly?


(InverseBit) #6

I built from source and works now thanks.