Cannot observe GitLab repository

I would like to observe a GitLab repo on my self-hosted instance.

Here is the process I followed:

  1. Create a credential for phabricator in Passphrase using Phabricator to generate the SSH private key with username ‘phabricator-xxx’

  2. Copy the public key for said credential and add it to the trusted SSH keys in GitLab

  3. Go to Diffusion, Create Git Repository with a custom name and short-name

  4. Add GitLab’s SSH clone URL as the URI, selecting credential

  5. Activate repository

After some time, the importing fails with:

Error updating working copy: Command failed with error #128!
COMMAND
git clone --bare -- '********' '/usr/local/lib/php/phabricator/repo/8'

STDOUT
(empty)

STDERR
Cloning into bare repository '/usr/local/lib/php/phabricator/repo/8'...
ssh: connect to host gitlab.com port 22: Permission denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

I have been trying every way I could, no success… What could I do?

Thanks for your help!

@bertalanp99 Can you at least ssh to gitlab at your command line prompt as the user you specified using that key? Can you do a local git clone using only that key?

Yes, I was able to do that.

Since then, I managed to get Diffusion repository hosting to work, so I am not facing this problem any more. Thanks for your help and sorry for the noise.

wisdom_of_the_ancients

1 Like