Page MenuHomePhabricator

Observer URI fails to clone
Closed, ResolvedPublic

Description

Under the status tab of the project:

Error updating working copy: Command failed with error #128!
COMMAND
git clone --bare -- '********' '/var/repo/1'

STDOUT
(empty)

STDERR
Cloning into bare repository '/var/repo/1'...
Warning: Permanently added 'github.com,192.30.253.112' (RSA) to the list of known hosts.
fatal: remote error: 
%s is not a valid repository name
Email support@github.com for help

Checking the log files I found:

[24-Sep-2016 12:18:04 UTC] [2016-09-24 12:18:04] EXCEPTION: (PhutilProxyException) Error while updating the "tesseract" repository. {>} (CommandException) Command failed with error #255!
COMMAND
'/var/www/phabricator/bin/repository' update  -- 'rTCT'

STDOUT
(empty)

STDERR
[2016-09-24 12:18:04] EXCEPTION: (CommandException) Command failed with error #128!
COMMAND
git clone --bare -- '********' '/var/repo/1'

STDOUT
(empty)

STDERR
Cloning into bare repository '/var/repo/1'...
Warning: Permanently added 'github.com,192.30.253.113' (RSA) to the list of known hosts.
fatal: remote error:
  %s is not a valid repository name
  Email support@github.com for help
 at [<phutil>/src/future/exec/ExecFuture.php:369]
arcanist(head=stable, ref.master=483e985d08d2, ref.stable=e7906e47cba2), phabricator(head=stable, ref.master=38b10f05a224, ref.stable=27006fedccc2), phutil(head=stable, ref.master=1a0371a2247a, ref.stable=518dacd785fb)
  #0 ExecFuture::resolvex() called at [<phabricator>/src/applications/repository/storage/PhabricatorRepository.php:482]
  #1 PhabricatorRepository::execxRemoteCommand(string, PhutilOpaqueEnvelope, string) called at [<phabricator>/src/applications/repository/engine/PhabricatorRepositoryPullEngine.php:257]
  #2 PhabricatorRepositoryPullEngi... (856 more bytes) ... at [<phutil>/src/future/exec/ExecFuture.php:369]
[24-Sep-2016 12:18:04 UTC] arcanist(head=stable, ref.master=483e985d08d2, ref.stable=e7906e47cba2), phabricator(head=stable, ref.master=38b10f05a224, ref.stable=27006fedccc2), phutil(head=stable, ref.master=1a0371a2247a, ref.stable=518dacd785fb)
[24-Sep-2016 12:18:04 UTC]   #0 <#3> ExecFuture::resolvex() called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:437]
[24-Sep-2016 12:18:04 UTC]   #1 phlog(PhutilProxyException) called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:444]
[24-Sep-2016 12:18:04 UTC]   #2 PhabricatorRepositoryPullLocalDaemon::resolveUpdateFuture(PhabricatorRepository, ExecFuture, integer) called at [<phabricator>/src/applications/repository/daemon/PhabricatorRepositoryPullLocalDaemon.php:221]
[24-Sep-2016 12:18:04 UTC]   #3 PhabricatorRepositoryPullLocalDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:181]
[24-Sep-2016 12:18:04 UTC]   #4 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:127]

This is a completely fresh install, I'm just trying to evaluate Phabricator before a full migration. Running off the stable branches of each sub-project as mentioned in the log. To reproduce add a repo. with an observe URI and start it.

Event Timeline

How can I reproduce this locally? See Providing Reproduction Steps for help on providing reproduction steps.

The basic set of implied steps ("observe any repository") works properly for me (this one is even coming from GitHub):

$ ./bin/repository update R55 --trace
...
>>> [18] <exec> $ git clone --bare -- '********' '/Users/epriestley/dev/core/repo/local/55'
<<< [18] <exec> 1,522,697 us
...
<<< [51] <query> 756 us
Updated repository "zz71RR".

Not sure how this was set up, but I noticed this in the logs.

fatal: remote error:
%s is not a valid repository name
Email support@github.com for help

I can't reproduce it anymore I'm afraid. Before I posted this I tried deactivating the repo, disable/enable the URI to no avail.
After I posted I removed the repo from the command line and recreated it from scratch. It now works. All the details are the same (I'm using a private key).
Works fine now
-\o/-
I've added other repos, observed and hosted (public and private) since posting and they work too. I don't know what caused this to happen on the first repo I created but I can't reproduce it since doing the remove.