Reputation: 559
I want to integrate my private gitlab repository into 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.
When I run notebook instance by linking git repo, it failed with following message.
fatal: could not read Username for 'https://gitlab.com/my/repo.git': terminal prompts disabled
Is there any step I am missing?
Upvotes: 6
Views: 837
Reputation: 429
The AWS documentation states that this error can occur in the following scenarios:
But in my case, what fixed the problem was adding the .git
at the end of the address. More specifically, the following format: https://gitlab.com/username/repository
was causing error; changing it to: https://gitlab.com/username/repository.git
fixed the issue for me.
I have also double checked that the above two conditions were met prior to adding .git
, so it seems like the documentation was off.
Upvotes: 1