Error Log display in cPanel
AnsweredOne of my sites (Wordpress) is throwing up a 500 error... which normally would not be a huge issue as I could track down the error specifics and fix the problem. Unfortunately, I can't track the problem because cPanel will not display the error.'
Yes, I am aware that the cPanel is not latest... we are on CloudLinux6, which is at EOL support. But EOL shouldn't suddenly stop displaying error messages. And while I can obviously fix the site problem by rolling back to an older backup where I know it was displaying properly, I'd still like to be able to make use of the "errors" option in the cPanel to track down the root cause when this pops up again.
Any ideas? Below is the message I get when going to the "errors" panel in cPanel... obviously <<<domain>>> is the domain itself, no need to spam it here. Is this a perl issue, nginx issue (do I need to change a setting somewhere to tell cPanel where to look for the logs), or is it just pooched?
Latest web server error log messages:
Error: Can’t read “/var/cpanel/cpanel.config” ((unknown error)) at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 311. Cpanel::Config::CpConfGuard::load_cpconf_file(Cpanel::Config::CpConfGuard=HASH(0x3586248)) called at /usr/local/cpanel/Cpanel/Config/CpConfGuard.pm line 90 Cpanel::Config::CpConfGuard::new("Cpanel::Config::CpConfGuard", "no_validate", 1) called at /usr/local/cpanel/Whostmgr/TweakSettings/Configure/Main.pm line 67 Whostmgr::TweakSettings::Configure::Main::new("Whostmgr::TweakSettings::Configure::Main") called at /usr/local/cpanel/Whostmgr/TweakSettings.pm line 609 Whostmgr::TweakSettings::get_value("Main", "enable_piped_logs") called at /usr/local/cpanel/Cpanel/Logs/Find.pm line 148 Cpanel::Logs::Find::find_logbyext("<<<DOMAIN>>>", "-error_log") called at /usr/local/cpanel/Cpanel/Logs/Find.pm line 73 Cpanel::Logs::Find::find_wwwerrorlog("<<<DOMAIN>>>") called at /usr/local/cpanel/Cpanel/Stats.pm line 1933 Cpanel::Stats::list_error_log("<<<DOMAIN>>>", 300) called at /usr/local/cpanel/Cpanel/Stats.pm line 1856 Cpanel::Stats::list_site_errors("<<<DOMAIN>>>", "error", 300) called at /usr/local/cpanel/Cpanel/API/Stats.pm line 244 Cpanel::API::Stats::get_site_errors(Cpanel::Args=HASH(0x2e3f8a0), Cpanel::Result=HASH(0x2e3fa80)) called at /usr/local/cpanel/Cpanel/API.pm line 360 eval {...} called at /usr/local/cpanel/Cpanel/API.pm line 362 Cpanel::API::_run_module_function(Cpanel::Args=HASH(0x2e3f8a0), Cpanel::Result=HASH(0x2e3fa80), "Stats", "get_site_errors") called at /usr/local/cpanel/Cpanel/API.pm line 242 Cpanel::API::execute("Stats", "get_site_errors", HASH(0x2e3fb70)) called at /usr/local/cpanel/Cpanel/Template/Plugin/CPDefault.pm line 81 Cpanel::Template::Plugin::CPDefault::_execute("Stats", "get_site_errors", HASH(0x2e40200)) called at (eval 5) line 1 eval {...} called at (eval 5) line 1 eval {...} called at (eval 5) line 1 Cpanel::Template::Shared::__ANON__(Template::Context=HASH(0x2e2b908)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 165 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Document.pm line 163 Template::Document::process(Template::Document=HASH(0x2e386b8), Template::Context=HASH(0x2e2b908)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 352 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Context.pm line 322 Template::Context::process(Template::Context=HASH(0x2e2b908), Template::Document=HASH(0x2e386b8)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 94 eval {...} called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template/Service.pm line 91 Template::Service::process(Template::Service=HASH(0x2e2b4e8), "/usr/local/cpanel/base/frontend/jupiter/stats/errlog.html.tt", HASH(0x2e2acc8)) called at /usr/local/cpanel/3rdparty/perl/536/cpanel-lib/x86_64-linux/Template.pm line 66 Template::process(Template=HASH(0x2e2b100), "/usr/local/cpanel/base/frontend/jupiter/stats/errlog.html.tt", HASH(0x2e2acc8), SCALAR(0x1d3ddc0)) called at /usr/local/cpanel/Cpanel/Template.pm line 483 Cpanel::Template::process_template("cpanel", HASH(0x2e2acc8), HASH(0x1d454b8)) called at cpanel.pl line 1105 cpanel::cpanel::cptt_exectag("/usr/local/cpanel/base/frontend/jupiter/stats/errlog.html.tt", 1) called at cpanel.pl line 4645 cpanel::cpanel::run_standard_mode() called at cpanel.pl line 928 cpanel::cpanel::script("cpanel::cpanel", "./frontend/jupiter/stats/errlog.html.tt") called at cpanel.pl line 324
-
Hey there! Let's start with the simple things - what does this show on the server?
ls -lah/var/cpanel/cpanel.config
I would expect it to look similar to this, although your dates and size will be different:
-rw-r--r-- 1 root root 8.3K May 19 22:33 /var/cpanel/cpanel.config
1 -
See, that was my first thought, that maybe the file had been "lost" somewhere along the way. Even tried recreating it, updating it through WHM... error remained.
root@newserver [~]# ls -lah /var/cpanel/cpanel.config
-rw-rw---- 1 root wheel 8.1K May 19 20:10 /var/cpanel/cpanel.config0 -
What about this?
ls -ld /var/cpanel
1 -
root@newserver [~]# ls -ld /var/cpanel
drwx--x--x 131 root root 16384 May 19 20:25 /var/cpanel/0 -
Just for fun, can we change /var/cpanel/cpanel.config a bit?
chmod 644 /var/cpanel/cpanel.config
I don't believe this will take care of the whole issue, but if we can at least get to a different error in the log that would be helpful.
1 -
That apparently was actually it. Still nothing in the SuExec, but that is probably related to using CloudLinux PHP instead of the native php.
Awesome, thank you.
0 -
I'm glad that's all it was!
0
Please sign in to leave a comment.
Comments
7 comments