• Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: Minor Minor
    • appcenter-plugin
    • None

      Hi, we had configured a publish step to the app center in our pipeline, and everything was fine until several days ago it started failing for different reasons:

      I'll post all three different reasons for failing:

      1. First 

      io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: HTTP 503 Service Temporarily Unavailable: <html>
       <head><title>503 Service Temporarily Unavailable</title></head>
       <body>
       <center><h1>503 Service Temporarily Unavailable</h1></center>
       <hr><center>nginx/1.15.10</center>
       </body>
       </html>
      at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
       at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
       Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
       at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       at hudson.remoting.Channel.call(Channel.java:998)
       at hudson.FilePath.act(FilePath.java:1159)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
       Caused: java.util.concurrent.CompletionException
       at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
       at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
       at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
       at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
       at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
       at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.lang.Thread.run(Thread.java:829)
       Finished: FAILURE
      

       

      then it started failed for another reason:

      java.net.SocketTimeoutException: connect timed out
       at java.net.PlainSocketImpl.socketConnect(Native Method)
       at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
       at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
       at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
       at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
       at java.net.Socket.connect(Socket.java:609)
       at okhttp3.internal.platform.Platform.connectSocket(Platform.java:130)
       at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:263)
       at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:183)
       at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
       at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
       at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
       at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
       at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
       at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
       at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
       at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
       at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:223)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
       at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
       at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172)
       Caused: io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful
       at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:43)
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
       Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
       at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       at hudson.remoting.Channel.call(Channel.java:998)
       at hudson.FilePath.act(FilePath.java:1159)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
       Caused: java.util.concurrent.CompletionException
       at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
       at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
       at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
       at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
       at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onFailure(CompletableFutureCallAdapterFactory.java:86)
       at retrofit2.OkHttpCall$1.callFailure(OkHttpCall.java:142)
       at retrofit2.OkHttpCall$1.onFailure(OkHttpCall.java:137)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:180)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.lang.Thread.run(Thread.java:829)
       Finished: FAILURE

      and the last (newest) error:

      io.jenkins.plugins.appcenter.AppCenterException: Create upload resource for app unsuccessful: HTTP 404 : {"message":"Resource not found: /v0.1/apps/
      {ownerName}
      /{appName}/release_uploads. Correlation ID: someID","statusCode":404,"code":"Not Found"}
       at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
       at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
       at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:59)
       Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
       at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
       at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
       at hudson.remoting.Channel.call(Channel.java:998)
       at hudson.FilePath.act(FilePath.java:1159)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
       at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
       at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
       at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
       at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
       at java.util.concurrent.FutureTask.run(FutureTask.java:266)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
       at java.lang.Thread.run(Thread.java:748)
       Caused: java.util.concurrent.CompletionException
       at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
       at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
       at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:60)
       at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
       at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
       at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
       at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
       at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
       at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
       at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
       at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
       at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
       at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
       at java.lang.Thread.run(Thread.java:829)
       Finished: FAILURE
      

      I check ownerName and App name are correct. Any suggestion of possible reason?
      Whether it can be caused by the fact that there is no connection between the build server and the AppCenter?
      Note: It was successful uploading early and nothing was changed in the pipeline but it started to fail.

          [JENKINS-66999] Cannot upload build to AppCenter

          Mykhailo Dobosh created issue -
          Mykhailo Dobosh made changes -
          Description Original: Hi, we had configured a publish step to the app center in our pipeline, and everything was fine until several days ago it started failing for different reasons:

          I'll post all three different reasons for failing:

          1. First 
          io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: HTTP 503 Service Temporarily Unavailable: <html>
          <head><title>503 Service Temporarily Unavailable</title></head>
          <body>
          <center><h1>503 Service Temporarily Unavailable</h1></center>
          <hr><center>nginx/1.15.10</center>
          </body>
          </html>

          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
          at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name (i-0e5bc27de18f26f01)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:998)
          at hudson.FilePath.act(FilePath.java:1159)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused: java.util.concurrent.CompletionException
          at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
          at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
          at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
          at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
          at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
          at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
          at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.lang.Thread.run(Thread.java:829)
          Finished: FAILURE

          then it started failed for another reason:
          java.net.SocketTimeoutException: connect timed out
          at java.net.PlainSocketImpl.socketConnect(Native Method)
          at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
          at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
          at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
          at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
          at java.net.Socket.connect(Socket.java:609)
          at okhttp3.internal.platform.Platform.connectSocket(Platform.java:130)
          at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:263)
          at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:183)
          at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
          at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
          at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
          at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
          at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
          at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
          at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
          at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
          at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:223)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
          at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
          at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172)
          Caused: io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful
          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:43)
          at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name (i-048f5412d0f10255c)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:998)
          at hudson.FilePath.act(FilePath.java:1159)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused: java.util.concurrent.CompletionException
          at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
          at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
          at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
          at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
          at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onFailure(CompletableFutureCallAdapterFactory.java:86)
          at retrofit2.OkHttpCall$1.callFailure(OkHttpCall.java:142)
          at retrofit2.OkHttpCall$1.onFailure(OkHttpCall.java:137)
          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:180)
          at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.lang.Thread.run(Thread.java:829)
          Finished: FAILURE
          and the last (newest) error:
          io.jenkins.plugins.appcenter.AppCenterException: Create upload resource for app unsuccessful: HTTP 404 : \{"message":"Resource not found: /v0.1/apps/{ownerName}/\{appName}/release_uploads. Correlation ID: someID","statusCode":404,"code":"Not Found"}
          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
          at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:59)
          Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name (i-04d47497219fca33c)
          at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
          at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
          at hudson.remoting.Channel.call(Channel.java:998)
          at hudson.FilePath.act(FilePath.java:1159)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
          at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
          at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
          at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
          at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
          at java.util.concurrent.FutureTask.run(FutureTask.java:266)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
          at java.lang.Thread.run(Thread.java:748)
          Caused: java.util.concurrent.CompletionException
          at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
          at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
          at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:60)
          at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
          at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
          at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
          at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
          at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
          at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
          at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
          at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
          at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
          at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
          at java.lang.Thread.run(Thread.java:829)
          Finished: FAILURE
          I check ownerName and App name are correct. Any suggestion of possible reason?
          Whether it can be caused by the fact that there is no connection between the build server and the AppCenter?
          Note: It was successful uploading early and nothing was changed in the pipeline but it started to fail.
          New: Hi, we had configured a publish step to the app center in our pipeline, and everything was fine until several days ago it started failing for different reasons:

          I'll post all three different reasons for failing:

          1. First 
          {code:java}
          io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful: HTTP 503 Service Temporarily Unavailable: <html>
           <head><title>503 Service Temporarily Unavailable</title></head>
           <body>
           <center><h1>503 Service Temporarily Unavailable</h1></center>
           <hr><center>nginx/1.15.10</center>
           </body>
           </html>
          at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
           at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
           at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
           at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
           at hudson.remoting.Channel.call(Channel.java:998)
           at hudson.FilePath.act(FilePath.java:1159)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
           Caused: java.util.concurrent.CompletionException
           at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
           at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
           at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
           at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
           at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
           at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
           at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
           at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.lang.Thread.run(Thread.java:829)
           Finished: FAILURE
          {code}
           

          then it started failed for another reason:
          {code:java}
          java.net.SocketTimeoutException: connect timed out
           at java.net.PlainSocketImpl.socketConnect(Native Method)
           at java.net.AbstractPlainSocketImpl.doConnect(AbstractPlainSocketImpl.java:399)
           at java.net.AbstractPlainSocketImpl.connectToAddress(AbstractPlainSocketImpl.java:242)
           at java.net.AbstractPlainSocketImpl.connect(AbstractPlainSocketImpl.java:224)
           at java.net.SocksSocketImpl.connect(SocksSocketImpl.java:392)
           at java.net.Socket.connect(Socket.java:609)
           at okhttp3.internal.platform.Platform.connectSocket(Platform.java:130)
           at okhttp3.internal.connection.RealConnection.connectSocket(RealConnection.java:263)
           at okhttp3.internal.connection.RealConnection.connect(RealConnection.java:183)
           at okhttp3.internal.connection.ExchangeFinder.findConnection(ExchangeFinder.java:224)
           at okhttp3.internal.connection.ExchangeFinder.findHealthyConnection(ExchangeFinder.java:108)
           at okhttp3.internal.connection.ExchangeFinder.find(ExchangeFinder.java:88)
           at okhttp3.internal.connection.Transmitter.newExchange(Transmitter.java:169)
           at okhttp3.internal.connection.ConnectInterceptor.intercept(ConnectInterceptor.java:41)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
           at okhttp3.internal.cache.CacheInterceptor.intercept(CacheInterceptor.java:94)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
           at okhttp3.internal.http.BridgeInterceptor.intercept(BridgeInterceptor.java:93)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
           at okhttp3.internal.http.RetryAndFollowUpInterceptor.intercept(RetryAndFollowUpInterceptor.java:88)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
           at okhttp3.logging.HttpLoggingInterceptor.intercept(HttpLoggingInterceptor.java:223)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:142)
           at okhttp3.internal.http.RealInterceptorChain.proceed(RealInterceptorChain.java:117)
           at okhttp3.RealCall.getResponseWithInterceptorChain(RealCall.java:221)
           at okhttp3.RealCall$AsyncCall.execute(RealCall.java:172)
           Caused: io.jenkins.plugins.appcenter.AppCenterException: Upload app to resource unsuccessful
           at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:43)
           at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:71)
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
           at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
           at hudson.remoting.Channel.call(Channel.java:998)
           at hudson.FilePath.act(FilePath.java:1159)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
           Caused: java.util.concurrent.CompletionException
           at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
           at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
           at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at io.jenkins.plugins.appcenter.task.internal.UploadAppToResourceTask.lambda$uploadApp$0(UploadAppToResourceTask.java:72)
           at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
           at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onFailure(CompletableFutureCallAdapterFactory.java:86)
           at retrofit2.OkHttpCall$1.callFailure(OkHttpCall.java:142)
           at retrofit2.OkHttpCall$1.onFailure(OkHttpCall.java:137)
           at okhttp3.RealCall$AsyncCall.execute(RealCall.java:180)
           at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.lang.Thread.run(Thread.java:829)
           Finished: FAILURE{code}
          and the last (newest) error:
          {code:java}
          io.jenkins.plugins.appcenter.AppCenterException: Create upload resource for app unsuccessful: HTTP 404 : {"message":"Resource not found: /v0.1/apps/
          {ownerName}
          /{appName}/release_uploads. Correlation ID: someID","statusCode":404,"code":"Not Found"}
           at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:23)
           at io.jenkins.plugins.appcenter.AppCenterLogger.logFailure(AppCenterLogger.java:37)
           at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:59)
           Also: hudson.remoting.Channel$CallSiteStackTrace: Remote call to EC2 (ubuntu-base) - Slave slave-name ()
           at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)
           at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)
           at hudson.remoting.Channel.call(Channel.java:998)
           at hudson.FilePath.act(FilePath.java:1159)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.uploadToAppCenter(AppCenterRecorder.java:165)
           at io.jenkins.plugins.appcenter.AppCenterRecorder.perform(AppCenterRecorder.java:152)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
           at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
           at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
           at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
           at java.util.concurrent.FutureTask.run(FutureTask.java:266)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
           at java.lang.Thread.run(Thread.java:748)
           Caused: java.util.concurrent.CompletionException
           at java.util.concurrent.CompletableFuture.encodeRelay(CompletableFuture.java:367)
           at java.util.concurrent.CompletableFuture.completeRelay(CompletableFuture.java:376)
           at java.util.concurrent.CompletableFuture$UniRelay.tryFire(CompletableFuture.java:1019)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at io.jenkins.plugins.appcenter.task.internal.CreateUploadResourceTask.lambda$createUploadResourceForApp$0(CreateUploadResourceTask.java:60)
           at java.util.concurrent.CompletableFuture.uniWhenComplete(CompletableFuture.java:859)
           at java.util.concurrent.CompletableFuture$UniWhenComplete.tryFire(CompletableFuture.java:837)
           at java.util.concurrent.CompletableFuture.postComplete(CompletableFuture.java:506)
           at java.util.concurrent.CompletableFuture.completeExceptionally(CompletableFuture.java:2088)
           at retrofit2.CompletableFutureCallAdapterFactory$BodyCallAdapter$2.onResponse(CompletableFutureCallAdapterFactory.java:81)
           at retrofit2.OkHttpCall$1.onResponse(OkHttpCall.java:129)
           at okhttp3.RealCall$AsyncCall.execute(RealCall.java:174)
           at okhttp3.internal.NamedRunnable.run(NamedRunnable.java:32)
           at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1128)
           at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:628)
           at java.lang.Thread.run(Thread.java:829)
           Finished: FAILURE
          {code}

           I check ownerName and App name are correct. Any suggestion of possible reason?
           Whether it can be caused by the fact that there is no connection between the build server and the AppCenter?
           Note: It was successful uploading early and nothing was changed in the pipeline but it started to fail.

            Unassigned Unassigned
            mykhailo_dobosh Mykhailo Dobosh
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated: