"subprocess exited with an error" warning

kiti

Member
Sep 16, 2015
19
3
53
france
cPanel Access Level
Root Administrator
Hi, i can see always this strange warning in
/usr/local/cpanel/logs/error_log

when starting easyapache update on 2 different servers.



[2016-05-05 08:49:08 +0200] warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.

Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0x3161738)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 72

Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0x3161738), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, IO::Handle=GLOB(0x3161278), __CPANEL_HIDDEN__, GLOB(0x315f660)) called at cpsrvd.pl line 6310

cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 5792

cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1674

cpanel::cpsrvd::dodoc(HASH(0xed1008)) called at cpsrvd.pl line 1347

cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 841

cpanel::cpsrvd::script() called at cpsrvd.pl line 334
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

Please post the output from the following command if the issue continues, so we can determine which version of cPanel is installed on your system:

Code:
cat /usr/local/cpanel/version
Thank you.
 

Recifier

Member
Jan 28, 2015
24
2
53
cPanel Access Level
Root Administrator
I'm seeing this error too. Everything still seems to be working as normal.

cat /usr/local/cpanel/version
11.56.0.22

Profile:
Apache 2.4
  • Asis
  • Deflate
  • Env
  • Expires
  • Fileprotect
  • Headers
  • MPM Prefork
  • Mod SuPHP 0.7.2
  • Proxy
  • UniqueId
  • Version
PHP 5.6
  • Bcmath
  • CGI
  • Calendar
  • CurlSSL
  • FTP
  • GD
  • Iconv
  • Imap
  • MailHeaders
  • Mbstring
  • Mcrypt
  • MySQL "Improved" extension.
  • Mysql
  • Openssl
  • PDO
  • PDO MySQL
  • Pear
  • Phar
  • SQLite3
  • Sockets
  • TTF (FreeType)
  • Zip
  • Zlib
Additional OptMods
  • Mod Ruid2 0.9.8
  • Mod Security 2.9.0
  • Zend Guard Loader 7.0 for PHP
 
Last edited:

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Do you notice any additional output to /var/log/messages when this happens? Are any third-party applications such as Nginx or LiteSpeed installed on the system?

Thank you.
 

Recifier

Member
Jan 28, 2015
24
2
53
cPanel Access Level
Root Administrator
There's no other output to /var/log/messages at the time of those errors and there are no 3rd party applications for http installed.

I've seen the error on servers running Centos 5.11 x86 and Centos 6.8 x86_64. Both have the same EA config and both displayed the same error.

The log for the EA build shows that the errors were output right at the beginning of the build:
Top of EA build log:
Code:
If the browser window is closed or stopped the build will continue in the background.
The build output should start shortly...

[2016-06-07 07:21:19 +1000] info [apache_conf_distiller] Missing owner for domain MYHOST.com, force lookup to root
Error timestamps in /usr/local/cpanel/logs/error_log:
Code:
[2016-06-07 07:19:01 +1000] warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.
    Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 72
    Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, IO::Handle=GLOB(0xa3266c4), __CPANEL_HIDDEN__, GLOB(0xa32691c)) called at cpsrvd.pl line 6307
    cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 5789
    cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1674
    cpanel::cpsrvd::dodoc(HASH(0x8810624)) called at cpsrvd.pl line 1294
    cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 784
    cpanel::cpsrvd::script() called at cpsrvd.pl line 334
[2016-06-07 07:19:19 +1000] warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.
    Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 72
    Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, IO::Handle=GLOB(0xa326c8c), __CPANEL_HIDDEN__, GLOB(0xa3f1424)) called at cpsrvd.pl line 6307
    cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 5789
    cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1674
    cpanel::cpsrvd::dodoc(HASH(0x8810624)) called at cpsrvd.pl line 1347
    cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 784
    cpanel::cpsrvd::script() called at cpsrvd.pl line 334
[2016-06-07 07:20:00 +1000] warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.
    Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 72
    Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, IO::Handle=GLOB(0xa3263f4), __CPANEL_HIDDEN__, GLOB(0xa462780)) called at cpsrvd.pl line 6307
    cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 5789
    cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1674
    cpanel::cpsrvd::dodoc(HASH(0x8810624)) called at cpsrvd.pl line 1347
    cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 784
    cpanel::cpsrvd::script() called at cpsrvd.pl line 334
[2016-06-07 07:21:04 +1000] warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.
    Cpanel::Server::Handlers::SubProcess::_report_subprocess_errors(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04)) called at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 72
    Cpanel::Server::Handlers::SubProcess::handler(Cpanel::Server::Handlers::SubProcess=HASH(0xa326d04), __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, IO::Handle=GLOB(0xa325f78), __CPANEL_HIDDEN__, GLOB(0xa34f760)) called at cpsrvd.pl line 6307
    cpanel::cpsrvd::cgiHandler(__CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__, __CPANEL_HIDDEN__) called at cpsrvd.pl line 5789
    cpanel::cpsrvd::dodoc_whostmgrd() called at cpsrvd.pl line 1674
    cpanel::cpsrvd::dodoc(HASH(0x8810624)) called at cpsrvd.pl line 1347
    cpanel::cpsrvd::handle_one_connection() called at cpsrvd.pl line 784
    cpanel::cpsrvd::script() called at cpsrvd.pl line 334
 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
It's possible this stems from a lack of available memory on the system. Could you open a support ticket using the link in my signature so we can take a closer look? You can post the ticket number here so we can update this thread with the outcome.

Thank you.
 

Recifier

Member
Jan 28, 2015
24
2
53
cPanel Access Level
Root Administrator
Ticket is 7593969.

I just started a new EA3 build and saw the error again. There's about 6G of ram free at the moment, so wouldn't expect it's memory related (plus this particular system has no users at the moment).

 

cPanelMichael

Administrator
Staff member
Apr 11, 2011
47,880
2,261
463
Hello,

To update, internal case CPANEL-7394 is open to address reports of cpsrvd errors in /usr/local/cpanel/logs/error_log when using EasyApache 3 UI in WHM. The error output will generally start like this:

Code:
warn [cpsrvd] The subprocess (/usr/local/cpanel/whostmgr/docroot/cgi/easyapache.pl) exited with an error: The subprocess reported error number 1 when it ended. at /usr/local/cpanel/Cpanel/Server/Handlers/SubProcess.pm line 155.
I'll update this thread once a resolution for this case is released. In the meantime, it's safe to ignore these warning messages as I've not seen any reports of it resulting in actual problems with functionality.

Thank you.