【发布时间】:2016-11-23 08:24:55
【问题描述】:
我一直在尝试在 Centos 6.8 和 Ubuntu 14.04 上安装 Phabricator。在这两次尝试中,当使用 phab 配置 MySQL 时,我收到以下错误:
EXCEPTION: (PhabricatorClusterStrandedException) Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable. at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:140]
arcanist(head=master, ref.master=fad85844314b), phabricator(head=master, ref.master=4dadad53ae5d), phutil(head=master, ref.master=086df1ba443c)
#0 PhabricatorLiskDAO::raiseUnreachable(string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:111]
#1 PhabricatorLiskDAO::newClusterConnection(string, string, string) called at [<phabricator>/src/infrastructure/storage/lisk/PhabricatorLiskDAO.php:66]
#2 PhabricatorLiskDAO::establishLiveConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:1008]
#3 LiskDAO::establishConnection(string) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:516]
#4 LiskDAO::loadRawDataWhere(string, string)
#5 call_user_func_array(array, array) called at [<phabricator>/src/infrastructure/storage/lisk/LiskDAO.php:476]
#6 LiskDAO::loadAllWhere(string, string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:19]
#7 PhabricatorConfigDatabaseSource::loadConfig(string) called at [<phabricator>/src/infrastructure/env/PhabricatorConfigDatabaseSource.php:7]
#8 PhabricatorConfigDatabaseSource::__construct(string) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:249]
#9 PhabricatorEnv::buildConfigurationSourceStack(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:95]
#10 PhabricatorEnv::initializeCommonEnvironment(boolean) called at [<phabricator>/src/infrastructure/env/PhabricatorEnv.php:75]
#11 PhabricatorEnv::initializeScriptEnvironment(boolean) called at [<phabricator>/scripts/init/lib.php:22]
#12 init_phabricator_script(array) called at [<phabricator>/scripts/init/init-setup.php:12]
#13 require_once(string) called at [<phabricator>/scripts/sql/manage_storage.php:5]
我一直在关注这个安装指南:https://secure.phabricator.com/book/phabricator/article/configuration_guide/
我也尝试在网上关注其他人,但没有成功。 尝试的命令是
./bin/存储升级
我也试过了
./bin/storage upgrade --user --password
还有其他命令,例如在./bin/config 上设置主机或用户,但似乎都导致相同的错误。
我现在不知道该怎么做,我一直在玩我能找到的每一个配置。
【问题讨论】:
-
这个错误意味着它无法连接到MySQL。您是否验证了 mysql 确实在运行?可以手动连接
mysql客户端吗? -
我已经能够使用 'mysql -u root -p' 登录,并且我检查了服务,似乎 mysql 实际上正在运行并在端口 3306 上侦听。
-
尝试重新启动服务器..可能会有所帮助
标签: php mysql database phabricator