Page MenuHomePhabricator

Add a friendlier "in flight" error page
ClosedPublic

Authored by epriestley on Sep 6 2016, 8:53 PM.
Tags
None
Referenced Files
F19520305: D16503.id.diff
Fri, Jan 16, 12:36 PM
F19517214: D16503.diff
Thu, Jan 15, 8:45 AM
F19504482: D16503.id39723.diff
Fri, Jan 9, 5:13 AM
F19504480: D16503.id.diff
Fri, Jan 9, 5:12 AM
F19504423: D16503.id39723.diff
Fri, Jan 9, 5:10 AM
F19504422: D16503.id.diff
Fri, Jan 9, 5:09 AM
F19503540: D16503.id39713.diff
Fri, Jan 9, 12:17 AM
F19315593: D16503.id39723.diff
Dec 25 2025, 3:44 AM
Subscribers
None

Details

Summary

Ref T11589. When we hit a fatal setup issue (essentially always a connection failure) after we've already survived them on at least one request, we can be pretty sure a server went down and that the problem is not a setup/configuration issue.

In this case, show a friendlier error page instead of the fairly detailed technical one.

Test Plan
  • Broke MySQL config.
  • Restarted Apache.
  • Got the "admin/setup" error page:

Screen Shot 2016-09-06 at 1.50.21 PM.png (1×1 px, 137 KB)

  • Fixed the MySQL config.
  • Loaded any page, to put us "in flight".
  • Broke MySQL config.
  • Loaded any page.
  • Got the friendly "in flight" error page:

Screen Shot 2016-09-06 at 1.48.05 PM.png (1×1 px, 68 KB)

If you want to design this better, easiest way to get to it is:

  • Set mysql.port to 9999 in conf/local/local.json.
  • Reload any page while already running (don't restart).

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable