LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Red Hat (http://www.linuxquestions.org/questions/red-hat-31/)
-   -   Need Help - httpd service fail to start in RHEL 6.0 (http://www.linuxquestions.org/questions/red-hat-31/need-help-httpd-service-fail-to-start-in-rhel-6-0-a-4175453197/)

rahardj 03-07-2013 08:04 PM

Need Help - httpd service fail to start in RHEL 6.0
 
Hi,

I configured httpd.conf. With port 8080 and specified the document path correctly. But service httpd restart shows httpd stop fail, httpd start fail with message below:
[root@telinpgw02 ~]# service httpd start
Code:

Starting httpd: /bin/bash: line 1: 21589 Segmentation fault      (core dumped) /usr/sbin/httpd
                                                          [FAILED]

Here's the logs:
Code:

# cat /var/log/httpd/error_log-20130210
[Sun Feb 03 03:25:04 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Feb 03 03:25:04 2013] [notice] Digest: done
[Sun Feb 03 03:25:04 2013] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Sun Feb 03 03:25:04 2013] [warn] mod_wsgi: Runtime using Python/2.6.5.
[Sun Feb 03 03:25:04 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.12.6.2 PHP/5.3.2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Thu Feb 07 15:38:31 2013] [error] [client 10.70.2.183] Invalid method in request \x04\x04
[Thu Feb 07 15:39:24 2013] [error] [client 10.70.2.183] Invalid method in request \xff\xf4\xff\xfd\x06\xff\xf4\xff\xfd\x06
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Thu Feb 07 17:06:42 2013] [notice] caught SIGTERM, shutting down

Code:

# cat /var/log/httpd/error_log-20130203
[Sun Jan 27 15:13:05 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Sun Jan 27 15:13:05 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Sun Jan 27 15:13:05 2013] [notice] Digest: generating secret for digest authentication ...
[Sun Jan 27 15:13:05 2013] [notice] Digest: done
[Sun Jan 27 15:13:06 2013] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Sun Jan 27 15:13:06 2013] [warn] mod_wsgi: Runtime using Python/2.6.5.
[Sun Jan 27 15:13:06 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.12.6.2 PHP/5.3.2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [error] Exception KeyError: KeyError(140170900359136,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Mon Jan 28 18:27:31 2013] [notice] caught SIGTERM, shutting down
[Mon Jan 28 18:30:59 2013] [notice] SELinux policy enabled; httpd running as context system_u:system_r:httpd_t:s0
[Mon Jan 28 18:30:59 2013] [notice] suEXEC mechanism enabled (wrapper: /usr/sbin/suexec)
[Mon Jan 28 18:31:00 2013] [notice] Digest: generating secret for digest authentication ...
[Mon Jan 28 18:31:00 2013] [notice] Digest: done
[Mon Jan 28 18:31:01 2013] [warn] mod_wsgi: Compiled for Python/2.6.2.
[Mon Jan 28 18:31:01 2013] [warn] mod_wsgi: Runtime using Python/2.6.5.
[Mon Jan 28 18:31:01 2013] [notice] Apache/2.2.15 (Unix) DAV/2 mod_auth_kerb/5.4 mod_auth_pgsql/2.0.3 mod_nss/2.2.15 NSS/3.12.6.2 PHP/5.3.2 mod_ssl/2.2.15 OpenSSL/1.0.0-fips mod_wsgi/3.2 Python/2.6.5 mod_perl/2.0.4 Perl/v5.10.1 configured -- resuming normal operations
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [error] Exception KeyError: KeyError(140175787390944,) in <module 'threading' from '/usr/lib64/python2.6/threading.pyc'> ignored
[Sun Feb 03 03:25:04 2013] [notice] SIGHUP received.  Attempting to restart
httpd: Could not reliably determine the server's fully qualified domain name, using ::1 for ServerName

Could someone help me?

rahardj 03-08-2013 01:56 AM

Issue has been solved, here's what I'm doing:

1. Remove httpd package
Code:

#yum remove httpd
2. Re-install httpd package
Code:

#yum install httpd
3. Enable httpd service
Code:

#chkconfig httpd on
4. Start httpd service
Code:

service httpd start


All times are GMT -5. The time now is 11:59 AM.