Page MenuHomePhabricator

Unable to establish a connection to any database host (while trying "phabricator_config"). All masters and replicas are completely unreachable
Closed, InvalidPublic

Description

I'm currently unable to submit a diff to this install, arc diff gives the following error:

arc diff --trace HEAD~
 ARGV  '/home/josh/workspace/github.com/phacility/arcanist/bin/../scripts/arcanist.php' 'diff' '--trace' 'HEAD~'
 LOAD  Loaded "phutil" from "/home/josh/workspace/github.com/phacility/libphutil/src".
 LOAD  Loaded "arcanist" from "/home/josh/workspace/github.com/phacility/arcanist/src".
Config: Reading user configuration file "/home/josh/.arcrc"...
Config: Did not find system configuration at "/etc/arcconfig".
Working Copy: Reading .arcconfig from "/home/josh/workspace/github.com/phacility/phabricator/.arcconfig".
Working Copy: Path "/home/josh/workspace/github.com/phacility/phabricator" is part of `git` working copy "/home/josh/workspace/github.com/phacility/phabricator".
Working Copy: Project root is at "/home/josh/workspace/github.com/phacility/phabricator".
Config: Did not find local configuration at "/home/josh/workspace/github.com/phacility/phabricator/.git/arc/config".
Loading phutil library from '/home/josh/workspace/github.com/phacility/phabricator/src'...
>>> [0] <conduit> user.whoami() <bytes = 117>
>>> [1] <http> https://secure.phabricator.com/api/user.whoami
<<< [1] <http> 847,215 us
<<< [0] <conduit> 847,899 us
>>> [2] <exec> $ git diff --no-ext-diff --no-textconv --raw 'HEAD' --
>>> [3] <exec> $ git ls-files --others --exclude-standard
<<< [2] <exec> 78,830 us
<<< [3] <exec> 81,799 us
>>> [4] <exec> $ git diff-files --name-only
<<< [4] <exec> 22,066 us
>>> [5] <event> diff.didCollectChanges <listeners = 0>
<<< [5] <event> 109 us
>>> [6] <exec> $ git rev-parse 'HEAD'
<<< [6] <exec> 9,945 us
>>> [7] <exec> $ git merge-base 'HEAD~' '43e0cd9cc39c64c48377af8c38d971ce2cf5351a'
<<< [7] <exec> 12,717 us
>>> [8] <exec> $ git log --first-parent --format=medium '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee'..'43e0cd9cc39c64c48377af8c38d971ce2cf5351a'
<<< [8] <exec> 12,671 us
>>> [9] <exec> $ git log '43e0cd9cc39c64c48377af8c38d971ce2cf5351a' --not '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee' --format='%H%x01%T%x01%P%x01%at%x01%an%x01%aE%x01%s%x01%s%n%n%b%x02' --
<<< [9] <exec> 12,888 us
>>> [10] <conduit> differential.query() <bytes = 376>
>>> [11] <http> https://secure.phabricator.com/api/differential.query
<<< [11] <http> 247,957 us
<<< [10] <conduit> 248,307 us
>>> [12] <exec> $ git rev-parse --git-dir
<<< [12] <exec> 11,035 us
>>> [13] <exec> $ git log '43e0cd9cc39c64c48377af8c38d971ce2cf5351a' --not '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee' --format='%H%x01%T%x01%P%x01%at%x01%an%x01%aE%x01%s%x01%s%n%n%b%x02' --
<<< [13] <exec> 4,667 us
>>> [14] <conduit> differential.parsecommitmessage() <bytes = 393>
>>> [15] <http> https://secure.phabricator.com/api/differential.parsecommitmessage
<<< [15] <http> 285,084 us
<<< [14] <conduit> 285,367 us
>>> [16] <event> diff.willBuildMessage <listeners = 0>
<<< [16] <event> 62 us
>>> [17] <conduit> differential.getcommitmessage() <bytes = 495>
>>> [18] <http> https://secure.phabricator.com/api/differential.getcommitmessage
<<< [18] <http> 249,488 us
<<< [17] <conduit> 249,719 us
>>> [19] <exec> $ git symbolic-ref --quiet HEAD
<<< [19] <exec> 3,357 us
>>> [20] <exec> $ vim  '/tmp/edit.2tiwr4l12yqsc4g4/new-commit'
<<< [20] <exec> 1,933,283 us
>>> [21] <conduit> differential.parsecommitmessage() <bytes = 399>
>>> [22] <http> https://secure.phabricator.com/api/differential.parsecommitmessage
<<< [22] <http> 286,348 us
<<< [21] <conduit> 286,638 us
>>> [23] <conduit> user.query() <bytes = 176>
>>> [24] <http> https://secure.phabricator.com/api/user.query
<<< [24] <http> 254,531 us
<<< [23] <conduit> 254,851 us
>>> [25] <event> diff.didBuildMessage <listeners = 0>
<<< [25] <event> 64 us
Linting...
>>> [26] <exec> $ git rev-parse 'HEAD'
<<< [26] <exec> 7,339 us
>>> [27] <exec> $ git merge-base '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee' '43e0cd9cc39c64c48377af8c38d971ce2cf5351a'
<<< [27] <exec> 9,412 us
>>> [28] <exec> $ git diff --no-ext-diff --no-textconv --raw '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee' --
<<< [28] <exec> 55,775 us
>>> [29] <exec> $ git diff --no-ext-diff --no-textconv --no-color --src-prefix=a/ --dst-prefix=b/ -U32767 -M -C '54059b0a9d87a3a91388806d8d2e06bb2d5ef1ee' --
<<< [29] <exec> 58,294 us
Examining paths for linter 'chmod'.
Found 1 matching paths for linter 'chmod'.
Examining paths for linter 'filename'.
Found 1 matching paths for linter 'filename'.
Examining paths for linter 'generated'.
Found 1 matching paths for linter 'generated'.
Examining paths for linter 'javelin'.
Found 0 matching paths for linter 'javelin'.
Examining paths for linter 'jshint-browser'.
Found 0 matching paths for linter 'jshint-browser'.
Examining paths for linter 'jshint-node'.
Found 0 matching paths for linter 'jshint-node'.
Examining paths for linter 'json'.
Found 0 matching paths for linter 'json'.
Examining paths for linter 'merge-conflict'.
Found 1 matching paths for linter 'merge-conflict'.
Examining paths for linter 'nolint'.
Found 1 matching paths for linter 'nolint'.
Examining paths for linter 'phutil-library'.
Found 1 matching paths for linter 'phutil-library'.
Examining paths for linter 'spelling'.
Found 1 matching paths for linter 'spelling'.
Examining paths for linter 'text'.
Found 1 matching paths for linter 'text'.
Examining paths for linter 'text-without-length'.
Found 0 matching paths for linter 'text-without-length'.
Examining paths for linter 'xhpast'.
Found 1 matching paths for linter 'xhpast'.
>>> [30] <exec> $ '/home/josh/workspace/github.com/phacility/libphutil/src/parser/xhpast/bin/xhpast' --version
<<< [30] <exec> 5,336 us
>>> [31] <exec> $ which javelinsymbols
<<< [31] <exec> 4,795 us
>>> [32] <exec> $ which 'jshint'
<<< [32] <exec> 10,118 us
>>> [33] <exec> $ which 'jshint'
<<< [33] <exec> 3,320 us
>>> [34] <exec> $ 'jshint' --version
<<< [34] <exec> 318,245 us
>>> [35] <exec> $ which 'jshint'
<<< [35] <exec> 3,796 us
>>> [36] <exec> $ which 'jshint'
<<< [36] <exec> 8,613 us
>>> [37] <exec> $ 'jshint' --version
<<< [37] <exec> 307,817 us
>>> [38] <lint> Generated Code <paths = 1>
<<< [38] <lint> 133 us
>>> [39] <lint> Lint Disabler <paths = 1>
<<< [39] <lint> 92 us
>>> [40] <lint> Basic Text Linter <paths = 1>
<<< [40] <lint> 327 us
>>> [41] <lint> XHPAST Lint <paths = 1>
>>> [42] <exec> $ '/home/josh/workspace/github.com/phacility/libphutil/src/parser/xhpast/bin/xhpast'
<<< [41] <lint> 1,420 us
>>> [43] <lint> Spellchecker <paths = 1>
<<< [43] <lint> 15,550 us
>>> [44] <lint> Merge Conflicts <paths = 1>
<<< [44] <lint> 208 us
>>> [45] <lint> Filename <paths = 1>
<<< [45] <lint> 102 us
>>> [46] <lint> Chmod <paths = 1>
<<< [46] <lint> 124 us
>>> [47] <lint> Phutil Library Linter <paths = 1>
>>> [48] <exec> $ which 'find'
<<< [48] <exec> 5,805 us
>>> [49] <exec> $ find . "(" -path '*/.*' ")" -prune -o -type 'f' "(" -name '*.php' ")" -print0
<<< [49] <exec> 18,096 us
>>> [50] <exec> $ which 'find'
<<< [50] <exec> 10,372 us
>>> [51] <exec> $ find . "(" -path '*/.*' ")" -prune -o -type 'f' "(" -name '*.php' ")" -print0
<<< [51] <exec> 14,935 us
>>> [52] <exec> $ which 'find'
<<< [52] <exec> 9,020 us
>>> [53] <exec> $ find . "(" -path '*/.*' ")" -prune -o -type 'f' "(" -name '*.php' ")" -print0
<<< [53] <exec> 60,346 us
<<< [47] <lint> 795,088 us
>>> [54] <lint> Generated Code <paths = 1>
<<< [54] <lint> 78 us
>>> [55] <lint> Lint Disabler <paths = 1>
<<< [55] <lint> 51 us
>>> [56] <lint> Basic Text Linter <paths = 1>
<<< [56] <lint> 45 us
>>> [57] <lint> XHPAST Lint <paths = 1>
<<< [42] <exec> 814,584 us
<<< [57] <lint> 60,051 us
>>> [58] <lint> Spellchecker <paths = 1>
<<< [58] <lint> 86 us
>>> [59] <lint> Merge Conflicts <paths = 1>
<<< [59] <lint> 71 us
>>> [60] <lint> Filename <paths = 1>
<<< [60] <lint> 63 us
>>> [61] <lint> Chmod <paths = 1>
<<< [61] <lint> 66 us
>>> [62] <lint> Phutil Library Linter <paths = 1>
<<< [62] <lint> 290 us
 LINT OKAY  No lint problems.
