Azure批处理服务任务退出代码错误 [英] Azure Batch Service Task Exit Code error

查看:77
本文介绍了Azure批处理服务任务退出代码错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了.NET教程示例以开始使用Azure Batch.

I downloaded the .NET Tutorial sample to get started with Azure Batch.

我的目标是使Web api调用自动化(每2分钟运行一次)并将返回的数据存储到数据存储容器中.

My objective is to automate(run every 2 minutes) a web api call and store the data that I get back into a data storage container.

问题是我正在池中的节点(VM)上执行的任务返回失败,确切的错误是该任务已退出,并带有表示失败的退出代码".

The problem is that the Task that I am executing on my node(VM) in my pool is returning a failure, The Exact error is "the task exited with an exit code representing a failure".

因此,我继续打印了导致失败的错误退出代码.退出代码是-1073741819.但这告诉我什么????我在网上找不到任何可以告诉我此退出代码代表什么的信息???如何解决??

So I went ahead and printed the error exit code that is causing the failure. The exit code is -1073741819. But what does this tell me???? I couldn't find anything online that tells me what this exit code represents??? How to fix it??

有时当我再次运行它时,它在另一个退出代码-532462766上失败.如何调试Azure云中VM上发生的故障?

Sometimes when I run it again, It fails on another exit code -532462766. How do I debug failures that occur on my VM in the azure cloud?

推荐答案

您可以查看 stderr.txt stdout.txt 文件以获取更多任务对问题的洞察力.查看这些文件的最简单方法是转到 Azure Portal 并导航至您的批处理帐户.您可以单击 Jobs ,这将扩展作业刀片.单击相关任务,然后单击节点上的文件.您应该同时看到 stderr.txt stdout.txt 进行查看.您也可以通过

You can look at the stderr.txt and stdout.txt files for the tasks to gain additional insight into the issue. The easiest way to view these files is to go to the Azure Portal and navigate to your Batch account. You can click on Jobs which will expand the jobs blade. Click on the relevant task and then click on Files on node. You should see both stderr.txt and stdout.txt for viewing. You can also retrieve these files programmatically through the .NET SDK via CloudTask.GetNodeFile/GetNodeFileAsync.

您还可以将RDP放入计算节点,并查看Windows Event Viewer,以进一步了解程序崩溃的原因.通过导航到执行任务的计算节点(池->选择池->节点->选择节点)并添加远程用户,可以通过Azure门户生成RDP凭据.

You can also RDP into your compute node and look at the Windows Event Viewer to gain further insight into why your program is crashing. You can generate RDP credentials through the Azure Portal by navigating to the compute node that executed your task (Pools -> Select Pool -> Nodes -> Select Node) and adding a remote user.

就您的退出代码而言,-1073741819是C0000005(似乎是访问冲突),而-532462766是E0434352(似乎是CLR异常).您将需要对代码为何产生这些错误的原因进行一些研究.一种健全性检查是确保您将所有必需的DLL和程序集与程序一起打包为应用程序包的一部分,或与任务资源文件一起打包.

As far as your exit code, -1073741819 is C0000005 (appears to be an Access Violation) and -532462766 is E0434352 (appears to be a CLR exception). You will want to do some research into why your code is producing these errors. One sanity check is to ensure that you are packaging all of the required DLLs and assemblies with your program as part of an Application Package or with task resource files.

这篇关于Azure批处理服务任务退出代码错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