Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F14894982
D21057.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
D21057.diff
View Options
diff --git a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
--- a/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
+++ b/src/applications/config/check/PhabricatorDaemonsSetupCheck.php
@@ -48,10 +48,17 @@
$expect_user = PhabricatorEnv::getEnvConfig('phd.user');
if (strlen($expect_user)) {
- $all_daemons = id(new PhabricatorDaemonLogQuery())
- ->setViewer(PhabricatorUser::getOmnipotentUser())
- ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE)
- ->execute();
+
+ try {
+ $all_daemons = id(new PhabricatorDaemonLogQuery())
+ ->setViewer(PhabricatorUser::getOmnipotentUser())
+ ->withStatus(PhabricatorDaemonLogQuery::STATUS_ALIVE)
+ ->execute();
+ } catch (Exception $ex) {
+ // If this query fails for some reason, just skip this check.
+ $all_daemons = array();
+ }
+
foreach ($all_daemons as $daemon) {
$actual_user = $daemon->getRunningAsUser();
if ($actual_user == $expect_user) {
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Mon, Feb 10, 8:49 AM (1 h, 57 m)
Storage Engine
blob
Storage Format
Encrypted (AES-256-CBC)
Storage Handle
7116316
Default Alt Text
D21057.diff (1 KB)
Attached To
Mode
D21057: If daemon running-as-user setup check fails its query, don't bother with it
Attached
Detach File
Event Timeline
Log In to Comment