I proceed with upgrade of storage after git pull all from master. But unfortunately it failed with such error:
| 1 | # ./phabricator/bin/storage upgrade --force --user root --password password |
|---|---|
| 2 | |
| 3 | Applying patch 'phabricator:20140722.appname.php'... |
| 4 | Migrating user preferences... |
| 5 | Migrating dashboard installs... |
| 6 | Migrating `phabricator.uninstalled-applications` config... |
| 7 | [2014-08-02 01:02:07] EXCEPTION: (AphrontQueryConnectionException) Attempt to connect to root@localhost failed with error #1045: Access denied for user 'root'@'localhost' (using password: NO). at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:65] |
| 8 | #0 AphrontMySQLiDatabaseConnection::connect() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnectionBase.php:97] |
| 9 | #1 AphrontMySQLDatabaseConnectionBase::establishConnection() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLDatabaseConnectionBase.php:120] |
| 10 | #2 AphrontMySQLDatabaseConnectionBase::requireConnection() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:15] |
| 11 | #3 AphrontMySQLiDatabaseConnection::escapeBinaryString(string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:11] |
| 12 | #4 AphrontMySQLiDatabaseConnection::escapeUTF8String(string) called at [<phutil>/src/xsprintf/qsprintf.php:170] |
| 13 | #5 xsprintf_query(AphrontMySQLiDatabaseConnection, string, integer, string, integer) called at [<phutil>/src/xsprintf/xsprintf.php:63] |
| 14 | #6 xsprintf(string, AphrontMySQLiDatabaseConnection, array) called at [<phutil>/src/xsprintf/qsprintf.php:64] |
| 15 | #7 qsprintf(AphrontMySQLiDatabaseConnection, string, string, string, string, string) |
| 16 | #8 call_user_func_array(string, array) called at [<phutil>/src/xsprintf/queryfx.php:5] |
| 17 | #9 queryfx(AphrontMySQLiDatabaseConnection, string, string, string, string, string) |
| 18 | #10 call_user_func_array(string, array) called at [<phutil>/src/xsprintf/queryfx.php:16] |
| 19 | #11 queryfx_all(AphrontMySQLiDatabaseConnection, string, string, string, string, string) |
| 20 | #12 call_user_func_array(string, array) called at [<phutil>/src/aphront/storage/connection/AphrontDatabaseConnection.php:20] |
| 21 | #13 AphrontDatabaseConnection::queryData(string, string, string, string, string) |
| 22 | #14 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:496] |
| 23 | #15 LiskDAO::loadRawDataWhere(string, string, string) |
| 24 | #16 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:460] |
| 25 | #17 LiskDAO::loadOneWhere(string, string, string) called at [<phabricator>/src/applications/config/storage/PhabricatorConfigEntry.php:30] |
| 26 | #18 PhabricatorConfigEntry::loadConfigEntry(string) called at [<phabricator>/resources/sql/autopatches/20140722.appname.php:131] |
| 27 | #19 require_once(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:196] |
| 28 | #20 PhabricatorStorageManagementAPI::applyPatchPHP(string) called at [<phabricator>/src/infrastructure/storage/management/PhabricatorStorageManagementAPI.php:171] |
| 29 | #21 PhabricatorStorageManagementAPI::applyPatch(PhabricatorStoragePatch) called at [<phabricator>/src/infrastructure/storage/management/workflow/PhabricatorStorageManagementUpgradeWorkflow.php:168] |
| 30 | #22 PhabricatorStorageManagementUpgradeWorkflow::execute(PhutilArgumentParser) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:394] |
| 31 | #23 PhutilArgumentParser::parseWorkflowsFull(array) called at [<phutil>/src/parser/argument/PhutilArgumentParser.php:290] |
| 32 | #24 PhutilArgumentParser::parseWorkflows(array) called at [<phabricator>/scripts/sql/manage_storage.php:115] |
It looks like at some point upgrade utility loses password to mysql db