Blank page returned when unable to connect to database server #131

adamcaudill opened this Issue Aug 28, 2016 · 1 comment


None yet
2 participants

adamcaudill commented Aug 28, 2016


If the application isn't able to connect to its database server, it returns a 500, with a blank page.

Expected Outcome

Display a useful error message, so that there's some indication of what happened.

2016/08/28 22:01:19 [error] 29847#29847: *13650 FastCGI sent in stderr: "PHP message: PHP Notice:  Undefined index: connection in /var/www/ on line 38
PHP message: PHP Fatal error:  Uncaught Airship\Alerts\Database\DBException: Could not create a database connection. Please check your username and password. in /var/www/
Stack trace:
#0 /var/www/ Airship\Engine\Database::factory('pgsql:host=loca...', 'db_name', '555-555-0199@ex...', Array)
#1 /var/www/ Airship\get_database()
#2 /var/www/ Airship\Engine\LedgerStorage\DBStore->__construct(NULL, '')
#3 /var/www/ {closure}()
#4 /var/www/ require_once('/var/www/beta.a...')
#5 /var/www/ require_once('/var/www/beta.a...')
#6 {main}
  thrown in /var/www/ on line 100" while reading response header from upstream, client:, server:, request: "GET / HTTP/1.1", upstream: "fastcgi://unix:/var/run/php/php7.0-fpm.sock:", host: ""

This comment has been minimized.

Show comment
Hide comment

paragonie-scott commented Aug 28, 2016

👍 3bb2307

@paragonie-scott paragonie-scott added this to the Version 1.3.0 milestone Aug 29, 2016

@paragonie-scott paragonie-scott added the bug label Aug 29, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment