ezbz / gitlabber

Gitlabber - clones or pulls entire groups tree from gitlab
MIT License
483 stars 80 forks source link

gitlabber keeps asking for entering password of the gitlab account #3

Closed ktaa13 closed 4 years ago

ktaa13 commented 4 years ago

when i run gitlabber with access token and gitlab URL, it keeps prompting for a password. I tried to add the access token and the gitlab password but is kept prompting again and wasn't cloning the repositories

ezbz commented 4 years ago

The access token and URL are for accessing the gitlab API.

The password prompt is for cloning the repositories. Type your gitlab username and password to clone the repositories.

ktaa13 commented 4 years ago

I tired but it still keeps prompting and doesn’t clone the repository

ezbz commented 4 years ago

means you don't have permissions, did you try to clone the repository directly (without gitlabber)?

can you please run

export GIT_PYTHON_TRACE='full'

and then run gitlabber again with the --debug flag and post the output here?

dkrystall commented 4 years ago

I'm having the same issue, it looked like it was trying to access the repo's over ssh given the token and the url. It didn't prompt for a username/pw like it would over https, just a password field. I can access the repositories over https just fine. Do I need to setup an ssh key?

dkrystall commented 4 years ago

I'm having the same issue, it looked like it was trying to access the repo's over ssh given the token and the url. It didn't prompt for a username/pw like it would over https, just a password field. I can access the repositories over https just fine. Do I need to setup an ssh key?

Yeah I setup an ssh key and it seems to be working fine 👍 Think you'll add HTTPS support in the future?

lnksz commented 4 years ago

Similar issue here. But I am not allowed to use ssh, so I am stuck

ezbz commented 4 years ago

10 adds support for http-based cloning, gitlabber will use the http_url_to_repo from Gitlab API (see https://docs.gitlab.com/ee/api/projects.html)