systemd timeout - httpd.service always fails

Issues related to applications and software problems
Post Reply
SolaDrive
Posts: 12
Joined: 2017/05/10 16:36:07
Contact:

systemd timeout - httpd.service always fails

Post by SolaDrive » 2017/05/10 22:14:33

Hi,

httpd.service always fails to start in server.
When we manually start httpd everything works perfectly.

b ~]# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-05-11 02:35:34 IST; 1h 3min ago
Process: 5954 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
Main PID: 6539 (httpd)
CGroup: /system.slice/httpd.service
├─ 6539 /usr/sbin/httpd -k start
├─ 6541 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
├─13637 /usr/sbin/httpd -k start
├─13973 /usr/sbin/httpd -k start
├─14730 /usr/sbin/httpd -k start
├─14737 /usr/sbin/httpd -k start
├─14738 /usr/sbin/httpd -k start
├─16759 /usr/sbin/httpd -k start
├─17209 /usr/sbin/httpd -k start
├─17253 /usr/sbin/httpd -k start
├─17449 /usr/sbin/httpd -k start
├─17693 /usr/sbin/httpd -k start
└─17695 /usr/sbin/httpd -k start

May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/myassign/public_html/home/moneyinfo/public_html/m] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/newstudentstudie/public_html/newstudent.newstudentstudi...ot exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/nikitisco/public_html/mailer.nikitis.co.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/tajsoft1/public_html/store.tajsoftexporters.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/majitappaadiwasifoundation.in] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.com] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/meharcharitablesociety.org] does not exist
May 11 02:35:03 chenab.serverforhost.com restartsrv_httpd[5954]: AH00112: Warning: DocumentRoot [/home/taracorp/public_html/shivgramodayschool.in] does not exist
May 11 02:35:32 chenab.serverforhost.com systemd[1]: PID file /run/apache2/httpd.pid not readable (yet?) after start.
May 11 02:35:34 chenab.serverforhost.com systemd[1]: Started Apache web server managed by cPanel EasyApache.
Hint: Some lines were ellipsized, use -l to show in full.


[root@chenab ~]# systemctl --version
systemd 233
+PAM +AUDIT +SELINUX +IMA -APPARMOR +SMACK +SYSVINIT +UTMP -LIBCRYPTSETUP +GCRYPT -GNUTLS -ACL +XZ -LZ4 -SECCOMP +BLKID -ELFUTILS -KMOD +IDN default-hierarchy=hybrid
[root@chenab ~]#

Please let me know if there is anything else that I can provide in order to diagnose this problem.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: systemd timeout - httpd.service always fails

Post by TrevorH » 2017/05/11 10:33:22

├─ 6541 /usr/local/cpanel/3rdparty/bin/perl /usr/local/cpanel/bin/leechprotect
It's a cpanel system, you need to ask them for support.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SolaDrive
Posts: 12
Joined: 2017/05/10 16:36:07
Contact:

Re: systemd timeout - httpd.service always fails

Post by SolaDrive » 2017/05/11 11:51:35

Isn't systemd and httpd part of centos? You copied/quoted only one thing from cPanel which just happened to be apart of that group. The issue is still with systemd isn't it?

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: systemd timeout - httpd.service always fails

Post by TrevorH » 2017/05/11 12:46:05

No, the issue is with your cpanel supplied httpd. Once you put cpanel on a machine it ceases to be CentOS and becomes cpanel.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SolaDrive
Posts: 12
Joined: 2017/05/10 16:36:07
Contact:

Re: systemd timeout - httpd.service always fails

Post by SolaDrive » 2017/12/17 09:52:35

@TrevorH Systemd is a core component of all Redhat based Operating systems. It is not under the control of cPanel or cPanel's bundled software. Can you explain how this is cPanel related?

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: systemd timeout - httpd.service always fails

Post by pjsr2 » 2017/12/17 10:47:02

CPanel replaces and modifies many standard CentOS packages. For example your httpd package has been adapted and replaced as you can see from your httpd.service file, where ExecStart is using a CPanel specific script.
# systemctl status httpd.service
● httpd.service - Apache web server managed by cPanel EasyApache
Loaded: loaded (/etc/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: active (running) since Thu 2017-05-11 02:35:34 IST; 1h 3min ago
Process: 5954 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)
The modifications by CPanel are so extensive that you really need to seek advise from CPanel support or forums.

User avatar
TrevorH
Site Admin
Posts: 33202
Joined: 2009/09/24 10:40:56
Location: Brighton, UK

Re: systemd timeout - httpd.service always fails

Post by TrevorH » 2017/12/17 14:35:08

Can you explain how this is cPanel related?
This is not a systemd problem, it's an Apache httpd problem and the copy of that that you are running is cpanel's.
The future appears to be RHEL or Debian. I think I'm going Debian.
Info for USB installs on http://wiki.centos.org/HowTos/InstallFromUSBkey
CentOS 5 and 6 are deadest, do not use them.
Use the FAQ Luke

SolaDrive
Posts: 12
Joined: 2017/05/10 16:36:07
Contact:

Re: systemd timeout - httpd.service always fails

Post by SolaDrive » 2017/12/17 23:10:53

systemd is causing high load though all the time. It ends up getting so high after 12-24 hours that the server locks up. cPanel states that cPanel doesn't ship with systemd nor modifies it so who am I supposed to go to for support about this? Everyone is pointing the finger at the other guy.

pjsr2
Posts: 614
Joined: 2014/03/27 20:11:07

Re: systemd timeout - httpd.service always fails

Post by pjsr2 » 2017/12/18 11:04:54

Disclaimer: I have never worked with cPanel. According to https://blog.cpanel.com/the-future-is-n ... -centos-7/ cPanel comes with systemd.

Post Reply