System error

error:  DBD::Pg::db selectrow_hashref failed: ERROR: write failed at /usr/local/lib/site_perl/Piperka/ComicInfo.pm line 34, <RELATED> line 76.
context: 
... 
30:  (SELECT name FROM updates WHERE cid=coms.cid AND ord=0 LIMIT 1) as first_page,
31:  (SELECT name FROM updates WHERE cid=coms.cid AND name IS NOT NULL ORDER BY ord DESC LIMIT 1) as last_page,
32:  (SELECT name IS NULL FROM updates WHERE cid=coms.cid ORDER BY ord DESC LIMIT 1) AS have_fixed_head
33:  FROM comics AS coms LEFT JOIN banners USING (cid) WHERE cid=?', undef, 1);
34:  my $rv = $dbh->selectrow_hashref($sth, undef, $uid, $cid);
35:  $sth->finish;
36:  return undef unless defined $rv;
37: 
38:  my $related = '';
... 
code stack:  /usr/local/lib/site_perl/Piperka/ComicInfo.pm:34
/srv/piperka.net/piperka/include/cinfo:70
/srv/piperka.net/piperka/info.html:7
/srv/piperka.net/piperka/autohandler:79
raw error






























DBD::Pg::db selectrow_hashref failed: ERROR:  write failed at /usr/local/lib/site_perl/Piperka/ComicInfo.pm line 34, <RELATED> line 76.


Trace begun at /usr/share/perl5/HTML/Mason/Exceptions.pm line 129
HTML::Mason::Exceptions::rethrow_exception('DBD::Pg::db selectrow_hashref failed: ERROR:  write failed at /usr/local/lib/site_perl/Piperka/ComicInfo.pm line 34, <RELATED> line 76.^J') called at /usr/local/lib/site_perl/Piperka/ComicInfo.pm line 34
Piperka::ComicInfo::info_for('Apache::DBI::db=HASH(0x7fa89120c050)', 4079, undef) called at /srv/piperka.net/piperka/include/cinfo line 70
HTML::Mason::Commands::__ANON__('dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'cid', 4079, 'open_window', undef, 'uid', undef) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa8914b05e8)', 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'cid', 4079, 'open_window', undef, 'uid', undef) called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'cid', 4079, 'open_window', undef, 'uid', undef) called at /srv/piperka.net/piperka/info.html line 7
HTML::Mason::Commands::__ANON__('cid', 4079, 'account', 'Piperka::Account=HASH(0x7fa892e7ad00)', 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'bookmarks_str', '', 'cid', 4079, 'cache', 'Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x7fa890b27410)') called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa891460a88)', 'cid', 4079, 'account', 'Piperka::Account=HASH(0x7fa892e7ad00)', 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'bookmarks_str', '', 'cid', 4079, 'cache', 'Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x7fa890b27410)') called at /usr/share/perl5/HTML/Mason/Request.pm line 1302
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'cid', 4079, 'account', 'Piperka::Account=HASH(0x7fa892e7ad00)', 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'bookmarks_str', '', 'cid', 4079, 'cache', 'Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x7fa890b27410)') called at /usr/share/perl5/HTML/Mason/Request.pm line 955
HTML::Mason::Request::call_next('HTML::Mason::Request::ApacheHandler=HASH(0x7fa892e78898)', 'account', 'Piperka::Account=HASH(0x7fa892e7ad00)', 'dbh', 'Apache::DBI::db=HASH(0x7fa89120c050)', 'bookmarks_str', '', 'cid', 4079, 'cache', 'Moose::Meta::Class::__ANON__::SERIAL::1=HASH(0x7fa890b27410)') called at /srv/piperka.net/piperka/autohandler line 79
HTML::Mason::Commands::__ANON__('cid', 4079) called at /usr/share/perl5/HTML/Mason/Component.pm line 135
HTML::Mason::Component::run('HTML::Mason::Component::FileBased=HASH(0x7fa890b45df8)', 'cid', 4079) called at /usr/share/perl5/HTML/Mason/Request.pm line 1297
eval {...} at /usr/share/perl5/HTML/Mason/Request.pm line 1292
HTML::Mason::Request::comp(undef, undef, undef, 'cid', 4079) 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(0x7fa892e78898)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 165
HTML::Mason::Request::ApacheHandler::exec('HTML::Mason::Request::ApacheHandler=HASH(0x7fa892e78898)') called at /usr/share/perl5/HTML/Mason/ApacheHandler.pm line 831
HTML::Mason::ApacheHandler::handle_request('HTML::Mason::ApacheHandler=HASH(0x7fa88f73a230)', 'Apache2::RequestRec=SCALAR(0x7fa892e78658)') called at (eval 30) line 8
HTML::Mason::ApacheHandler::handler('HTML::Mason::ApacheHandler', 'Apache2::RequestRec=SCALAR(0x7fa892e78658)') called at -e line 0
eval {...} at -e line 0