我試圖在JobPerparationTask期間安裝文件共享(不是blob存儲)。我的節點操作系統是Ubuntu 16.04。Azure Batch JobPreparationTask失敗,並顯示「UserError」
要做到這一點,我做了以下內容:
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_commands
和end_commands
都很好,但也有一些是錯誤的用戶權限...
我沒有得到任何輸出在stderr.txt
或stdout.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
,但沒有改變。
任何人有任何想法?