【问题标题】:Azure Batch JobPreparationTask fails with "UserError"Azure Batch JobPreparationTask 因“UserError”而失败
【发布时间】:2017-10-16 16:12:16
【问题描述】:

我正在尝试在JobPerparationTask 期间挂载文件共享(不是 blob 存储)。我的节点操作系统是 Ubuntu 16.04。

为此,我正在执行以下操作:

job_user = batchmodels.AutoUserSpecification(
    scope=batchmodels.AutoUserScope.pool,
    elevation_level=batchmodels.ElevationLevel.admin)

start_task = batch.models.JobPreparationTask(command_line=start_commands, user_identity=batchmodels.UserIdentity(auto_user=job_user))
end_task = batch.models.JobReleaseTask(command_line=end_commands,user_identity=batchmodels.UserIdentity(auto_user=job_user))

job = batch.models.JobAddParameter(
    job_id,
    batch.models.PoolInformation(pool_id=pool_id),job_preparation_task=start_task, job_release_task=end_task)

我的start_commandsend_commands 很好,但是用户权限有问题...

stderr.txtstdout.txt 文件中没有输出。 我没有看到任何日志(它们在哪里?)。我所能找到的只是一条显示此消息的消息:

Exit code
   1
Retry count
  0
Failure info
Category
  UserError
Code
  FailureExitCode
Message
  The task exited with an exit code representing a failure
Details
  Message: The task exited with an exit code representing a failure

非常详细的错误信息!

反正我也试过把AutoUserScope.oool改成AutoUserScope.task,但是没有任何变化。

有人有什么想法吗?

【问题讨论】:

    标签: python ubuntu azure-batch


    【解决方案1】:

    这个问题让我很沮丧,因为我无法从我的应用程序中获取任何日志。

    我最终做的是 RDP'ing 进入我的作业运行的节点,转到 Azure Batch Compute Environment Variables 中指定的 %AZ_BATCH_TASK_WORKING_DIR%,然后检查我的作业中的 stdout.txtstderr.txt

    错误是我错误地制定了我的CloudTask 的命令行,所以它一开始就无法启动我的应用程序。

    在 Azure 门户中将 RDP 导入您的计算机:

    1. 批量帐号
    2. 泳池(选择您的泳池)
    3. 节点
    4. 选择运行您的作业的节点
    5. 选择顶部的“连接”链接。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2020-09-17
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-02-16
      • 1970-01-01
      相关资源
      最近更新 更多