SOLVED [CPANEL-27695] Failed to show template error400 in login theme

bloatedstoat

Well-Known Member
Jun 14, 2012
183
24
68
Victoria, Australia
cPanel Access Level
Root Administrator
Anything to worry about? Is there a solution? Some of our logs are full of it.

We're on CLOUDLINUX 6.10 v78.0.24.

Thanks!

Code:
/usr/local/cpanel/logs/error_log:

file error - templates/error400: not found at base/show_template.stor.pl line 133.

Cpanel::Server::process_login_template(Cpanel::Server=HASH(0x305f2c0), "cpanel", "document", undef, "page_to_show", "error400", "cp_security_token", undef, ...) called at /usr/local/cpanel/Cpanel/Server.pm line 2075
Cpanel::Server::process_and_send_login_template(Cpanel::Server=HASH(0x305f2c0), "error400", "HTTP/1.1 400 Bad Request\x{d}\x{a}Content-type: text/html; charset=\"u"..., HASH(0x3310f78)) called at cpsrvd.pl line 3294
cpanel::cpsrvd::doerrorstatus(400, "Bad Request") called at cpsrvd.pl line 3144
cpanel::cpsrvd::parse_request_headers() called at cpsrvd.pl line 1691
cpanel::cpsrvd::receive_and_process_incoming_http_request() called at cpsrvd.pl line 1258
cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1081
cpanel::cpsrvd::script() called at cpsrvd.pl line 413

Failed to show template “error400” in login theme “cpanel” (); falling back to legacy login. at /usr/local/cpanel/Cpanel/Server.pm line 2079.

Use of uninitialized value in subtraction (-) at /usr/local/cpanel/Cpanel/Server/Responders/Stream.pm line 44.

file error - templates/error400: not found at base/show_template.stor.pl line 133.
Cpanel::Server::process_login_template(Cpanel::Server=HASH(0x305f2c0), "cpanel", "host", "host.ourserver.com", "SERVER_PORT", 2087, "app_version", "11.78.0.24", ...) called at /usr/local/cpanel/Cpanel/Server.pm line 2075
Cpanel::Server::process_and_send_login_template(Cpanel::Server=HASH(0x305f2c0), "error400", "HTTP/1.1 400 Bad Request\x{d}\x{a}Content-type: text/html; charset=\"u"..., HASH(0x3310f78)) called at cpsrvd.pl line 3294
cpanel::cpsrvd::doerrorstatus(400, "Bad Request") called at cpsrvd.pl line 3144
cpanel::cpsrvd::parse_request_headers() called at cpsrvd.pl line 1691
cpanel::cpsrvd::receive_and_process_incoming_http_request() called at cpsrvd.pl line 1258
cpanel::cpsrvd::handle_one_connection(6) called at cpsrvd.pl line 1081
cpanel::cpsrvd::script() called at cpsrvd.pl line 413
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello @bloatedstoat,

Can you open a support ticket so we can take a closer look at your system and see why that error is occurring? You can post the ticket number here and we'll link this thread to it.

Thank you.
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

To update, internal case CPANEL-27695 was opened to report an issue where errors like the following are logged to /usr/local/cpanel/logs/error_log upon connection requests to port 2087 that cpsrvd is unable to interpret:

Code:
Failed to show template “error400” in login theme “cpanel” (); falling back to legacy login. at /usr/local/cpanel/Cpanel/Server.pm line 2079.
Use of uninitialized value in subtraction (-) at /usr/local/cpanel/Cpanel/Server/Responders/Stream.pm line 44.
file error - templates/error400: not found at base/show_template.stor.pl line 133.
I'll monitor this case and update this thread with more information at it becomes available.

Thank you.
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,908
2,216
463
Hello,

This is fixed in cPanel & WHM version 80.0.15:

Fixed case CPANEL-27695: Don't generate stacktraces in the error_log for bad requests.

You can review the full change log on the link below:

80 Change Log - Change Logs - cPanel Documentation

Thank you.
 
  • Like
Reactions: bloatedstoat