Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-64128

ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • _unsorted
    • None
    • Jenkins 2.222.1
      Windows Azure Storage: 1.1.5

      Hi,

      Using the following environment versions:

      Jenkins 2.222.1
      Windows Azure Storage: 1.1.5

       

      It happens from time to time (not always), which is problematic for the builds health. The following error:

      11:20:14  MicrosoftAzureStorage - Container name: jenkins-artifacts11:20:14  MicrosoftAzureStorage - Container name: jenkins-artifacts11:20:14  MicrosoftAzureStorage - share name: 11:20:14  MicrosoftAzureStorage - File path: artifacts/*11:20:14  MicrosoftAzureStorage - Virtual path: path/to/directory11:20:14  MicrosoftAzureStorage - Exclude path: 11:20:14  MicrosoftAzureStorage - Uploading files to Microsoft Azure11:20:17  ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - ciblobstorageaccount11:20:17  com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Fail to upload individual files to blob11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:151)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:719)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:438)11:20:17  at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)11:20:17  at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)11:20:17  at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)11:20:17  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)11:20:17  at java.util.concurrent.FutureTask.run(FutureTask.java:266)11:20:17  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)11:20:17  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)11:20:17  at java.lang.Thread.run(Thread.java:748)11:20:17  Caused by: java.io.IOException: java.util.concurrent.ExecutionException: com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Failed to upload path/to/artifacts/46610.app.dSYM.zip with error code 0
      11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:373)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:346)11:20:17  at hudson.FilePath$FileCallableWrapper.call(FilePath.java:3069)11:20:17  at hudson.remoting.UserRequest.perform(UserRequest.java:211)11:20:17  at hudson.remoting.UserRequest.perform(UserRequest.java:54)11:20:17  at hudson.remoting.Request$2.run(Request.java:369)11:20:17  at hudson.remoting.InterceptingExecutorService$1.call(InterceptingExecutorService.java:72)11:20:17  at java.util.concurrent.FutureTask.run(FutureTask.java:266)11:20:17  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)11:20:17  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)11:20:17  at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:117)11:20:17  ... 1 more11:20:17  Suppressed: hudson.remoting.Channel$CallSiteStackTrace:11:20:17  at hudson.remoting.Channel.attachCallSiteStackTrace(Channel.java:1788)11:20:17  at hudson.remoting.UserRequest$ExceptionResponse.retrieve(UserRequest.java:356)11:20:17  at hudson.remoting.Channel.call(Channel.java:998)11:20:17  at hudson.FilePath.act(FilePath.java:1069)11:20:17  at hudson.FilePath.act(FilePath.java:1058)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:142)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:719)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:438)11:20:17  at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)11:20:17  at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)11:20:17  at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)11:20:17  at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)11:20:17  at java.util.concurrent.FutureTask.run(FutureTask.java:266)11:20:17  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)11:20:17  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)11:20:17  ... 1 more11:20:17  Caused by: java.util.concurrent.ExecutionException: com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Failed to upload path/to/artifacts/46610.app.dSYM.zip with error code 0
      11:20:17  at java.util.concurrent.FutureTask.report(FutureTask.java:122)11:20:17  at java.util.concurrent.FutureTask.get(FutureTask.java:192)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:370)11:20:17  ... 11 more11:20:17  Caused by: com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Failed to upload path/to/artifacts/46610.app.dSYM.zip with error code 011:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.putBlob(UploadService.java:580)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:482)11:20:17  at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:423)11:20:17  at java.util.concurrent.FutureTask.run(FutureTask.java:266)11:20:17  at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)11:20:17  at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)11:20:17  ... 1 more[Pipeline] }[Pipeline] // scriptError when executing success post condition:java.io.IOException: MicrosoftAzureStorage - Error occurred while uploading to Azure - ciblobstorageaccount at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:469) 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)
       
      

       

      In these failed attempts, there was an inconsistency, in a way that sometimes the artefacts were even found in the blob, and sometimes not found.

       

      Would be helpful to also get a more verbose error message from MS REST API response that we can traceback and debug. Since 

      error code 0

      does not indicate the exact problem.

       

      Thank you.

       

            Unassigned Unassigned
            mfarahat_kg Muhammed Farahat
            Votes:
            3 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: