Hi everyone, I just started using pulumi component...
# getting-started
a
Hi everyone, I just started using pulumi components and am trying to download my package from a private Gitlab registry using the “pulumi package add” command. Despite specifying GITLAB_TOKEN as the env variable, I always get a denied access. I have tried different paths, e.g.: “pulumi package add https://<privategitlabhost>/playground/pulumicomponent1.git” or https://username:pw@<privategitlabhost>/playground/pulumicomponent1.git. can anyone help me?
q
Can you show the full error message please? I'm mainly interested in whether you're getting access denied for pulling the Git repository, or whether it's for some internal libraries your component is referencing
a
hi the error is: pulumi package add https://privategitlab.net/platform/playground/pulumicomponent1.git error: failed to get schema: authentication required: HTTP Basic: Access denied. If a password was provided for Git authentication, the password was incorrect or you're required to use a token instead of a password. If a token was provided, it was either incorrect, expired, or improperly scoped. See https://privategitlab.net/help/topics/git/troubleshooting_git.md#error-on-git-fetch-http-basic-access-denied
I also have provided a token with export GITLAB_TOKEN=...
q
Does the gitlab token have pull access to that repository? I've just tried with a private GitLab repo on my end and it works 🤔
a
yes it has access, i tried it with standard git commands. is there a way to debug these pulumi cli commands?
q
Adding
--logflow -v*=*10
should give you debug logs. Could you please open an issue for this problem here. The team will look into it!
a
Ok I have found the problem. I used the pulumi version v3.167.0 instead of v3.170.0. now it works. thanks for your help