Running unit tests...
>>> [63] <connect> phabricator_config

[2017-02-28 03:44:45] 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=43e0cd9cc39c, custom=1), phlab(head=master, ref.master=84b62e6917ec), phutil(head=master, ref.master=2ffd89902c1b)
  #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-script.php:10]
  #13 require_once(string) called at [<phabricator>/scripts/__init_script__.php:3]
  #14 require_once(string) called at [<phabricator>/src/infrastructure/testing/PhabricatorTestCase.php:62]
  #15 PhabricatorTestCase::willRunTestCases(array) called at [<arcanist>/src/unit/engine/PhutilUnitTestEngine.php:64]
  #16 PhutilUnitTestEngine::run() called at [<arcanist>/src/unit/engine/ArcanistConfigurationDrivenUnitTestEngine.php:147]
  #17 ArcanistConfigurationDrivenUnitTestEngine::run() called at [<arcanist>/src/workflow/ArcanistUnitWorkflow.php:167]
  #18 ArcanistUnitWorkflow::run() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:1340]
  #19 ArcanistDiffWorkflow::runUnit() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:1228]
  #20 ArcanistDiffWorkflow::runLintUnit() called at [<arcanist>/src/workflow/ArcanistDiffWorkflow.php:483]
  #21 ArcanistDiffWorkflow::run() called at [<arcanist>/scripts/arcanist.php:394]

I'm not sure what is going on since the web UI seems fine.