Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14033848
D16489.id39672.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
D16489.id39672.diff
View Options
diff --git a/src/infrastructure/cluster/PhabricatorDatabaseRef.php b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
--- a/src/infrastructure/cluster/PhabricatorDatabaseRef.php
+++ b/src/infrastructure/cluster/PhabricatorDatabaseRef.php
@@ -405,6 +405,12 @@
try {
$connection->openConnection();
$reachable = true;
+ } catch (AphrontSchemaQueryException $ex) {
+ // We get one of these if the database we're trying to select does not
+ // exist. In this case, just re-throw the exception. This is expected
+ // during first-time setup, when databases like "config" will not exist
+ // yet.
+ throw $ex;
} catch (Exception $ex) {
$reachable = false;
}
diff --git a/src/infrastructure/env/PhabricatorEnv.php b/src/infrastructure/env/PhabricatorEnv.php
--- a/src/infrastructure/env/PhabricatorEnv.php
+++ b/src/infrastructure/env/PhabricatorEnv.php
@@ -231,7 +231,7 @@
$stack->pushSource(
id(new PhabricatorConfigDatabaseSource('default'))
->setName(pht('Database')));
- } catch (AphrontQueryException $exception) {
+ } catch (AphrontSchemaQueryException $exception) {
// If the database is not available, just skip this configuration
// source. This happens during `bin/storage upgrade`, `bin/conf` before
// schema setup, etc.
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Nov 10, 8:25 PM (1 w, 21 h ago)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
6716140
Default Alt Text
D16489.id39672.diff (1 KB)
Attached To
Mode
D16489: Distinguish between unreachable cluster database hosts and missing MySQL databases
Attached
Detach File
Event Timeline
Log In to Comment