Details

    • Type: Task
    • Status: Resolved
    • Priority: Blocker
    • Resolution: Fixed
    • Affects Version/s: 6.0.6, 6.1.0
    • Fix Version/s: 6.0.7
    • Component/s: None
    • Labels:
      None
    • Environment:

      Elastic Agent on Bamboo
      Ubuntu 12.04 x64

    • Sprint:

      Description

      Two major problems are blocking the release of AUI:

      1. Inability to publish to the public npmjs.com registry
      2. Inability to push assets to the AUI CDN

      Problem 1: Cannot publish to npmjs.com (Solved)

      The release scripts publish AUI to both our private NPM registry and the public one. The auth details for the former are stored in the build agent's ~/.npmrc file. AUI's build makes use of ci-npm-publish to affect the authentication used in order to publish to the latter.

      For some reason, the publishing to the public registry isn't working, and that's the one that matters.

      ./node_modules/.bin/npm-publish --npmuser atlassian-aui --npmemail aui-team@atlassian.com
      
      info attempt registry request try #1 at 5:55:45 PM
      http request GET https://registry.npmjs.org/-/package/@atlassian%2faui/dist-tags
      http 200 https://registry.npmjs.org/-/package/@atlassian%2faui/dist-tags
      trying to publish to npm
      info attempt registry request try #1 at 5:55:46 PM
      http request PUT https://registry.npmjs.org/-/user/org.couchdb.user:atlassian-aui
      http 201 https://registry.npmjs.org/-/user/org.couchdb.user:atlassian-aui
      info attempt registry request try #1 at 5:55:46 PM
      http request PUT https://registry.npmjs.org/@atlassian%2faui
      http 500 https://registry.npmjs.org/@atlassian%2faui
      info retry will retry, error on last attempt: Error: {"code":"InternalError","message":"self.s3Client.client.delFile is not a function"} : @atlassian/aui
      info attempt registry request try #2 at 5:56:01 PM
      http request PUT https://registry.npmjs.org/@atlassian%2faui
      http 500 https://registry.npmjs.org/@atlassian%2faui
      info retry will retry, error on last attempt: Error: {"code":"InternalError","message":"self.s3Client.client.delFile is not a function"} : @atlassian/aui
      info attempt registry request try #3 at 5:57:05 PM
      http request PUT https://registry.npmjs.org/@atlassian%2faui
      http 500 https://registry.npmjs.org/@atlassian%2faui
      ERR! publish Failed PUT 500
      { Error: {"code":"InternalError","message":"self.s3Client.client.delFile is not a function"} : @atlassian/aui
          at RegClient.<anonymous> (<<build-dir>>/node_modules/npm-registry-client/lib/request.js:247:14)
          at Request._callback (<<build-dir>>/node_modules/npm-registry-client/lib/request.js:170:14)
          at Request.self.callback (<<build-dir>>/node_modules/request/request.js:188:22)
          at emitTwo (events.js:106:13)
          at Request.emit (events.js:191:7)
          at Request.<anonymous> (<<build-dir>>/node_modules/request/request.js:1171:10)
          at emitOne (events.js:96:13)
          at Request.emit (events.js:188:7)
          at IncomingMessage.<anonymous> (<<build-dir>>/node_modules/request/request.js:1091:12)
          at IncomingMessage.g (events.js:292:16) pkgid: '@atlassian/aui', statusCode: 500, code: 'E500' }
      <<build-dir>>/node_modules/ci-npm-publish/index.js:66
                throw err
                ^
      
      Error: {"code":"InternalError","message":"self.s3Client.client.delFile is not a function"} : @atlassian/aui
          at RegClient.<anonymous> (<<build-dir>>/node_modules/npm-registry-client/lib/request.js:247:14)
          at Request._callback (<<build-dir>>/node_modules/npm-registry-client/lib/request.js:170:14)
          at Request.self.callback (<<build-dir>>/node_modules/request/request.js:188:22)
          at emitTwo (events.js:106:13)
          at Request.emit (events.js:191:7)
          at Request.<anonymous> (<<build-dir>>/node_modules/request/request.js:1171:10)
          at emitOne (events.js:96:13)
          at Request.emit (events.js:188:7)
          at IncomingMessage.<anonymous> (<<build-dir>>/node_modules/request/request.js:1091:12)
          at IncomingMessage.g (events.js:292:16)
      

      I've raised https://github.com/npm/registry/issues/201 to get more info on why this is happening.

      Problem 2: Cannot publish to the AUI CDN

      The AUI build publishes to the AUI CDN. To do this, the build makes use of JIRA Cloud's prebake distributor jar.

      At first, the build was failing with an invalid access key exception. Updating the AWS access key has made this go away.

      The second problem is that the "signature" sent to AWS does not "match". I have no idea what this means.

      build	14-Aug-2017 09:28:02	09:28:02.086 [s3-transfer-manager-worker-9] DEBUG com.amazonaws.request - Sending Request: PUT https://aui-origin.herokuapp.com.s3.amazonaws.com /orig/aui-adg/6.0.7/css/logos/aui-header-logo-experts.png Headers: (x-amz-acl: public-read, User-Agent: aws-sdk-java/1.9.0 Linux/3.13.0-117-generic Java_HotSpot(TM)_64-Bit_Server_VM/25.131-b11/1.8.0_131 com.amazonaws.services.s3.transfer.TransferManager/1.9.0, Content-Length: 1559, Content-Type: image/png, Content-MD5: uDlmWP514sohYDzstrtZhg==, ) 
      build	14-Aug-2017 09:28:02	09:28:02.094 [s3-transfer-manager-worker-9] DEBUG com.amazonaws.services.s3.internal.S3Signer - Calculated string to sign:
      build	14-Aug-2017 09:28:02	"PUT
      build	14-Aug-2017 09:28:02	uDlmWP514sohYDzstrtZhg==
      build	14-Aug-2017 09:28:02	image/png
      build	14-Aug-2017 09:28:02	Mon, 14 Aug 2017 09:28:02 GMT
      build	14-Aug-2017 09:28:02	x-amz-acl:public-read
      build	14-Aug-2017 09:28:02	/aui-origin.herokuapp.com/orig/aui-adg/6.0.7/css/logos/aui-header-logo-experts.png"
      build	14-Aug-2017 09:28:02	09:28:02.095 [s3-transfer-manager-worker-10] INFO  com.amazonaws.http.AmazonHttpClient - Unable to execute HTTP request: Socket Closed
      build	14-Aug-2017 09:28:02	java.net.SocketException: Socket Closed
      build	14-Aug-2017 09:28:02		at java.net.AbstractPlainSocketImpl.setOption(AbstractPlainSocketImpl.java:212) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.net.Socket.setSoTimeout(Socket.java:1141) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at sun.security.ssl.BaseSSLSocketImpl.setSoTimeout(BaseSSLSocketImpl.java:631) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at sun.security.ssl.SSLSocketImpl.setSoTimeout(SSLSocketImpl.java:2526) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.io.SocketInputBuffer.isDataAvailable(SocketInputBuffer.java:98) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.AbstractHttpClientConnection.isResponseAvailable(AbstractHttpClientConnection.java:244) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.conn.ManagedClientConnectionImpl.isResponseAvailable(ManagedClientConnectionImpl.java:186) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.protocol.HttpRequestExecutor.doSendRequest(HttpRequestExecutor.java:218) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.protocol.SdkHttpRequestExecutor.doSendRequest(SdkHttpRequestExecutor.java:47) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at org.apache.http.protocol.HttpRequestExecutor.execute(HttpRequestExecutor.java:122) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.DefaultRequestDirector.tryExecute(DefaultRequestDirector.java:685) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:487) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:647) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	09:28:02.088 [s3-transfer-manager-worker-1] DEBUG com.amazonaws.http.conn.ClientConnectionManagerFactory - 
      build	14-Aug-2017 09:28:02	java.lang.reflect.InvocationTargetException
      build	14-Aug-2017 09:28:02		at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) ~[?:?]
      build	14-Aug-2017 09:28:02		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:72) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.$Proxy27.requestConnection(Unknown Source) [?:?]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:647) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	Caused by: java.lang.IllegalStateException: Connection pool shut down
      build	14-Aug-2017 09:28:02		at org.apache.http.util.Asserts.check(Asserts.java:34) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:184) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:217) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.conn.PoolingClientConnectionManager.requestConnection(PoolingClientConnectionManager.java:184) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		... 22 more
      build	14-Aug-2017 09:28:02	09:28:02.095 [main] ERROR com.atlassian.scripts.prebake.distributor.runner.DistributionRunner - FAIL
      build	14-Aug-2017 09:28:02	com.amazonaws.services.s3.model.AmazonS3Exception: The request signature we calculated does not match the signature you provided. Check your key and signing method. (Service: Amazon S3; Status Code: 403; Error Code: SignatureDoesNotMatch; Request ID: B8F17D02EF2EA1ED)
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.handleErrorResponse(AmazonHttpClient.java:1032) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:687) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) ~[aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	09:28:02.101 [s3-transfer-manager-worker-1] DEBUG com.amazonaws.http.AmazonHttpClient - FYI: failed to reset content inputstream before throwing up
      build	14-Aug-2017 09:28:02	com.amazonaws.AbortedException: 
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.abortIfNeeded(SdkFilterInputStream.java:52) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.markSupported(SdkFilterInputStream.java:108) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.lastReset(AmazonHttpClient.java:513) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:465) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	09:28:02.104 [main] INFO  com.atlassian.scripts.prebake.distributor.runner.StepTracker - Releasing [stepName=resources]
      build	14-Aug-2017 09:28:02	09:28:02.104 [main] INFO  com.atlassian.scripts.prebake.distributor.runner.StepTracker - Done releasing
      build	14-Aug-2017 09:28:02	09:28:02.089 [s3-transfer-manager-worker-6] DEBUG com.amazonaws.http.conn.ClientConnectionManagerFactory - 
      build	14-Aug-2017 09:28:02	java.lang.reflect.InvocationTargetException
      build	14-Aug-2017 09:28:02		at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) ~[?:?]
      build	14-Aug-2017 09:28:02		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:72) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.$Proxy27.requestConnection(Unknown Source) [?:?]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:647) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	Caused by: java.lang.IllegalStateException: Connection pool shut down
      build	14-Aug-2017 09:28:02		at org.apache.http.util.Asserts.check(Asserts.java:34) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:184) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:217) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.conn.PoolingClientConnectionManager.requestConnection(PoolingClientConnectionManager.java:184) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		... 22 more
      build	14-Aug-2017 09:28:02	09:28:02.107 [main] INFO  com.atlassian.scripts.prebake.distributor.runner.DistributionRunner - 
      build	14-Aug-2017 09:28:02	
      build	14-Aug-2017 09:28:02	
      build	14-Aug-2017 09:28:02	************************************************************
      build	14-Aug-2017 09:28:02	[step=resources] 0s - FAIL
      build	14-Aug-2017 09:28:02	************************************************************
      build	14-Aug-2017 09:28:02	
      build	14-Aug-2017 09:28:02	
      build	14-Aug-2017 09:28:02	
      build	14-Aug-2017 09:28:02	09:28:02.107 [s3-transfer-manager-worker-6] DEBUG com.amazonaws.http.AmazonHttpClient - FYI: failed to reset content inputstream before throwing up
      build	14-Aug-2017 09:28:02	com.amazonaws.AbortedException: 
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.abortIfNeeded(SdkFilterInputStream.java:52) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.markSupported(SdkFilterInputStream.java:108) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.lastReset(AmazonHttpClient.java:513) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:465) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	09:28:02.094 [s3-transfer-manager-worker-9] DEBUG com.amazonaws.http.conn.ClientConnectionManagerFactory - 
      build	14-Aug-2017 09:28:02	java.lang.reflect.InvocationTargetException
      build	14-Aug-2017 09:28:02		at sun.reflect.GeneratedMethodAccessor12.invoke(Unknown Source) ~[?:?]
      build	14-Aug-2017 09:28:02		at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.ClientConnectionManagerFactory$Handler.invoke(ClientConnectionManagerFactory.java:72) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.conn.$Proxy27.requestConnection(Unknown Source) [?:?]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.DefaultRequestDirector.execute(DefaultRequestDirector.java:415) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.AbstractHttpClient.doExecute(AbstractHttpClient.java:882) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:82) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:55) [httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeOneRequest(AmazonHttpClient.java:647) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:441) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02	Caused by: java.lang.IllegalStateException: Connection pool shut down
      build	14-Aug-2017 09:28:02		at org.apache.http.util.Asserts.check(Asserts.java:34) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:184) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.pool.AbstractConnPool.lease(AbstractConnPool.java:217) ~[httpcore-4.4.3.jar!/:4.4.3]
      build	14-Aug-2017 09:28:02		at org.apache.http.impl.conn.PoolingClientConnectionManager.requestConnection(PoolingClientConnectionManager.java:184) ~[httpclient-4.5.1.jar!/:4.5.1]
      build	14-Aug-2017 09:28:02		... 22 more
      build	14-Aug-2017 09:28:02	09:28:02.110 [s3-transfer-manager-worker-9] DEBUG com.amazonaws.http.AmazonHttpClient - FYI: failed to reset content inputstream before throwing up
      build	14-Aug-2017 09:28:02	com.amazonaws.AbortedException: 
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.abortIfNeeded(SdkFilterInputStream.java:52) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.internal.SdkFilterInputStream.markSupported(SdkFilterInputStream.java:108) ~[aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.lastReset(AmazonHttpClient.java:513) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.executeHelper(AmazonHttpClient.java:465) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.http.AmazonHttpClient.execute(AmazonHttpClient.java:292) [aws-java-sdk-core-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.invoke(AmazonS3Client.java:3655) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.AmazonS3Client.putObject(AmazonS3Client.java:1424) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.uploadInOneChunk(UploadCallable.java:135) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadCallable.call(UploadCallable.java:127) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:129) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at com.amazonaws.services.s3.transfer.internal.UploadMonitor.call(UploadMonitor.java:50) [aws-java-sdk-s3-1.9.0.jar!/:?]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.FutureTask.run(FutureTask.java:266) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617) [?:1.8.0_131]
      build	14-Aug-2017 09:28:02		at java.lang.Thread.run(Thread.java:748) [?:1.8.0_131]
      simple	14-Aug-2017 09:28:02	Failing task since return code of [/bin/sh /opt/bamboo-agent/bamboo-agent-home/temp/AUI-REL5-PTCNS-22-ScriptBuildTask-1986453362475239144.sh] was 9 while expected 0
      

      It could be an authentication issue, it could be an upload process issue... it could be any number of things.

        Attachments

          Activity

            People

            • Assignee:
              cdarroch Chris "Daz" Darroch
              Reporter:
              cdarroch Chris "Daz" Darroch
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Who's Looking?