When importing a repository, if you have no phabricator.base-uri configured, then the repository remains on "Importing" status and seems quite happy (although seemingly making no progress), despite the log showing that the daemon is repeatedly crashing and restarting. This crashing stopped (and my import completion percent started to rise above 0.00%) as soon as I ran the suggested command to fix phabricator.base-uri. From bin/phd log:
Daemon 4 WAIT [Tue, 30 Dec 2014 05:49:56 +0000] Waiting to restart process. Daemon 3 INIT [Tue, 30 Dec 2014 05:49:56 +0000] Starting process. Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] [2014-12-30 05:49:57] EXCEPTION: (PhutilProxyException) Error while executing task ID 741 from queue. {>} (Exception) Define 'phabricator.base-uri' in your configuration to continue. at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:386] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #0 PhabricatorEnv::getAnyBaseURI() called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:317] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #1 PhabricatorEnv::getProductionURI(string) called at [<phabricator>/src/applications/differential/conduit/DifferentialParseCommitMessageConduitAPIMethod.php:89] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #2 DifferentialParseCommitMessageConduitAPIMethod::execute(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/method/ConduitAPIMethod.php:65] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #3 ConduitAPIMethod::executeMethod(ConduitAPIRequest) called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:130] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #4 ConduitCall::executeMethod() called at [<phabricator>/src/applications/conduit/call/ConduitCall.php:80] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #5 ConduitCall::execute() called at [<phabricator>/src/applications/diffusion/query/lowlevel/DiffusionLowLevelCommitFieldsQuery.php:41] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #6 DiffusionLowLevelCommitFieldsQuery::executeQuery() called at [<phabricator>/src/applications/diffusion/query/lowlevel/DiffusionLowLevelQuery.php:23] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #7 DiffusionLowLevelQuery::execute() called at [<phabricator>/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryCommitMessageParserWorker.php:63] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #8 PhabricatorRepositoryCommitMessageParserWorker::updateCommitData(DiffusionCommitRef) called at [<phabricator>/src/applications/repository/worker/commitmessageparser/PhabricatorRepositoryGitCommitMessageParserWorker.php:15] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #9 PhabricatorRepositoryGitCommitMessageParserWorker::parseCommit(PhabricatorRepository, PhabricatorRepositoryCommit) called at [<phabricator>/src/applications/repository/worker/PhabricatorRepositoryCommitParserWorker.php:44] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #10 PhabricatorRepositoryCommitParserWorker::doWork() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorWorker.php:91] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #11 PhabricatorWorker::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/storage/PhabricatorWorkerActiveTask.php:156] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #12 PhabricatorWorkerActiveTask::executeTask() called at [<phabricator>/src/infrastructure/daemon/workers/PhabricatorTaskmasterDaemon.php:19] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #13 PhabricatorTaskmasterDaemon::run() called at [<phutil>/src/daemon/PhutilDaemon.php:91] Daemon 3 STDE [Tue, 30 Dec 2014 05:49:57 +0000] #14 PhutilDaemon::execute() called at [<phutil>/scripts/daemon/exec/exec_daemon.php:111] Daemon 3 FAIL [Tue, 30 Dec 2014 05:49:57 +0000] (255) Process exited with error 255. Daemon 3 WAIT [Tue, 30 Dec 2014 05:49:57 +0000] Waiting to restart process.
I think this is a valid issue, but if it's not because I didn't bother to set up my local test instance properly then I wouldn't be too surprised.