I had the same same error but the cause was simple - user didn't have permission to upload to the repo. This is clear from the gradle debug trace below. The plugin does PUT gets a 403 and for some reason tries the PUT again. The 2nd PUT results in the Broken Pipe. Whatever, the problem was solved by granting the user upload permission, PUT succeeds on 1st attempt. (gradle artifactory plugin 4.4.0, artifactory 4.11.0)
10:14:21.510 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Uploading artifacts to Artifactory at 'http://xxxx:8081/artifactory' 10:14:21.510 [LIFECYCLE] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Deploying artifact: http://xxxx:8081/artifactory/libs-release-local/org/xxxx.jar 10:14:21.517 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Get connection for route {}->http://xxxx:8081 10:14:21.517 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnectionOperator] Connecting to xxxx:8081 10:14:21.518 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match 10:14:21.518 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context 10:14:21.518 [DEBUG] [org.apache.http.client.protocol.RequestTargetAuthentication] Target auth state: UNCHALLENGED 10:14:21.518 [DEBUG] [org.apache.http.client.protocol.RequestProxyAuthentication] Proxy auth state: UNCHALLENGED 10:14:21.518 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Attempt 1 to execute request 10:14:21.518 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: GET /artifactory/api/system/version HTTP/1.1 10:14:21.521 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 200 OK 10:14:21.521 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Connection can be kept alive indefinitely 10:14:21.522 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@252f2de5 10:14:21.522 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Connection can be kept alive indefinitely 10:14:21.522 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Version result: {"version":"4.11.0","revision":"40239","addons":[],"license":"Artifactory OSS"} 10:14:21.523 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Full Artifact Http path: PUT http://xxxx:8081/artifactory/libs-release-local/org/xxxx.jar;build.timestamp=1472026458568;build.name=xxxx;build.number=1472026458820 HTTP/1.1 @Http Headers: [X-Checksum-Sha1: b4dfb2a45625237baf5b238a54be5eab59840915, X-Checksum-Md5: aa38c8b7e9334341d460c6195f8d4cfe] 10:14:21.523 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Get connection for route {}->http://xxxx:8081 10:14:21.523 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Stale connection check 10:14:21.525 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match 10:14:21.525 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context 10:14:21.526 [DEBUG] [org.apache.http.client.protocol.RequestTargetAuthentication] Target auth state: UNCHALLENGED 10:14:21.526 [DEBUG] [org.apache.http.client.protocol.RequestProxyAuthentication] Proxy auth state: UNCHALLENGED 10:14:21.527 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Attempt 1 to execute request 10:14:21.527 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: PUT /artifactory/libs-release-local/org/xxxx.jar;build.timestamp=1472026458568;build.name=xxxx;build.number=1472026458820 HTTP/1.1 10:14:21.531 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 403 Forbidden 10:14:21.531 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Connection can be kept alive indefinitely 10:14:21.533 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Releasing connection org.apache.http.impl.conn.ManagedClientConnectionImpl@139fb628 10:14:21.533 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Connection can be kept alive indefinitely 10:14:21.545 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Failed checksum deploy of checksum 'b4dfb2a45625237baf5b238a54be5eab59840915' with statusCode: 403 10:14:21.546 [DEBUG] [org.jfrog.gradle.plugin.artifactory.task.BuildInfoBaseTask] Full Artifact Http path: PUT http://xxxx:8081/artifactory/libs-release-local/org/xxxx.jar;build.timestamp=1472026458568;build.name=xxxx;build.number=1472026458820 HTTP/1.1 @Http Headers: [X-Checksum-Sha1: b4dfb2a45625237baf5b238a54be5eab59840915, X-Checksum-Md5: aa38c8b7e9334341d460c6195f8d4cfe] 10:14:21.546 [DEBUG] [org.apache.http.impl.conn.BasicClientConnectionManager] Get connection for route {}->http://xxxx:8081 10:14:21.546 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Stale connection check 10:14:21.548 [DEBUG] [org.apache.http.client.protocol.RequestAddCookies] CookieSpec selected: best-match 10:14:21.548 [DEBUG] [org.apache.http.client.protocol.RequestAuthCache] Auth cache not set in the context 10:14:21.548 [DEBUG] [org.apache.http.client.protocol.RequestTargetAuthentication] Target auth state: UNCHALLENGED 10:14:21.548 [DEBUG] [org.apache.http.client.protocol.RequestProxyAuthentication] Proxy auth state: UNCHALLENGED 10:14:21.548 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Attempt 1 to execute request 10:14:21.549 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Sending request: PUT /artifactory/libs-release-local/org/xxxx.jar;build.timestamp=1472026458568;build.name=xxxx;build.number=1472026458820 HTTP/1.1 10:14:21.550 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Receiving response: HTTP/1.1 100 Continue 10:14:21.556 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Connection 0.0.0.0:50290<->10.11.16.35:8081 closed 10:14:21.556 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Closing the connection. 10:14:21.556 [DEBUG] [org.apache.http.impl.conn.DefaultClientConnection] Connection 0.0.0.0:50290<->10.11.16.35:8081 closed 10:14:21.557 [INFO] [org.apache.http.impl.client.DefaultHttpClient] I/O exception (java.net.SocketException) caught when processing request: Broken pipe 10:14:21.557 [DEBUG] [org.apache.http.impl.client.DefaultHttpClient] Broken pipe java.net.SocketException: Broken pipe at java.net.SocketOutputStream.socketWrite0(Native Method) at java.net.SocketOutputStream.socketWrite(SocketOutputStream.java:109) at java.net.SocketOutputStream.write(SocketOutputStream.java:153) -- View this message in context: http://forums.jfrog.org/Artifactory-Gradle-plugin-giving-broken-pipe-tp7580503p7581172.html Sent from the Artifactory - Users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ _______________________________________________ Artifactory-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/artifactory-users
