Cpanel Apache error httpd.pid not readable


Status
Not open for further replies.

Ultraman

Poster 1.0
Halo, sore guru dan master,
kira-kira apa yang harus saya lakukan jika server error seperti dibawah ini?

[root@id~]# 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: failed (Result: resources) since Mon 2018-01-08 16:15:36 WIB; 4min 39s ago
Process: 1032 ExecStart=/usr/local/cpanel/scripts/restartsrv_httpd --no-verbose (code=exited, status=0/SUCCESS)

Jan 08 16:15:36 domain.com systemd[1]: Starting Apache web server managed by cPanel EasyApache...
Jan 08 16:15:36 domain.com systemd[1]: PID file /run/apache2/httpd.pid not readable (yet?) after start.
Jan 08 16:15:36 domain.com systemd[1]: Failed to set a watch for httpd.service's PID file /run/apache2/httpd.pid: No space left on device
Jan 08 16:15:36 domain.com systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.
Jan 08 16:15:36 domain.com systemd[1]: Unit httpd.service entered failed state.
Jan 08 16:15:36 domain.com systemd[1]: httpd.service failed.

sebelumnya terima kasih. maaf kalau salah kolom.
 

Ultraman

Poster 1.0
terima kasih responnya master2, berikut laporannya
Code:
[root@id ~]# free
              total        used        free      shared  buff/cache   available
Mem:        6291456      149524     5548224      128712      593708     5548224
Swap:       2097152           0     2097152

Code:
[root@id ~]# df -h
Filesystem      Size  Used Avail Use% Mounted on
/dev/loop1      196G  6.1G  180G   4% /
none            492K     0  492K   0% /dev
tmpfs           7.9G     0  7.9G   0% /dev/shm
tmpfs           7.9G  488K  7.9G   1% /run
tmpfs           7.9G     0  7.9G   0% /sys/fs/cgroup
tmpfs           615M     0  615M   0% /run/user/0

Code:
[root@id ~]# df -i
Filesystem       Inodes  IUsed    IFree IUse% Mounted on
/dev/loop1     13107200 144491 12962709    2% /
none            2052523     26  2052497    1% /dev
tmpfs           2052523      1  2052522    1% /dev/shm
tmpfs           2052523    274  2052249    1% /run
tmpfs           2052523     16  2052507    1% /sys/fs/cgroup
tmpfs           2052523      1  2052522    1% /run/user/0

saya coba ipcs -a ga ada apa apa, soalnya list semaphore udah saya hapus.

Code:
[root@id ~]# journalctl -xe

Jan 08 17:01:01 domain.com systemd[1]: Started Session 217089 of user root.
-- Subject: Unit session-217089.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-217089.scope has finished starting up.
--
-- The start-up result is done.
Jan 08 17:01:01 domain.com systemd[1]: Starting Session 217089 of user root.
-- Subject: Unit session-217089.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-217089.scope has begun starting up.
Jan 08 17:01:01 domain.com CROND[3074]: (root) CMD (/usr/local/cpanel/whostmgr/bin/dnsqueue > /dev/null 2>&1)
Jan 08 17:01:01 domain.com CROND[3075]: (root) CMD (run-parts /etc/cron.hourly)
Jan 08 17:01:01 domain.com run-parts(/etc/cron.hourly)[3079]: starting 0anacron
Jan 08 17:01:01 domain.com run-parts(/etc/cron.hourly)[3085]: finished 0anacron
Jan 08 17:02:51 domain.com spamd[495]: prefork: killing failed child 2914 fd=8 at /usr/local/cpanel/3rdparty/perl/524/lib64/perl5/cpanel_lib/Mail/SpamAssassin/SpamdF
Jan 08 17:02:51 domain.com spamd[495]: prefork: killed child 2914
Jan 08 17:04:34 domain.com systemd[1]: Starting Apache web server managed by cPanel EasyApache...
-- Subject: Unit httpd.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has begun starting up.
Jan 08 17:04:34 domain.com systemd[1]: Reloading.
Jan 08 17:04:34 domain.com systemd[1]: [/usr/lib/systemd/system/vzfifo.service:19] Support for option SysVStartPriority= has been removed and it is ignored
Jan 08 17:04:34 domain.com systemd[1]: Reloading.
Jan 08 17:04:34 domain.com systemd[1]: [/usr/lib/systemd/system/vzfifo.service:19] Support for option SysVStartPriority= has been removed and it is ignored
Jan 08 17:04:34 domain.com systemd[1]: PID file /run/apache2/httpd.pid not readable (yet?) after start.
Jan 08 17:04:34 domain.com systemd[1]: Failed to add watch on /: too many watches
Jan 08 17:04:34 domain.com systemd[1]: Failed to set a watch for httpd.service's PID file /run/apache2/httpd.pid: No space left on device
Jan 08 17:04:34 domain.com systemd[1]: Failed to start Apache web server managed by cPanel EasyApache.

Entah apalagi kira-kira yang harus saya perbuat, guru? haruskah reinstall?
 
Last edited:

GPLHosting

Hosting Guru
1. Silakan edit file /etc/sysctl.conf (mode root)
2. Lalu tambahkan baris berikut didalam file tsb :
fs.inotify.max_user_watches = 262144
3. Lalu simpan file tsb.
4. Jalankan command berikut (mode root) : sysctl -p
 

Ultraman

Poster 1.0
1. Silakan edit file /etc/sysctl.conf (mode root)
2. Lalu tambahkan baris berikut didalam file tsb :
fs.inotify.max_user_watches = 262144
3. Lalu simpan file tsb.
4. Jalankan command berikut (mode root) : sysctl -p

terima kasih guru, ini sudah saya add sejak kemarin, tp tetap ga work, saya restart server ga ada perubahan. errornya tetap sama persis seperti diatas. padahal space lega.

oh iya guru, sebelumnya pakai easyapache 3 nah skrg update ke easyapache 4 jadi begini.

terima kasih atas bantuannya.
 

Ultraman

Poster 1.0
prosedur migrasi sudah benar?
coba di revert dulu ke ea3, kemudian upgrade lagi ke ea4

Nah.. yang upgrade kawan saya, guru. Saya tau taunya sudah begini, pas mau create akun tidak bisa, saya check errornya seperti itu. Kalau pakai easy apache 3 memang gak ada masalah, jadi mungkin betul, harus revert lagi.

Tapi karena saya ada kerjaan lain, kasus ini sudah saya lempar ke teman saya. Jadi kelanjutannya sampai disini, saya ucapkan terima kasih banyak kepada semua, dan maaf jadi nggantung tritnya.

Terima kasih.
 
Status
Not open for further replies.

Top