Author Topic: appached failed after reboot  (Read 9096 times)

0 Members and 1 Guest are viewing this topic.

Offline
*
appached failed after reboot
« on: December 02, 2018, 07:54:44 PM »
hi,

Code: [Select]
# service httpd start
Redirecting to /bin/systemctl start httpd.service
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.

systemctl status httpd.service

Code: [Select]

● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-12-02 23:18:32 +0330; 45s ago
  Process: 2408 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Dec 02 23:18:32 nl1.xxx.ovh systemd[1]: Starting Web server Apache...
Dec 02 23:18:32 nl1.xxx.ovh apachectl[2408]: AH00558: httpd: Could not reliably determine the server's fully qualified domai...essage
Dec 02 23:18:32 nl1.xxx.ovh apachectl[2408]: (30)Read-only file system: AH00091: httpd: could not open error log file /usr/l...r_log.
Dec 02 23:18:32 nl1.xxx.ovh apachectl[2408]: AH00015: Unable to open logs
Dec 02 23:18:32 nl1.xxx.ovh systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 02 23:18:32 nl1.xxx.ovh systemd[1]: Failed to start Web server Apache.
Dec 02 23:18:32 nl1.xxx.ovh systemd[1]: Unit httpd.service entered failed state.
Dec 02 23:18:32 nl1.xxx.ovh systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.

journalctl -xe

Code: [Select]

-- Unit cwpsrv.service has begun starting up.
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service holdoff time over, scheduling restart.
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit cwp-phpfpm.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwp-phpfpm.service has finished starting up.
--
-- The start-up result is done.
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Unit cwp-phpfpm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwp-phpfpm.service has begun starting up.
Dec 02 23:19:35 nl1.xxx.ovh php-fpm[2444]: [02-Dec-2018 23:19:35] ERROR: failed to open error_log (/usr/local/cwp/php71/var/log/php-f
Dec 02 23:19:35 nl1.xxx.ovh php-fpm[2444]: [02-Dec-2018 23:19:35] ERROR: failed to post process the configuration
Dec 02 23:19:35 nl1.xxx.ovh php-fpm[2444]: [02-Dec-2018 23:19:35] ERROR: FPM initialization failed
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service: main process exited, code=exited, status=78/n/a
Dec 02 23:19:35 nl1.xxx.ovh rsyslogd[884]: imjournal: fopen() failed for path: '/var/lib/rsyslog/imjournal.state.tmp': Read-only file
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: Unit cwp-phpfpm.service entered failed state.
Dec 02 23:19:35 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service failed.

[root@nl1 ~]# journalctl -xe
Dec 02 23:20:32 nl1.xxx.ovh crond[654]: postdrop: warning: mail_queue_enter: create file maildrop/203726.1732: Read-only file system
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service holdoff time over, scheduling restart.
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: Started The PHP FastCGI Process Manager.
-- Subject: Unit cwp-phpfpm.service has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwp-phpfpm.service has finished starting up.
--
-- The start-up result is done.
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: Starting The PHP FastCGI Process Manager...
-- Subject: Unit cwp-phpfpm.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit cwp-phpfpm.service has begun starting up.
Dec 02 23:20:33 nl1.xxx.ovh php-fpm[2474]: [02-Dec-2018 23:20:33] ERROR: failed to open error_log (/usr/local/cwp/php71/var/log/php-f
Dec 02 23:20:33 nl1.xxx.ovh php-fpm[2474]: [02-Dec-2018 23:20:33] ERROR: failed to post process the configuration
Dec 02 23:20:33 nl1.xxx.ovh php-fpm[2474]: [02-Dec-2018 23:20:33] ERROR: FPM initialization failed
Dec 02 23:20:33 nl1.xxx.ovh rsyslogd[884]: imjournal: fopen() failed for path: '/var/lib/rsyslog/imjournal.state.tmp': Read-only file
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service: main process exited, code=exited, status=78/n/a
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: Unit cwp-phpfpm.service entered failed state.
Dec 02 23:20:33 nl1.xxx.ovh systemd[1]: cwp-phpfpm.service failed.



httpd status

Code: [Select]
● httpd.service - Web server Apache
   Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
   Active: failed (Result: exit-code) since Sun 2018-12-02 23:18:32 +0330; 5min ago
  Process: 2408 ExecStart=/usr/local/apache/bin/apachectl start (code=exited, status=1/FAILURE)

Dec 02 23:18:32 nl1.iranserver.ovh systemd[1]: Starting Web server Apache...
Dec 02 23:18:32 nl1.iranserver.ovh apachectl[2408]: AH00558: httpd: Could not reliably determine the server's fully qualified domai...essage
Dec 02 23:18:32 nl1.iranserver.ovh apachectl[2408]: (30)Read-only file system: AH00091: httpd: could not open error log file /usr/l...r_log.
Dec 02 23:18:32 nl1.iranserver.ovh apachectl[2408]: AH00015: Unable to open logs
Dec 02 23:18:32 nl1.iranserver.ovh systemd[1]: httpd.service: control process exited, code=exited status=1
Dec 02 23:18:32 nl1.iranserver.ovh systemd[1]: Failed to start Web server Apache.
Dec 02 23:18:32 nl1.iranserver.ovh systemd[1]: Unit httpd.service entered failed state.
Dec 02 23:18:32 nl1.iranserver.ovh systemd[1]: httpd.service failed.
Hint: Some lines were ellipsized, use -l to show in full.




what's wrong?

Offline
*
Re: appached failed after reboot
« Reply #1 on: December 02, 2018, 08:12:21 PM »
you need to do fsck on reboot as your server is in read-only mode.
AntiDDoS Protection (web + mail)
http://centos-webpanel.com/website-ddos-protection-proxy

Join our Development Team and get paid !
http://centos-webpanel.com/develope-modules-for-cwp


Services Monitoring & RBL Monitoring
http://centos-webpanel.com/services-monitor


Do you need Fast and FREE Support included for your CWP linux server?
http://centos-webpanel.com/noc-partner-list
Installation Instructions
http://centos-webpanel.com/installation-instructions
Get Fast Support Here
http://centos-webpanel.com/support-services

Offline
*
Re: appached failed after reboot
« Reply #2 on: December 02, 2018, 09:02:24 PM »
you need to do fsck on reboot as your server is in read-only mode.

why it happened?
I just install cwp and add 2 website with auto ssl
just this

Offline
*
Re: appached failed after reboot
« Reply #3 on: December 03, 2018, 07:19:47 AM »
you need to do fsck on reboot as your server is in read-only mode.

I found the problem

It happened after install user quotas
http://forum.centos-webpanel.com/centos-configuration/how-to-setup-user-quotas/

this is /etc/fstab before change
Code: [Select]

/dev/mapper/centos-root /                       xfs     defaults        0 0
UUID=b4b31406-d16c-4ebe-9a2f-2d8cea25da15 /boot                   xfs     defau$
/dev/mapper/centos-swap swap                    swap    defaults        0 0


and it's after change

Code: [Select]
/dev/mapper/centos-root /                       xfs     usrjquota=quota.user,jqfmt=vfsv0        0 0
UUID=b4b31406-d16c-4ebe-9a2f-2d8cea25da15 /boot                   xfs     defau$
/dev/mapper/centos-swap swap                    swap    defaults        0 0

when I edit it to before change the problem solved