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

Error occurred while uploading to Azure - Fail to upload archive to blob

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • _unsorted
    • None
    • 1.0.3

      From a pipeline:

              azureUpload(
                storageCredentialId: "azure-jenkins-storage", storageType: "blobstorage",
                containerName: "artifacts", filesPath: "*.tar.gz", virtualPath: "jenkinsbackups"
              )
      

      Result is:

      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Container name: artifacts
      
      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - share name: 
      
      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - File path: *.tar.gz
      
      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Virtual path: jenkinsbackups/
      
      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Exclude path: 
      
      [2019-07-10T11:52:08.553Z] MicrosoftAzureStorage - Uploading files to Microsoft Azure
      
      [2019-07-10T11:52:25.392Z] ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - <storageaccountname>
      
      [2019-07-10T11:52:25.392Z] com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Fail to upload archive to blob
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:143)
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:702)
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:423)
      
      [2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:80)
      
      [2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.CoreStep$Execution.run(CoreStep.java:67)
      
      [2019-07-10T11:52:25.393Z] 	at org.jenkinsci.plugins.workflow.steps.SynchronousNonBlockingStepExecution.lambda$start$0(SynchronousNonBlockingStepExecution.java:47)
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.run(FutureTask.java:266)
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
      
      [2019-07-10T11:52:25.393Z] 	at java.lang.Thread.run(Thread.java:748)
      
      [2019-07-10T11:52:25.393Z] Caused by: java.io.IOException: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Invalid prefix or suffix
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:363)
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:336)
      
      [2019-07-10T11:52:25.393Z] 	at hudson.FilePath.act(FilePath.java:1076)
      
      [2019-07-10T11:52:25.393Z] 	at hudson.FilePath.act(FilePath.java:1059)
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadToBlobService.uploadIndividuals(UploadToBlobService.java:134)
      
      [2019-07-10T11:52:25.393Z] 	... 10 more
      
      [2019-07-10T11:52:25.393Z] Caused by: java.util.concurrent.ExecutionException: java.lang.IllegalArgumentException: Invalid prefix or suffix
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.report(FutureTask.java:122)
      
      [2019-07-10T11:52:25.393Z] 	at java.util.concurrent.FutureTask.get(FutureTask.java:192)
      
      [2019-07-10T11:52:25.393Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadOnSlave.invoke(UploadService.java:360)
      
      [2019-07-10T11:52:25.393Z] 	... 14 more
      
      [2019-07-10T11:52:25.395Z] Caused by: java.lang.IllegalArgumentException: Invalid prefix or suffix
      
      [2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:63)
      
      [2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.create(TempFileHelper.java:127)
      
      [2019-07-10T11:52:25.395Z] 	at java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173)
      
      [2019-07-10T11:52:25.395Z] 	at java.nio.file.Files.createTempDirectory(Files.java:991)
      
      [2019-07-10T11:52:25.395Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:452)
      
      [2019-07-10T11:52:25.395Z] 	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService$UploadThread.call(UploadService.java:413)
      
      [2019-07-10T11:52:25.395Z] 	... 4 more
      

      I wasn't asked to provide a prefix or suffix anywhere, so I've no idea what's going on.

            jieshe Jie Shen
            haydenball Hayden Ball
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: