Page MenuHomePhabricator

Host key verification failed on GitHub repo using deploy key
Closed, ResolvedPublic

Description

I'm attempting to add a private GitHub repo to Diffusion, but not having much luck. I'm using a deploy key for authentication. I ran the test_connection.php script and it claimed that the connection was successful. I was also able to manually clone the repo.

However, the PhabricatorRepositoryPullLocalDaemon process is failing with the following error message:

[2014-10-16 09:50:06] EXCEPTION: (PhutilProxyException) Error while fetching changes to the 'CC' repository. {>} 
(CommandException) Command failed with error #128! 
COMMAND ssh-agent sh -c '(ssh-add '\''xxxxx'\'' && HOME='\''/phabricator/instances/dev/phabricator/support/empty/'\'' git clone --origin origin '\''git@github.<REDACTED>.com:<REDACTED>.git'\'''\''/home/phab/repos/<REDACTED>'\'')'
STDOUT (empty)

STDERR Identity added: /home/phab/.ssh/id_rsa (/home/phab/.ssh/id_rsa) Cloning into '/home/phab/repos/<REDACTED>'
... Host key verification failed. fatal: Could not read from remote repository.

Please make sure you have the correct access rights and the repository exists. 
at [/phabricator/instances/dev/libphutil/src/future/exec/ExecFuture.php:331] 
#0 phlog(Object PhutilProxyException) called at [/phabricator/instances/dev/phabricator/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:158] 
#1 PhabricatorRepositoryPullLocalDaemon::run() called at [/phabricator/instances/dev/libphutil/src/daemon/PhutilDaemon.php:81] 
#2 PhutilDaemon::execute() called at [/phabricator/instances/dev/libphutil/scripts/daemon/exec/exec_daemon.php:112]

Event Timeline

levi.blackstone raised the priority of this task from to Needs Triage.
levi.blackstone updated the task description. (Show Details)
levi.blackstone added a project: Diffusion.

You have a very old version of Phabricator. Try updating.

levi.blackstone claimed this task.

That did the trick. Thanks!