I got an error for the first time..
systemctl start puppetserver
Job for puppetserver.service failed because the control process exited with error code. See "systemctl status puppe
tserver.service" and "journalctl -xe" for details.
systemctl status puppetserver.service
● puppetserver.service - puppetserver Service
Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; disabled; vendor preset: disabled)
Active: activating (start) since Sat 2018-02-03 13:48:10 EET; 2min 10s ago
Control: 13014 (bash)
CGroup: /system.slice/puppetserver.service
├─13014 bash /opt/puppetlabs/server/apps/puppetserver/cli/apps/start
└─13021 /usr/bin/java -Xms2g -Xmx2g -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger...
Feb 03 13:48:10 puppetmaster systemd[1]: puppetserver.service holdoff time over, scheduling restart.
Feb 03 13:48:10 puppetmaster systemd[1]: Starting puppetserver Service...
and *journalctl -xe
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.services$eval5068$fn__5069$G__5055__5
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13835$run_lifecycle_fn_B
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13835$run_lifecycle_fn_B
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13864$run_lifecycle_fns_
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13864$run_lifecycle_fns_
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval14346$build_app_STAR___1
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval14392$boot_services_for_
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval14392$boot_services_for_
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval14392$boot_services_for_
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core$partial$fn__4761.invoke(core.clj:2521)
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13905$initialize_lifecyc
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at puppetlabs.trapperkeeper.internal$eval13905$initialize_lifecyc
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async.impl.ioc_macros$run_state_machine.invokeSta
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async.impl.ioc_macros$run_state_machine.invoke(io
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.i
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async.impl.ioc_macros$run_state_machine_wrapped.i
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async$ioc_alts_BANG_$fn__12043.invoke(async.clj:3
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async$do_alts$fn__11989$fn__11992.invoke(async.cl
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.core.async.impl.channels.ManyToManyChannel$fn__6799$fn
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at clojure.lang.AFn.run(AFn.java:22)
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolEx
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolE
Feb 03 13:52:47 puppetmaster puppetserver[13373]: at java.lang.Thread.run(Thread.java:748)
Feb 03 13:52:47 puppetmaster puppetserver[13373]: Background process 13380 exited before start had completed
Feb 03 13:52:47 puppetmaster systemd[1]: puppetserver.service: control process exited, code=exited status=1
Feb 03 13:52:47 puppetmaster systemd[1]: Failed to start puppetserver Service.
-- Subject: Unit puppetserver.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit puppetserver.service has failed.
--
-- The result is failed.
Feb 03 13:52:47 puppetmaster systemd[1]: Unit puppetserver.service entered failed state.
Feb 03 13:52:47 puppetmaster systemd[1]: puppetserver.service failed.
Feb 03 13:52:47 puppetmaster systemd[1]: puppetserver.service holdoff time over, scheduling restart.
Feb 03 13:52:47 puppetmaster systemd[1]: Starting puppetserver Service...
-- Subject: Unit puppetserver.service has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit puppetserver.service has begun starting up.
maybe is a problem in what I configured on?: vi /etc/puppetlabs/puppet/puppet.conf
btw..
I changed the JAVA_ARGS=" 2g to 512m ''
JAVA_ARGS="-Xms512m -Xmx512m -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger"
now is running:
systemctl status puppetserver
● puppetserver.service - puppetserver Service
Loaded: loaded (/usr/lib/systemd/system/puppetserver.service; disabled; vendor preset: disabled)
Active: active (running) since Sat 2018-02-03 14:41:15 EET; 46s ago
Process: 20172 ExecStop=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver stop (code=exited, status=0/SUCCESS)
Process: 20295 ExecStart=/opt/puppetlabs/server/apps/puppetserver/bin/puppetserver start (code=exited, status=0/SUCCESS)
Main PID: 20302 (java)
CGroup: /system.slice/puppetserver.service
└─20302 /usr/bin/java -Xms512m -Xmx512m -Djruby.logger.class=com.puppetlabs.jruby_utils.jruby.Slf4jLogger -Djava.s...
Related
Apache 2.4.6
RHEL 7.9
PHP 7.4.30
Running this in a Google VM!
Ran "apachectl configtest" and got a "Syntax OK" message. Turned debug logging on in httpd.conf and started the process.
This is the output of systemctl status httpd
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: activating (start) since Tue 2022-08-23 22:59:59 UTC; 7s ago
Docs: man:httpd(8)
man:apachectl(8)
Main PID: 1866 (httpd)
CGroup: /system.slice/httpd.service
├─1866 /usr/sbin/httpd -DFOREGROUND
├─1867 /usr/sbin/httpd -DFOREGROUND
├─1868 /usr/sbin/httpd -DFOREGROUND
├─1869 /usr/sbin/httpd -DFOREGROUND
├─1870 /usr/sbin/httpd -DFOREGROUND
└─1871 /usr/sbin/httpd -DFOREGROUND
Here is the output in error_log:
[Tue Aug 23 22:59:59.144963 2022] [core:notice] [pid 1866] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Tue Aug 23 22:59:59.146252 2022] [suexec:notice] [pid 1866] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Tue Aug 23 22:59:59.183943 2022] [core:warn] [pid 1866] AH00098: pid file /etc/httpd/run/httpd.pid overwritten -- Unclean shutdown of previous Apache run?
[Tue Aug 23 22:59:59.187253 2022] [proxy:debug] [pid 1867] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.187346 2022] [proxy:debug] [pid 1867] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.187378 2022] [proxy:debug] [pid 1867] proxy_util.c(1939): AH00931: initialized single connection worker in child 1867 for (*)
[Tue Aug 23 22:59:59.188948 2022] [proxy:debug] [pid 1868] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.189021 2022] [proxy:debug] [pid 1868] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.189047 2022] [proxy:debug] [pid 1868] proxy_util.c(1939): AH00931: initialized single connection worker in child 1868 for (*)
[Tue Aug 23 22:59:59.190495 2022] [proxy:debug] [pid 1869] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.190562 2022] [proxy:debug] [pid 1869] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.190596 2022] [proxy:debug] [pid 1869] proxy_util.c(1939): AH00931: initialized single connection worker in child 1869 for (*)
[Tue Aug 23 22:59:59.190866 2022] [mpm_prefork:notice] [pid 1866] AH00163: Apache/2.4.6 (Red Hat Enterprise Linux) PHP/7.4.30 configured -- resuming normal operations
[Tue Aug 23 22:59:59.190886 2022] [mpm_prefork:info] [pid 1866] AH00164: Server built: Mar 22 2022 15:35:18
[Tue Aug 23 22:59:59.190901 2022] [core:notice] [pid 1866] AH00094: Command line: '/usr/sbin/httpd -D FOREGROUND'
[Tue Aug 23 22:59:59.190921 2022] [mpm_prefork:debug] [pid 1866] prefork.c(1005): AH00165: Accept mutex: sysvsem (default: sysvsem)
[Tue Aug 23 22:59:59.192147 2022] [proxy:debug] [pid 1870] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.192152 2022] [proxy:debug] [pid 1871] proxy_util.c(1843): AH00925: initializing worker proxy:reverse shared
[Tue Aug 23 22:59:59.192217 2022] [proxy:debug] [pid 1871] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.192253 2022] [proxy:debug] [pid 1871] proxy_util.c(1939): AH00931: initialized single connection worker in child 1871 for (*)
[Tue Aug 23 22:59:59.192298 2022] [proxy:debug] [pid 1870] proxy_util.c(1888): AH00927: initializing worker proxy:reverse local
[Tue Aug 23 22:59:59.192332 2022] [proxy:debug] [pid 1870] proxy_util.c(1939): AH00931: initialized single connection worker in child 1870 for (*)
Plugging the server IP in a web browser loads the page with no issues. However, after a little while, the start process will timeout and the app will exit.
What am I missing?
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: signal) since Tue 2022-08-23 23:02:59 UTC; 15s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 1866 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=KILL)
Main PID: 1866 (code=killed, signal=KILL)
Aug 23 22:59:59 instance-1 systemd[1]: Starting The Apache HTTP Server...
Aug 23 23:01:29 instance-1 systemd[1]: httpd.service start operation timed out. Terminating.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service stop-sigterm timed out. Killing.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service: main process exited, code=killed, status=9/KILL
Aug 23 23:02:59 instance-1 systemd[1]: Failed to start The Apache HTTP Server.
Aug 23 23:02:59 instance-1 systemd[1]: Unit httpd.service entered failed state.
Aug 23 23:02:59 instance-1 systemd[1]: httpd.service failed.
Hah... I found the solution. Needed to load the systemd_module. I added this line in httpd.conf...
LoadModule systemd_module modules/mod_systemd.so
... and viola - it works.
We have an ec2 instance 4vcpu and 16gb of ram which is running Apache server with mpm event behind an aws ELB (application load balancer). This server serve just Images requested by our other applications although for most of application we are using cloudfront for caching but one app is directly sending request on server . Now Apache memory usage reached to 70% every day but it did not come down we have to restart server every time. Earier will old Apache 2.2 version and worker mpm without load balncer we were not having this issue. I have tried different configuration for MPM EVENT and Apache but its not working. Here is apache2.conf
Timeout 120 # also tried the timeout with 300
KeepAlive On
MaxKeepAliveRequests 100
KeepAliveTimeout 45 # varies this setting from 1 seconds to 300
Here is load balancer setting
Http and https listener
Idle timeout is 30
Mpm event
<IfModule mpm_event_module>
StartServers 2
MinSpareThreads 50
MaxSpareThreads 75
ThreadLimit 64
#ServerLimit 400
ThreadsPerChild 25
MaxRequestWorkers 400
MaxConnectionsPerChild 10000
When i change MaxRequestWorkers to 150 with MaxConnectionsPerChild 0 and ram usage reached 47 percent system health checks are failed and new instance is launched by auto scaling group. Seems like worker limit is reached which already happend when this instance was working with 8GB Ram.
Our other server which are just running with simple django site and django rest frame apis are working fine with default values for MPM and apache configured on installation.
I have also tried the configuration with KeepAliveTimeout equals to 2, 3 and 5 seconds as well but it did not work .
I have also follow this link enter link description here it worked somewhat better but memory usage is not coming down.
here is the recent error log
[Fri Dec 04 07:45:21.963290 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:22.964362 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:23.965432 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:24.966485 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:25.967281 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:26.968328 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:27.969392 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:28.970449 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:29.971505 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:30.972548 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:31.973593 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:32.974644 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:33.975697 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:34.976753 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
[Fri Dec 04 07:45:35.977818 2020] [mpm_event:error] [pid 5232:tid 139782245895104] AH03490: scoreboard is full, not at MaxRequestWorkers.Increase ServerLimit.
Sometime error log has this issue seems like child process is not being killed preoperly by apache
[Mon Dec 07 07:04:22.142767 2020] [core:warn] [pid 1836:tid 139752646228928] AH00045: child process 2807 still did not exit, sending a SIGTERM
[Mon Dec 07 07:04:24.144831 2020] [core:warn] [pid 1836:tid 139752646228928] AH00045: child process 1847 still did not exit, sending a SIGTERM
[Mon Dec 07 07:04:24.144875 2020] [core:warn] [pid 1836:tid 139752646228928] AH00045: child process 2807 still did not exit, sending a SIGTERM
[Mon Dec 07 07:04:26.146928 2020] [core:warn] [pid 1836:tid 139752646228928] AH00045: child process 1847 still did not exit, sending a SIGTERM
[Mon Dec 07 07:04:26.146967 2020] [core:warn] [pid 1836:tid 139752646228928] AH00045: child process 2807 still did not exit, sending a SIGTERM
[Mon Dec 07 07:04:28.149026 2020] [core:error] [pid 1836:tid 139752646228928] AH00046: child process 1847 still did not exit, sending a SIGKILL
[Mon Dec 07 07:04:28.149092 2020] [core:error] [pid 1836:tid 139752646228928] AH00046: child process 2807 still did not exit, sending a SIGKILL
top command result
3296 www-data 20 0 3300484 469824 58268 S 0.0 2.9 0:46.46 apache2
2544 www-data 20 0 3359744 453868 58292 S 0.0 2.8 1:24.53 apache2
1708 www-data 20 0 3357172 453524 58208 S 0.0 2.8 1:02.85 apache2
569 www-data 20 0 3290880 444320 57644 S 0.0 2.8 0:37.53 apache2
3655 www-data 20 0 3346908 440596 58116 S 0.0 2.7 1:03.54 apache2
2369 www-data 20 0 3290136 428708 58236 S 0.0 2.7 0:35.74 apache2
3589 www-data 20 0 3291032 382260 58296 S 0.0 2.4 0:50.07 apache2
4298 www-data 20 0 3151764 372304 59160 S 0.0 2.3 0:18.95 apache2
4523 www-data 20 0 3140640 310656 58032 S 0.0 1.9 0:07.58 apache2
4623 www-data 20 0 3139988 242640 57332 S 3.0 1.5 0:03.51 apache2
What is wrong in the configuration that is causing high memory?
are they any Centos 7 / Apache 2.4.6 experts out there?
I am a newbie at web servers, but I have read Go Daddy's Support instructions, Apache HTTPD support sites, and every other Support Forum I can find about this issue.
I have setup the Centos 7 server with HTTPD 2.4.6. I created the Private Key with Open SSL and the CSR and sent the request to Go Daddy. I received back three files: the Server Certificate File and the CA Bundle File. I have copied these files to my server. I have setup the virtual host configuration files with:
<VirtualHost *:443>
ServerName www.laggersec.org
ServerAlias laggersec.org
DocumentRoot /var/www/laggersec.org/html
ErrorLog /var/www/laggersec.org/log/error.log
CustomLog /var/www/laggersec.org/log/requests.log combined
SSLEngine on
SSLProtocol -all +TLSv1.2
SSLCertificateFile /etc/ssl/certs/laggersec.org.crt
SSLCertificateKeyFile /etc/ssl/certs/private/laggersec.org.key
SSLCertificateChainFile /etc/ssl/certs/intermediate.crt
</VirtualHost>
However, whenever I start httpd, it fails with an error.
[root#LAGGERSEC1WEB1 slaggeradmin04]# apachectl restart
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
[root#LAGGERSEC1WEB1 slaggeradmin04]# systemctl status httpd.service
● httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Mon 2020-03-23 17:24:10 UTC; 10s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 116366 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 116365 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 116365 (code=exited, status=1/FAILURE)
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Starting The Apache HTTP Server...
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 23 17:24:10 LAGGERSEC1WEB1 kill[116366]: kill: cannot find process ""
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Failed to start The Apache HTTP Server.
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Unit httpd.service entered failed state.
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service failed.
[root#LAGGERSEC1WEB1 slaggeradmin04]# journalctl -xe
--
-- Unit user-0.slice has finished starting up.
--
-- The start-up result is done.
Mar 23 17:24:01 LAGGERSEC1WEB1 systemd[1]: Started Session 1533 of user root.
-- Subject: Unit session-1533.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-1533.scope has finished starting up.
--
-- The start-up result is done.
Mar 23 17:24:02 LAGGERSEC1WEB1 CROND[116341]: (root) CMD ([ -f /etc/krb5.keytab ] && [ \( ! -f /etc/opt/omi/creds/omi.keytab \) -o \( /etc/krb5.keytab
Mar 23 17:24:02 LAGGERSEC1WEB1 systemd[1]: Removed slice User Slice of root.
-- Subject: Unit user-0.slice has finished shutting down
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit user-0.slice has finished shutting down.
Mar 23 17:24:10 LAGGERSEC1WEB1 polkitd[616]: Registered Authentication Agent for unix-process:116359:6177048 (system bus name :1.3444 [/usr/bin/pkttyag
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Starting The Apache HTTP Server...
-- 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.
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 23 17:24:10 LAGGERSEC1WEB1 kill[116366]: kill: cannot find process ""
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: Unit httpd.service entered failed state.
Mar 23 17:24:10 LAGGERSEC1WEB1 systemd[1]: httpd.service failed.
Mar 23 17:24:10 LAGGERSEC1WEB1 polkitd[616]: Unregistered Authentication Agent for unix-process:116359:6177048 (system bus name :1.3444, object path /o
lines 4447-4486/4486 (END)
[root#LAGGERSEC1WEB1 slaggeradmin04]# cd /var/log/httpd
[root#LAGGERSEC1WEB1 httpd]# ls
access_log error_log-20200308 off ssl_error_log ssl_request_log-20200308
access_log-20200308 error_log-20200315 ssl_access_log ssl_error_log-20200308 system_u:object_r:etc_t:s0
error_log error_log-20200322 ssl_access_log-20200308 ssl_request_log
[root#LAGGERSEC1WEB1 httpd]# cat error_log
[Sun Mar 22 13:41:32.406464 2020] [suexec:notice] [pid 72981] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 22 13:41:32.407451 2020] [ssl:emerg] [pid 72981] AH02311: Fatal error initialising mod_ssl, exiting. See /var/www/laggersec.org/log/error.log for more information
[Sun Mar 22 14:35:38.944945 2020] [suexec:notice] [pid 78824] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Mar 22 14:35:38.945970 2020] [ssl:emerg] [pid 78824] AH02311: Fatal error initialising mod_ssl, exiting. See /var/www/laggersec.org/log/error.log for more information
[Mon Mar 23 14:03:41.301190 2020] [core:notice] [pid 95150] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Mar 23 14:03:41.310673 2020] [suexec:notice] [pid 95150] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 23 14:03:41.311961 2020] [ssl:emerg] [pid 95150] AH01903: Failed to configure CA certificate chain!
[Mon Mar 23 14:03:41.311973 2020] [ssl:emerg] [pid 95150] AH02312: Fatal error initialising mod_ssl, exiting.
[Mon Mar 23 14:29:46.498804 2020] [core:notice] [pid 97660] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Mar 23 14:29:46.500217 2020] [suexec:notice] [pid 97660] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 23 14:29:46.501001 2020] [ssl:emerg] [pid 97660] AH01903: Failed to configure CA certificate chain!
[Mon Mar 23 14:29:46.501007 2020] [ssl:emerg] [pid 97660] AH02312: Fatal error initialising mod_ssl, exiting.
[Mon Mar 23 17:24:10.788302 2020] [core:notice] [pid 116365] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Mar 23 17:24:10.789746 2020] [suexec:notice] [pid 116365] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Mar 23 17:24:10.790996 2020] [ssl:emerg] [pid 116365] AH01903: Failed to configure CA certificate chain!
[Mon Mar 23 17:24:10.791006 2020] [ssl:emerg] [pid 116365] AH02312: Fatal error initialising mod_ssl, exiting.
Is there any expert that could help me out?
I figured it out. I had to use SSLCACertificateFile directive instead of SSLCertificateChainFile directive. This was due to Go Daddy's cert not containing any Intermediate CA entities.
I cannot restart apache on CentOS. The results are below. I cannot locate a meaningful error to fix the issue.
Running service httpd start
Results in
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
Then running systemctl status httpd.service
Results in
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Sun 2017-06-11 08:29:11 EDT; 15min ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 640 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 638 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=killed, signal=SEGV)
Main PID: 638 (code=killed, signal=SEGV)
Jun 11 08:29:11 server systemd[1]: Starting The Apache HTTP Server...
Jun 11 08:29:11 server systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
Jun 11 08:29:11 server kill[640]: kill: cannot find process ""
Jun 11 08:29:11 server systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 11 08:29:11 server systemd[1]: Failed to start The Apache HTTP Server.
Jun 11 08:29:11 server systemd[1]: Unit httpd.service entered failed state.
Jun 11 08:29:11 server systemd[1]: httpd.service failed.
And journalctl -xe
Results in
Jun 11 08:45:10 server systemd[1]: Starting The Apache HTTP Server...
-- 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.
Jun 11 08:45:10 server systemd[1]: httpd.service: main process exited, code=killed, status=11/SEGV
Jun 11 08:45:10 server kill[691]: kill: cannot find process ""
Jun 11 08:45:10 server systemd[1]: httpd.service: control process exited, code=exited status=1
Jun 11 08:45:10 server systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Jun 11 08:45:10 server systemd[1]: Unit httpd.service entered failed state.
Jun 11 08:45:10 server systemd[1]: httpd.service failed.
And from /etc/httpd/logs/error_log
[Sun Jun 11 08:49:33.214825 2017] [suexec:notice] [pid 761] AH01232: suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jun 11 08:49:33.237392 2017] [auth_digest:notice] [pid 761] AH01757: generating secret for digest authentication ...
[Sun Jun 11 08:49:33.238036 2017] [lbmethod_heartbeat:notice] [pid 761] AH02282: No slotmem from mod_heartmonitor
PHP Fatal error: PHP Startup: apc_shm_create: shmget(0, 67108864, 914) failed: Invalid argument. It is possible that the chosen SHM segment size is higher than the operation system allows. Linux has usually a default limit of 32MB per segment. in Unknown on line 0
PHP Fatal error: PHP Startup: apc_shm_attach: shmat failed: in Unknown on line 0
I'm trying to install ssl certificate on a new linode machine with centos 7. I installed httpd and open_ssl. I followed this guide for apache: https://www.digitalocean.com/community/tutorials/how-to-set-up-apache-virtual-hosts-on-centos-7
and this one https://www.digitalocean.com/community/tutorials/how-to-create-an-ssl-certificate-on-apache-for-centos-7 for create a certificate ssl.
Now when i try to restart apache with this command:
systemctl restart httpd.service
I got this error:
Job for httpd.service failed because the control process exited with error code. See "systemctl status httpd.service" and "journalctl -xe" for details.
If I run the first script I get this:
httpd.service - The Apache HTTP Server
Loaded: loaded (/usr/lib/systemd/system/httpd.service; enabled; vendor preset: disabled)
Active: failed (Result: exit-code) since Wed 2017-03-01 16:32:27 UTC; 48s ago
Docs: man:httpd(8)
man:apachectl(8)
Process: 13836 ExecStop=/bin/kill -WINCH ${MAINPID} (code=exited, status=1/FAILURE)
Process: 13835 ExecStart=/usr/sbin/httpd $OPTIONS -DFOREGROUND (code=exited, status=1/FAILURE)
Main PID: 13835 (code=exited, status=1/FAILURE)
Mar 01 16:32:27 li947-5 systemd[1]: Starting The Apache HTTP Server...
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 01 16:32:27 li947-5 kill[13836]: kill: cannot find process ""
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 01 16:32:27 li947-5 systemd[1]: Failed to start The Apache HTTP Server.
Mar 01 16:32:27 li947-5 systemd[1]: Unit httpd.service entered failed state.
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service failed.
and if I run "journalctl -xe" I got this:
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Mar 01 16:26:00 li947-5 systemd[1]: Unit httpd.service entered failed state.
Mar 01 16:26:00 li947-5 polkitd[3179]: Unregistered Authentication Agent for unix-process:4730:177180 (system bus name :1.35, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (dis
Mar 01 16:26:00 li947-5 systemd[1]: httpd.service failed.
Mar 01 16:30:01 li947-5 systemd[1]: Started Session 6 of user root.
-- Subject: Unit session-6.scope has finished start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-6.scope has finished starting up.
--
-- The start-up result is done.
Mar 01 16:30:01 li947-5 systemd[1]: Starting Session 6 of user root.
-- Subject: Unit session-6.scope has begun start-up
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit session-6.scope has begun starting up.
Mar 01 16:30:01 li947-5 CROND[4746]: (root) CMD (/usr/lib64/sa/sa1 1 1)
Mar 01 16:31:01 li947-5 anacron[4602]: Job `cron.daily' started
Mar 01 16:31:01 li947-5 run-parts(/etc/cron.daily)[4753]: starting logrotate
Mar 01 16:31:01 li947-5 run-parts(/etc/cron.daily)[4758]: finished logrotate
Mar 01 16:31:01 li947-5 run-parts(/etc/cron.daily)[4760]: starting man-db.cron
Mar 01 16:31:13 li947-5 run-parts(/etc/cron.daily)[13828]: finished man-db.cron
Mar 01 16:31:13 li947-5 anacron[4602]: Job `cron.daily' terminated
Mar 01 16:32:27 li947-5 polkitd[3179]: Registered Authentication Agent for unix-process:13829:215883 (system bus name :1.38 [/usr/bin/pkttyagent --notify-fd 5 --fallback], object path /org/freedesktop/PolicyKit1
Mar 01 16:32:27 li947-5 systemd[1]: Starting The Apache HTTP Server...
-- 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.
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service: main process exited, code=exited, status=1/FAILURE
Mar 01 16:32:27 li947-5 kill[13836]: kill: cannot find process ""
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service: control process exited, code=exited status=1
Mar 01 16:32:27 li947-5 systemd[1]: Failed to start The Apache HTTP Server.
-- Subject: Unit httpd.service has failed
-- Defined-By: systemd
-- Support: http://lists.freedesktop.org/mailman/listinfo/systemd-devel
--
-- Unit httpd.service has failed.
--
-- The result is failed.
Mar 01 16:32:27 li947-5 systemd[1]: Unit httpd.service entered failed state.
Mar 01 16:32:27 li947-5 systemd[1]: httpd.service failed.
Mar 01 16:32:27 li947-5 polkitd[3179]: Unregistered Authentication Agent for unix-process:13829:215883 (system bus name :1.38, object path /org/freedesktop/PolicyKit1/AuthenticationAgent, locale en_US.UTF-8) (di
l
I try to google the problem, but without success. Anyone know how to resolve this?
Thanks and sorry for the english.
I ran into an issue similar to this the other day while trying to install an SSL certificate.
I was able to get more information by checking the SSL log /etc/httpd/logs/ssl_error_log
tail /etc/httpd/logs/ssl_error_log