GitLab Privat Token expired for cco initialize-gitlab
Closed this issue · 0 comments
zelima commented
Getting exit status 22 when trying to initialize-gitlab.
ckan-cloud-operator initialize-gitlab me/cloud-my-new-instance
# Logs
subprocess.CalledProcessError: Command '['curl', '-f', '-s', '--header', 'PRIVATE-TOKEN: my-TOkEn', 'https://gitlab.com/api/v4/projects/me%2Fcloud-my-new-instance']' returned non-zero exit status 22.
Tried to run curl command manually:
curl -f -s --header "PRIVATE-TOKEN: my-Token" https://gitlab.com/api/v4/projects/me%2Fcloud-my-new-instance -v
...
> Host: gitlab.com
> User-Agent: curl/7.47.0
> Accept: */*
> PRIVATE-TOKEN: My-TOkEn
>
* The requested URL returned error: 404 Not Found
* Closing connection 0
After Generating new personal token (with my account) problem is gone. So we need to generate a new one for a production cluster and update appropriate ENV