[英]AWS Sagemaker fatal: could not read Username for 'https://gitlab.com/my/repo.git': terminal prompts disabled
I want to integrate my private gitlab repository into AWS Sagemaker.我想将我的私有 gitlab 存储库集成到 AWS Sagemaker。
I added git repository on Sagemaker using https protocol (it allows only this protocol) and saved secrets(username and password of my gitlab account) for git repo. I added git repository on Sagemaker using https protocol (it allows only this protocol) and saved secrets(username and password of my gitlab account) for git repo.
When I run notebook instance by linking git repo, it failed with following message.当我通过链接 git 存储库运行笔记本实例时,它失败并显示以下消息。
fatal: could not read Username for 'https://gitlab.com/my/repo.git': terminal prompts disabled
Is there any step I am missing?有没有我遗漏的步骤?
The AWS documentation states that this error can occur in the following scenarios: AWS 文档指出,在以下情况下可能会发生此错误:
But in my case, what fixed the problem was adding the .git
at the end of the address.但就我而言,解决问题的方法是在地址末尾添加.git
。 More specifically, the following format: https://gitlab.com/username/repository
was causing error;更具体地说,以下格式: https://gitlab.com/username/repository
导致错误; changing it to: https://gitlab.com/username/repository.git
fixed the issue for me.将其更改为: https://gitlab.com/username/repository.git
为我解决了这个问题。
I have also double checked that the above two conditions were met prior to adding .git
, so it seems like the documentation was off.在添加.git
之前,我还仔细检查了上述两个条件是否满足,因此文档似乎已关闭。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.