[GRADLE-2265] Cannot accept connection from remote address in FreeBSD jail Created: 01/May/12  Updated: 04/Jan/13  Resolved: 02/May/12

Status: Resolved
Project: Gradle
Affects Version/s: 1.0-rc-3
Fix Version/s: 1.1-rc-1

Type: Bug
Reporter: Phill Assignee: Unassigned
Resolution: Fixed Votes: 0


 Description   

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.

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

Generated at Wed Jun 30 12:17:14 CDT 2021 using Jira 8.4.2#804003-sha1:d21414fc212e3af190e92c2d2ac41299b89402cf.