Page MenuHomePhabricator

Unable to apply 'phabricator:20150504.symbolsproject.1.php': Table 'phabricator_spaces.spaces_namespace' doesn't exist
Closed, ResolvedPublic

Description

The fix for T8691 solved that particular problem, but it helped the upgrade process only two steps ahead. The next bump is:

Applying patch 'phabricator:20150504.symbolsproject.1.php'...
[2015-06-27 13:38:13] EXCEPTION: (AphrontSchemaQueryException) #1146: Table 'phabricator_spaces.spaces_namespace' doesn't exist at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:308]
arcanist(head=master, ref.master=29839e8c72c5), phabricator(head=master, ref.master=76e69f0be5c1), phutil(head=master, ref.master=ea6830cc8019)
  #0 AphrontBaseMySQLDatabaseConnection::throwQueryCodeException(integer, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:275]
  #1 AphrontBaseMySQLDatabaseConnection::throwQueryException(mysqli) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:181]
  #2 AphrontBaseMySQLDatabaseConnection::executeRawQuery(string) called at [<phutil>/src/xsprintf/queryfx.php:6]
  #3 queryfx(AphrontMySQLiDatabaseConnection, string, string, string, string, string, string, string, string, string, string)
  #4 call_user_func_array(string, array) called at [<phutil>/src/xsprintf/queryfx.php:11]
  #5 queryfx_all(AphrontMySQLiDatabaseConnection, string, string, string, string, string, string, string, string, string, string) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:99]
  #6 PhabricatorCursorPagedPolicyAwareQuery::loadStandardPageRows(PhabricatorSpacesNamespace) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:81]
  #7 PhabricatorCursorPagedPolicyAwareQuery::loadStandardPage(PhabricatorSpacesNamespace) called at [<phabricator>/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php:40]
  #8 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/src/applications/spaces/query/PhabricatorSpacesNamespaceQuery.php:114]
  #9 PhabricatorSpacesNamespaceQuery::getAllSpaces() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:1769]
  #10 PhabricatorCursorPagedPolicyAwareQuery::buildSpacesWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:276]
  #11 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/applications/repository/query/PhabricatorRepositoryQuery.php:425]
  #12 PhabricatorRepositoryQuery::buildWhereClauseParts(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:264]
  #13 PhabricatorCursorPagedPolicyAwareQuery::buildWhereClause(AphrontMySQLiDatabaseConnection) called at [<phabricator>/src/infrastructure/query/policy/PhabricatorCursorPagedPolicyAwareQuery.php:95]
  #14 PhabricatorCursorPagedPolicyAwareQuery::loadStandardPageRows(PhabricatorRepository) called at [<phabricator>/src/applications/repository/query/PhabricatorRepositoryQuery.php:159]
  #15 PhabricatorRepositoryQuery::loadPage() called at [<phabricator>/src/infrastructure/query/policy/PhabricatorPolicyAwareQuery.php:227]
  #16 PhabricatorPolicyAwareQuery::execute() called at [<phabricator>/resources/sql/autopatches/20150504.symbolsproject.1.php:21]
  #17 require_once(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:226]
  #18 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:191]
  #19 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:190]
  #20 PhabricatorStorageManagementUpgradeWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:406]
  #21 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:301]
  #22 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:176]

My installation has been running for a while now, but is otherwise plain vanilla (I have made no customizations other than the configuration settings). If you need any additional information please let me know.

Revisions and Commits

Event Timeline

FvD assigned this task to epriestley.
FvD raised the priority of this task from to Needs Triage.
FvD updated the task description. (Show Details)
FvD added a subscriber: FvD.
epriestley closed this task as Resolved by committing Restricted Diffusion Commit.Jun 27 2015, 8:45 PM
epriestley added a commit: Restricted Diffusion Commit.

Sorry about that -- that patch should fix this one. Let me know if you hit anything else.

epriestley added a commit: Restricted Diffusion Commit.Jun 28 2015, 2:40 PM

Thanks! This did the trick and the update completed without further issues.