2016-11-23 17 views
3

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/storageた試みた私はまた

をしようとしました--user --password

をアップグレード./bin/storage

./bin/configでホストまたはユーザーを設定するなどの他のコマンドですが、すべて同じエラーが発生するようです。

私はこの時点で何をすべきか分かりません。見つけられるすべての設定で遊んでいます。

+0

このエラーは、MySQLに接続できないことを意味します。 mysqlが実際に動作していることを確認しましたか?あなたは 'mysql'クライアントで手動で接続できますか? – varlogtim

+0

私は 'mysql -u root -p'でログインできました。サービスをチェックしたところ、mysqlは実際には動作しており、ポート3306でリッスンしているようです。 – SexyToad

+0

サーバを再起動してみてください。 – VishalParkash

答えて

2

今日は 'bin/config mysql.host localhost'を実行しているときに同じ例外が発生しました。最新のphabricatorコード(2016/11/23現在)にバグがある可能性があるので、以前のスナップショットに切り替えるとうまくいきます。

関連する問題