redmine_git_mirror icon indicating copy to clipboard operation
redmine_git_mirror copied to clipboard

Unable to mirror gitlab project

Open thomas955 opened this issue 5 years ago • 1 comments

Hi,

currently im not able to mirror a project from my gitlab instance into redmine.

I always get "URL Permission denied, please try again." I read the realy short documentation and there is the section about private Repositories:
"At this moment only ssh access with redmine user ssh key is supported."

What does this mean? My repos in gitlab are accessible via ssh "git@gitlab" or https. Which key do i need to provide to gitlab? I tried to clone the repo as redmine user and its ssh key and its working (Pubkey as deploykey in the gitlab project - repository).

How should i specify username and or key in the url?

Thank you in advance, Thomas

thomas955 avatar Dec 11 '19 09:12 thomas955

In my case it starts working when I've put gitlab deploy key (private part) in .ssh folder in home folder for the user from which redmine has started and working. I'm using shared hosting and at first I've get the same error as you, but after a little of debugging I've realized that ruby environment (passanger in my case) started from another user, thus my administrative user's .ssh folder just was the wrong place for gitlab deploy key.

barzhomi avatar Mar 19 '21 09:03 barzhomi