0

我一直在尝试通过 azure ml python sdk 发送火车作业:

from azureml.core import Workspace, Experiment, ScriptRunConfig 

if __name__ == "__main__":
    ws = Workspace.from_config()
    experiment = Experiment(workspace=ws, name='ConstructionTopicsModel')

    config = ScriptRunConfig(source_directory='./',
                         script='src/azureml/train.py',
                         arguments=None,
                         compute_target='ComputeTargetName',
                         )

    env = ws.environments['test-env']
    config.run_config.environment = env
    run = experiment.submit(config)
    
    run.wait_for_completion(show_output=True)

    aml_url = run.get_portal_url()
    print(aml_url)

但我收到了这样的ServiceError信息:

AzureMLCompute job failed. FailedLoginToImageRegistry: Unable to login to docker image repo
Reason: Failed to login to the docker registry
error: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

serviceURL: 7ac86b04d6564d36aa80ae2ad090582c.azurecr.io
Reason: WARNING! Using --password via the CLI is insecure. Use --password-stdin. Error saving credentials: error storing credentials - err: exit status 1, out: `Cannot autolaunch D-Bus without X11 $DISPLAY`

Info: Failed to setup runtime for job execution: Job environment preparation failed on 10.0.0.5 with err exit status 1.

我也尝试使用 azure cli 没有成功,同样的错误信息

4

1 回答 1

0

到目前为止,我发现完成这项工作的唯一方法是在计算目标本身的终端上运行它。这就是 docker 错误消失的方式。尝试从不同计算实例的终端运行实验会引发异常。

于 2022-01-31T16:08:50.913 回答