gitlab API unathorized

Viewed 4655

I tried to create a project by importing manually my git repo. I followed that tutorial : https://gitlab.com/gitlab-org/gitlab-ce/blob/master/doc/raketasks/import.md

At the end I got that error : * Failed trying to create xxx (xxx/xxx.git) Errors: {:base=>["Failed to create repository via gitlab-shell"]} By reading gitlab-shell.log file I discover that access to the API is forbidden I got the following error : {"message":"401 Unauthorized"}

With that URL : https://xxx/api/v4/internal/check Do you know how can I fix this ?

2 Answers

u need to genrate private Token :

open your account gitlab -> settings->genrate private Token

Related