System error
| error: |
Failed to connect to database: Too many connections at /var/www/research/publications/autohandler line 27.
|
| context: |
| ... |
|
| 23: |
<body <& SELF:insert_bodyproperty &>><& SELF:pagetop &><%perl>$m->call_next;</%perl><& SELF:pageend &></body> |
| 24: |
<& SELF:insert_postbody &></html> |
| 25: |
|
| 26: |
<%init> |
| 27: |
$refdbh ||= DBI->connect($refdbi, $refdbuser, $refdbpw) || |
| 28: |
die("Failed to connect to database: $DBI::errstr"); |
| 29: |
$refdbh->{mysql_enable_utf8} = 1; |
| 30: |
$refdbh->do("SET NAMES 'utf8' COLLATE 'utf8_unicode_ci';"); |
| 31: |
</%init> |
| ... |
|
|
| code stack: |
/var/www/research/publications/autohandler:27
|
raw error
Failed to connect to database: Too many connections at /var/www/research/publications/autohandler line 27.
Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 125
HTML::Mason::Exceptions::rethrow_exception('Failed to connect to database: Too many connections at /var/www/research/publications/autohandler line 27.^J') called at /var/www/research/publications/autohandler line 27
HTML::Mason::Commands::__ANON__('refid', 25109) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x55f9ccca0880)', 'refid', 25109) called at /usr/share/perl5/HTML/Mason/Request.pm line 1300
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'refid', 25109) called at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 481
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 433
HTML::Mason::Request::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55f9cc2667e0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x55f9cc2667e0)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x55f9cc2c0ec8)', 'Apache2::RequestRec=SCALAR(0x55f9cc2c0f70)') called at /etc/apache2/MasonHandlers/Researchpubs.pm line 65
MasonHandlers::Researchpubs::handler('Apache2::RequestRec=SCALAR(0x55f9cc2c0f70)') called at -e line 0
eval {...} at -e line 0