[JIRA] (JENKINS-59748) Error occurred while uploading to Azure - WAStorageException: Only 0/2 files are successfully uploaded

21 views
Skip to first unread message

kagokla@infovista.com (JIRA)

unread,
Oct 11, 2019, 8:57:03 AM10/11/19
to jenkinsc...@googlegroups.com
koffi AGOKLA created an issue
 
Jenkins / Bug JENKINS-59748
Error occurred while uploading to Azure - WAStorageException: Only 0/2 files are successfully uploaded
Issue Type: Bug Bug
Assignee: Azure DevOps
Components: windows-azure-storage-plugin
Created: 2019-10-11 12:56
Priority: Major Major
Reporter: koffi AGOKLA

Hi,

I followed the tutorial described in the link: http://go.microsoft.com/fwlink/?LinkId=280058

However, although i'm able to download the artifacts from my blob, i'm not able to upload artifacts to this same blob.

I'm getting the error:

MicrosoftAzureStorage - Container name: azuretemplatescicddev
MicrosoftAzureStorage - share name: 
MicrosoftAzureStorage - File path: text/*.txt
MicrosoftAzureStorage - Virtual path: 
MicrosoftAzureStorage - Exclude path: 
MicrosoftAzureStorage - Uploading files to Microsoft AzureMicrosoftAzureStorage - Need uploaded/archived file count = 2
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - sastdwe1scr
com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Only 0/2 files are successfully uploaded.
	at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:729)
	at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:438)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
	at hudson.model.Run.execute(Run.java:1840)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
ERROR: Step 'Upload artifacts to Microsoft Azure Storage' aborted due to exception: 
java.io.IOException: MicrosoftAzureStorage - Error occurred while uploading to Azure - sastdwe1scr
	at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:469)
	at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
	at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
	at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
	at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
	at hudson.model.Build$BuildExecution.post2(Build.java:186)
	at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
	at hudson.model.Run.execute(Run.java:1840)
	at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
	at hudson.model.ResourceController.execute(ResourceController.java:97)
	at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
Add Comment Add Comment
 
This message was sent by Atlassian Jira (v7.13.6#713006-sha1:cc4451f)
Atlassian logo

kagokla@infovista.com (JIRA)

unread,
Oct 11, 2019, 8:59:03 AM10/11/19
to jenkinsc...@googlegroups.com
koffi AGOKLA updated an issue
Change By: koffi AGOKLA
Hi,

I followed the tutorial described in the link: [http://go.microsoft.com/fwlink/?LinkId=280058]

However, although i'm able to download the artifacts from my blob, i'm not able to upload artifacts to this same blob.

I'm getting the error:
{code:java}
MicrosoftAzureStorage - Container name:
azuretemplatescicddev azuretemplates
MicrosoftAzureStorage - share name:
MicrosoftAzureStorage - File path: text/*.txt
MicrosoftAzureStorage - Virtual path:
MicrosoftAzureStorage - Exclude path:
MicrosoftAzureStorage - Uploading files to Microsoft AzureMicrosoftAzureStorage - Need uploaded/archived file count = 2
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - sastdwe1scr xxxdwesxxx
{code}

kagokla@infovista.com (JIRA)

unread,
Oct 11, 2019, 9:48:02 AM10/11/19
to jenkinsc...@googlegroups.com
koffi AGOKLA updated an issue
Hi,

After a migration from the version 0.3.11 to 1.1.1, I followed the tutorial described in the link: [http://go.microsoft.com/fwlink/?LinkId=280058]


However, although i'm able to download the artifacts from my blob, i'm not able to upload artifacts to this same blob.

I'm getting the error:
{code:java}
MicrosoftAzureStorage - Container name: azuretemplates

MicrosoftAzureStorage - share name:
MicrosoftAzureStorage - File path: text/*.txt
MicrosoftAzureStorage - Virtual path:
MicrosoftAzureStorage - Exclude path:
MicrosoftAzureStorage - Uploading files to Microsoft AzureMicrosoftAzureStorage - Need uploaded/archived file count = 2
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - xxxdwesxxx

kagokla@infovista.com (JIRA)

unread,
Oct 11, 2019, 9:50:04 AM10/11/19
to jenkinsc...@googlegroups.com
koffi AGOKLA updated an issue
Change By: koffi AGOKLA
Environment: Jenkins ver. 2.190.1
Windows Azure Storage Plugin Version 1.1.1

kagokla@infovista.com (JIRA)

unread,
Oct 11, 2019, 12:39:02 PM10/11/19
to jenkinsc...@googlegroups.com
koffi AGOKLA updated an issue


I tried with the version 1.0.4 and the artifacts were uploaded. But it was NOK with versions 1.1.0 and 1.1.1

jieshe@microsoft.com (JIRA)

unread,
Oct 11, 2019, 9:46:02 PM10/11/19
to jenkinsc...@googlegroups.com

jieshe@microsoft.com (JIRA)

unread,
Oct 11, 2019, 9:47:02 PM10/11/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-59748
 
Re: Error occurred while uploading to Azure - WAStorageException: Only 0/2 files are successfully uploaded

Thanks for reporting this issue. Could you please check the Jenkins log to find if there is more detailed logs in it?

kagokla@infovista.com (JIRA)

unread,
Oct 14, 2019, 4:01:03 AM10/14/19
to jenkinsc...@googlegroups.com

Hi Shen,

I took a quick look into the logs located in /var/log/jenkins/jenkins.log and didn't find anything more instructive thant the logs that I added in the decription. do you want some specific logs?

Kind regards!

ben.koth@myparadigm.com (JIRA)

unread,
Oct 28, 2019, 2:58:02 PM10/28/19
to jenkinsc...@googlegroups.com
Ben Koth commented on Bug JENKINS-59748

I'm getting the same error. It does appear like the archive was actually uploaded correctly. I'm using the pipeline script to upload my files. I downgraded the plugin and was able to upload.


MicrosoftAzureStorage - Uploading files to Microsoft Azure

Uploaded to file storage with uri <removed by me> in 00:00:07.826 (HH:mm:ss.S)
MicrosoftAzureStorage - Need uploaded/archived file count = 279
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - <removed by me>
com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Only 0/279 files are successfully uploaded.


at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:729)
at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:438)

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(Unknown Source)
at java.util.concurrent.FutureTask.run(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)

jieshe@microsoft.com (JIRA)

unread,
Oct 29, 2019, 2:13:02 AM10/29/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-59748

Ben Koth I have tried to reproduce this error on my side, but no luck. Do you have any advanced settings or is it possible to share your pipeline step?

kagokla@infovista.com (JIRA)

unread,
Oct 29, 2019, 4:48:03 AM10/29/19
to jenkinsc...@googlegroups.com
koffi AGOKLA updated an issue
Change By: koffi AGOKLA
Hi,

After a migration from the version 0.3.11 to 1.1.1, I followed the tutorial described in the link: [http://go.microsoft.com/fwlink/?LinkId=280058]

However, although i'm able to download the artifacts from my blob, i'm not able to upload artifacts to this same blob.

I'm getting the error:
{code:java}
MicrosoftAzureStorage - Container name: azuretemplates
MicrosoftAzureStorage - share name:
MicrosoftAzureStorage - File path: text/*.txt
MicrosoftAzureStorage - Virtual path:
MicrosoftAzureStorage - Exclude path:
MicrosoftAzureStorage - Uploading files to Microsoft AzureMicrosoftAzureStorage - Need uploaded/archived file count = 2
ERROR: MicrosoftAzureStorage - Error occurred while uploading to Azure - xxxdwesxxx
com.microsoftopentechnologies.windowsazurestorage.exceptions.WAStorageException: Only 0/2 files are successfully uploaded.

at com.microsoftopentechnologies.windowsazurestorage.service.UploadService.execute(UploadService.java:729)
at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:438)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
ERROR: Step 'Upload artifacts to Microsoft Azure Storage' aborted due to exception:
java.io.IOException: MicrosoftAzureStorage - Error occurred while uploading to Azure - sastdwe1scr xxxdwesxxx
at com.microsoftopentechnologies.windowsazurestorage.WAStoragePublisher.perform(WAStoragePublisher.java:469)
at hudson.tasks.BuildStepCompatibilityLayer.perform(BuildStepCompatibilityLayer.java:79)
at hudson.tasks.BuildStepMonitor$2.perform(BuildStepMonitor.java:32)
at hudson.model.AbstractBuild$AbstractBuildExecution.perform(AbstractBuild.java:741)
at hudson.model.AbstractBuild$AbstractBuildExecution.performAllBuildSteps(AbstractBuild.java:690)
at hudson.model.Build$BuildExecution.post2(Build.java:186)
at hudson.model.AbstractBuild$AbstractBuildExecution.post(AbstractBuild.java:635)
at hudson.model.Run.execute(Run.java:1840)
at hudson.model.FreeStyleBuild.run(FreeStyleBuild.java:43)
at hudson.model.ResourceController.execute(ResourceController.java:97)
at hudson.model.Executor.run(Executor.java:429)
Finished: FAILURE
{code}

I tried with the version 1.0.4 and the artifacts were uploaded. But it was NOK with versions 1.1.0 and 1.1.1

ben.koth@myparadigm.com (JIRA)

unread,
Oct 29, 2019, 8:32:04 AM10/29/19
to jenkinsc...@googlegroups.com
Ben Koth commented on Bug JENKINS-59748
 
Re: Error occurred while uploading to Azure - WAStorageException: Only 0/2 files are successfully uploaded

Here's my pipeline step:

 

echo 'Archive Master Controller..' echo 'Archive Master Controller..' azureUpload blobProperties: [cacheControl: '', contentEncoding: '', contentLanguage: '', contentType: '', detectContentType: true], containerName: '<mycontainer>', fileShareName: '', filesPath: '\\SafeguardController\\bin\\**,\\PKTestingController\\bin
**', storageCredentialId: 'as_credentials', storageType: 'blobstorage', uploadArtifactsOnlyIfSuccessful: true, uploadZips: true, virtualPath: "Controller/${branchName}/${MAJOR_VERSION}.${MINOR_VERSION}.${PATCH_VERSION}.0/", doNotUploadIndividualFiles: true

jieshe@microsoft.com (JIRA)

unread,
Nov 1, 2019, 3:09:03 AM11/1/19
to jenkinsc...@googlegroups.com
Jie Shen commented on Bug JENKINS-59748

This is a bug triggered by only uploading archived file. I will make a PR to fix it.

jieshe@microsoft.com (JIRA)

unread,
Nov 1, 2019, 4:53:02 AM11/1/19
to jenkinsc...@googlegroups.com
Jie Shen resolved as Fixed
 
Change By: Jie Shen
Status: Open Resolved
Resolution: Fixed
Released As: 1.1.2
Reply all
Reply to author
Forward
0 new messages