Azure-Samples / azure-batch-samples

Azure Batch and HPC Code Samples
Other
261 stars 487 forks source link

Exception on File Download #225

Closed guipedral closed 7 years ago

guipedral commented 7 years ago

I can't download a file from task node. I'am getting this exeception:

Microsoft.Azure.Batch.Common.BatchException: Operation returned an invalid status code 'Forbidden' ---> Microsoft.Azure.Batch.Protocol.Models.BatchErrorException: Operation returned an invalid status code 'Forbidden' at Microsoft.Azure.Batch.Protocol.FileOperations.d7.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Batch.Protocol.BatchRequestBase`2.d42.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Batch.Protocol.BatchRequestBase2.<ExecuteRequestAsync>d__40.MoveNext() --- End of inner exception stack trace --- at Microsoft.Azure.Batch.Protocol.BatchRequestBase2.d40.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Batch.ProtocolLayer.d84`1.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Batch.ProtocolLayer.d33.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.Batch.JobOperations.d39.MoveNext() --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.BatchExplorer.Models.TaskModel.d58.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\Models\TaskModel.cs:line 384 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.BatchExplorer.Models.TaskModel.d56.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\Models\TaskModel.cs:line 356 --- End of stack trace from previous location where exception was thrown --- at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task) at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task) at Microsoft.Azure.BatchExplorer.ViewModels.MainViewModel.d__215.MoveNext() in C:\Users\g.pedral.santos\Desktop\azure batch\azure-batch-samples-master\CSharp\BatchExplorer\ViewModels\MainViewModel.cs:line 1728 Request Information ClientRequestId: RequestId:6cbffd54-1fc7-48cd-a56f-4ec3a5ab9cae HttpStatusCode:Forbidden StatusMessage:Server failed to authenticate the request. Make sure the value of Authorization header is formed correctly including the signature.

screenshot 209

matthchr commented 7 years ago

Hi @guipedral - I'm looking into this.

guipedral commented 7 years ago

If need, I can share my account name/key. Tks

matthchr commented 7 years ago

I can get your account name from the RequestId in the callstack you posted above, and you shouldn't ever share your account key with anybody you don't trust.

I think I have all the information I need to diagnose the problem... I'll let you know when we know what's going on.

guipedral commented 7 years ago

Thanks a lot!

matthchr commented 7 years ago

There is a service bug which is causing this behavior for requests which contain %2F or %5D (the URL encoded forms of / and \).

We are rolling out a fix to mitigate the issue. You should hopefully see things start working again soon.

matthchr commented 7 years ago

This was fixed a few days after my last comment but I forgot to respond. Closing this now as the issue is resolved.

kjayantmenon commented 5 years ago

This issue persists - we are running in to this one intermittently.

bgklein commented 5 years ago

@kjayantmenon BatchExplorer v1 is now deprecated. You should switch to using BatchExplorer v2 (formerly BatchLabs), which is getting active funding.