Reproduction steps (from phabricator folder):
- git reset --hard
- ./bin/config mysql.host "mysql.somedomain.com"
- or plainly: ./bin/config
Expected:
- My local configuration file gets updated.
Result:
# git reset --hard HEAD is now at ca30df8 (stable) Rebuild Celerity map on stable. # ./bin/config set mysql.host "mysql.somedomain.com" [2016-09-05 16:43:46] EXCEPTION: (AphrontConnectionQueryException) Attempt to connect to root@localhost failed with error #2002: No such file or directory. at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:343] arcanist(head=stable, ref.stable=10e519475290), phabricator(head=stable, ref.stable=ca30df847e4e), phutil(head=stable, ref.stable=c14343ee620e) #0 AphrontBaseMySQLDatabaseConnection::throwConnectionException(integer, string, string, string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:72] #1 AphrontMySQLiDatabaseConnection::connect() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:101] #2 AphrontBaseMySQLDatabaseConnection::establishConnection() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontBaseMySQLDatabaseConnection.php:124] #3 AphrontBaseMySQLDatabaseConnection::requireConnection() called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:15] #4 AphrontMySQLiDatabaseConnection::escapeBinaryString(string) called at [<phutil>/src/aphront/storage/connection/mysql/AphrontMySQLiDatabaseConnection.php:11] #5 AphrontMySQLiDatabaseConnection::escapeUTF8String(string) called at [<phutil>/src/xsprintf/qsprintf.php:178] #6 xsprintf_query(AphrontMySQLiDatabaseConnection, string, integer, string, integer) called at [<phutil>/src/xsprintf/xsprintf.php:70] #7 xsprintf(string, AphrontMySQLiDatabaseConnection, array) called at [<phutil>/src/xsprintf/qsprintf.php:64] #8 qsprintf(AphrontMySQLiDatabaseConnection, string, string, string, string) #9 call_user_func_array(string, array) called at [<phutil>/src/xsprintf/queryfx.php:5] #10 queryfx(AphrontMySQLiDatabaseConnection, string, string, string, string) #11 call_user_func_array(string, array) called at [<phutil>/src/xsprintf/queryfx.php:13] #12 queryfx_all(AphrontMySQLiDatabaseConnection, string, string, string, string) #13 call_user_func_array(string, array) called at [<phutil>/src/aphront/storage/connection/AphrontDatabaseConnection.php:36] #14 AphrontDatabaseConnection::queryData(string, string, string, string) #15 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:535] #16 LiskDAO::loadRawDataWhere(string, string) #17 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476] #18 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:19] #19 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7] #20 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:232] #21 PhabricatorEnv::buildConfigurationSourceStack() called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95] #22 PhabricatorEnv::initializeCommonEnvironment() called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75] #23 PhabricatorEnv::initializeScriptEnvironment() called at [<phabricator>/scripts/__init_script__.php:21] #24 init_phabricator_script() called at [<phabricator>/scripts/__init_script__.php:24] #25 require_once(string) called at [<phabricator>/scripts/setup/manage_config.php:5]
Note:
Alot of your vairous readme / guides (including inside ./conf/local), advice using ./bin/config to configure the local file prior to startup. All of those steps are now effectively broken