Page MenuHomePhabricator

Import remote git repository holds on Initializing
Closed, InvalidPublic

Description

I tried to import a git repository that is hosted at bitbucket.

Import runs fine, but the repo is not imported:

No Working Copy Yet	Waiting for daemons to build a working copy

when I run

phabricator/bin/repository update TR --trace

I get this result

phabricator/bin/repository update TR --trace
>>> [2] <connect> phabricator_repository
<<< [2] <connect> 3,404 us
>>> [3] <query> SELECT `r`.* FROM `repository` r  WHERE (r.callsign IN ('TR'))   ORDER BY `r`.`id` DESC 
<<< [3] <query> 1,543 us
>>> [4] <lock> ph:phabric-6rILUDHKjHKu:repository.update:10
>>> [5] <connect> phabricator_repository
<<< [5] <connect> 1,209 us
>>> [6] <query> SET wait_timeout = 2147483
<<< [6] <query> 782 us
>>> [7] <query> SELECT GET_LOCK('ph:phabric-6rILUDHKjHKu:repository.update:10', 0)
<<< [7] <query> 835 us
<<< [4] <lock> 5,614 us
>>> [8] <connect> phabricator_repository
<<< [8] <connect> 1,270 us
>>> [9] <query> INSERT INTO `repository_statusmessage`
          (repositoryID, statusType, statusCode, parameters, epoch)
          VALUES (10, 'fetch', 'error', '{\"message\":\"Error updating working copy: Another process is currently holding the update lock for repository \\\"rTR\\\". Repositories may only be updated by one process at a time. This can happen if you are running multiple copies of the daemons. This can also happen if you manually update a repository while the daemons are also updating it (in this case, ju
<<< [9] <query> 15,707 us
[2015-11-02 07:27:01] EXCEPTION: (PhutilProxyException) Another process is currently holding the update lock for repository "rTR". Repositories may only be updated by one process at a time. This can happen if you are running multiple copies of the daemons. This can also happen if you manually update a repository while the daemons are also updating it (in this case, just try again in a few moments). {>} (PhutilLockException) ph:phabric-6rILUDHKjHKu:repository.update:10 at [<phabricator>/src/infrastructure/util/PhabricatorGlobalLock.php:105]
arcanist(head=master, ref.master=9c056c5cc887), phabricator(head=master, ref.master=284fe0fe51ce), phutil(head=master, ref.master=c72eb747e706)
  #0 <#2> PhabricatorGlobalLock::doLock(double) called at [<phutil>/src/filesystem/PhutilLock.php:168]
  #1 <#2> PhutilLock::lock() called at [<phabricator>/src/applications/repository/management/PhabricatorRepositoryManagementUpdateWorkflow.php:60]
  #2 PhabricatorRepositoryManagementUpdateWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
  #3 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
  #4 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/repository/manage_repositories.php:22]

Any idea what the problem could be? How can I find out what is blocking the process? I also tried to restart phd but this had no effect.

Event Timeline

maxie updated the task description. (Show Details)
maxie added a project: Diffusion.
maxie added a subscriber: maxie.
epriestley claimed this task.
epriestley added a subscriber: epriestley.

I can't reproduce this, nor do we have reports from other users. See Contributing Bug Reports.