Upgrade error(EXCEPTION: (Exception) Define 'phabricator.base-uri' in your configuration to continue)


#1

phabricator_search.search_savedquery OK
phabricator_search.stopwords OK

  • /srv/phabricator/phabricator/bin/storage upgrade --force
    Applying patch “phabricator:20180208.maniphest.02.populate.php” to host “pha-mysql”…
    [2018-02-12 14:42:40] EXCEPTION: (Exception) Define ‘phabricator.base-uri’ in your configuration to continue. at [/src/infrastructure/env/PhabricatorEnv.php:496]
    arcanist(head=master, ref.master=349109426c7f), phabricator(head=master, ref.master=1628a10810a6, custom=7), phutil(head=master, ref.master=5cc0e90e5a05)
    #0 PhabricatorEnv::getAnyBaseURI() called at [/src/infrastructure/env/PhabricatorEnv.php:456]
    #1 PhabricatorEnv::getCDNURI(string) called at [/src/applications/people/cache/PhabricatorUserProfileImageCacheType.php:112]
    #2 PhabricatorUserProfileImageCacheType::getCacheVersion(PhabricatorUser) called at [/src/applications/people/cache/PhabricatorUserProfileImageCacheType.php:107]
    #3 PhabricatorUserProfileImageCacheType::isRawCacheDataValid(PhabricatorUser, string, string) called at [/src/applications/people/query/PhabricatorPeopleQuery.php:580]
    #4 PhabricatorPeopleQuery::fillUserCaches(array) called at [/src/applications/people/query/PhabricatorPeopleQuery.php:448]
    #5 PhabricatorPeopleQuery::rebuildAvailabilityCache(array) called at [/src/applications/people/query/PhabricatorPeopleQuery.php:208]
    #6 PhabricatorPeopleQuery::didFilterPage(array) called at [/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:273]
    #7 PhabricatorPolicyAwareQuery::execute() called at [/src/applications/phid/type/PhabricatorPHIDType.php:91]
    #8 PhabricatorPHIDType::loadObjects(PhabricatorObjectQuery, array) called at [/src/applications/phid/query/PhabricatorObjectQuery.php:153]
    #9 PhabricatorObjectQuery::loadObjectsByPHID(array, array) called at [/src/applications/phid/query/PhabricatorObjectQuery.php:73]
    #10 PhabricatorPolicyAwareQuery::execute() called at [/src/applications/phid/query/PhabricatorHandleQuery.php:46]
    #11 PhabricatorHandleQuery::loadPage() called at [/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:236]
    #12 PhabricatorPolicyAwareQuery::execute() called at [/src/applications/phid/handle/pool/PhabricatorHandlePool.php:73]
    #13 PhabricatorHandlePool::loadPHIDs(array) called at [/src/applications/phid/handle/pool/PhabricatorHandleList.php:44]
    #14 PhabricatorHandleList::loadHandles() called at [/src/applications/phid/handle/pool/PhabricatorHandleList.php:49]
    #15 PhabricatorHandleList::getHandle(string) called at [/src/applications/phid/handle/pool/PhabricatorHandleList.php:130]
    #16 PhabricatorHandleList::current()
    #17 iterator_to_array(PhabricatorHandleList) called at [/src/applications/transactions/query/PhabricatorApplicationTransactionQuery.php:144]
    #18 PhabricatorApplicationTransactionQuery::willFilterPage(array) called at [/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:247]
    #19 PhabricatorPolicyAwareQuery::execute() called at [/resources/sql/autopatches/20180208.maniphest.02.populate.php:34]
    #20 require_once(string) called at [/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:285]
    #21 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:241]
    #22 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:1103]
    #23 PhabricatorStorageManagementWorkflow::doUpgradeSchemata(array, NULL, boolean, boolean) called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:849]
    #24 PhabricatorStorageManagementWorkflow::upgradeSchemata(array, NULL, boolean, boolean) called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:78]
    #25 PhabricatorStorageManagementUpgradeWorkflow::didExecute(PhutilArgumentParser) called at [/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementWorkflow.php:107]
    #26 PhabricatorStorageManagementWorkflow::execute(PhutilArgumentParser) called at [/src/parser/argument/PhutilArgumentParser.php:441]
    #27 PhutilArgumentParser::parseWorkflowsFull(array) called at [/src/parser/argument/PhutilArgumentParser.php:333]
    #28 PhutilArgumentParser::parseWorkflows(array) called at [/scripts/sql/manage_storage.php:249]
    [ FAILED ] /etc/init.simple/10-boot-conf

#2

solved by:

./bin/config set phabricator.base-uri ‘http://phab.localhost/