Apache erfindet Fehler und will dann nicht mehr - aber warum?

Apache, Lighttpd, nginx, Cherokee
hugohorst
Posts: 17
Joined: 2007-04-20 19:28

Apache erfindet Fehler und will dann nicht mehr - aber warum?

Post by hugohorst » 2007-05-03 09:07

Hallo,
da ich Google und diverse Foren vergeblich bemüht habe frag ich mal hier in die Expertenrunde.
In den letzten Tagen hatte ich folgende Einträge im error_log:

Code: Select all

[Tue May 01 19:15:02 2007] [notice] Graceful restart requested, doing restart
[Tue May 01 19:15:02 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Tue May 01 19:15:02 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
Syntax error on line 17 of /etc/apache2/httpd.conf:
Invalid command 'LogFormat', perhaps misspelled or defined by a module not included in the server configuration

[Wed May 02 17:15:01 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
Syntax error on line 101 of /etc/apache2/server-tuning.conf:
Invalid command 'BrowserMatch', perhaps misspelled or defined by a module not included in the server configuration

[Thu May 03 06:15:01 2007] [notice] Graceful restart requested, doing restart
[Thu May 03 06:15:01 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
[Thu May 03 06:15:01 2007] [error] (9)Bad file descriptor: apr_socket_accept: (client socket)
Syntax error on line 101 of /etc/apache2/server-tuning.conf:
Invalid command 'BrowserMatch', perhaps misspelled or defined by a module not included in the server configuration
Jeweils zu diesen Zeiten ist der Apache abgekackt, aber nach einem einfachen /etc/init.d/apache start läuft er wieder. Also ein Fehler der irgendwie nicht immer als Fehler zählt.
Der erste Fehler mit LogFormat stammt von SrvReport das immer prima lief jetzt meckert er einfach so, habs auskommentiert seitdem nur noch die beiden Folgefehler, die server-tuning.conf hab ich eigentlich garnicht angerührt:
Entsprechende Zeilen sehen so aus:

Code: Select all

#
# The following directives modify normal HTTP response behavior to
# handle known problems with browser implementations.
#
BrowserMatch "Mozilla/2" nokeepalive                             <-- [ZEILE 101]
BrowserMatch "MSIE 4.0b2;" nokeepalive downgrade-1.0 force-response-1.0
BrowserMatch "RealPlayer 4.0" force-response-1.0
BrowserMatch "Java/1.0" force-response-1.0
BrowserMatch "JDK/1.0" force-response-1.0

#
# The following directive disables redirects on non-GET requests for
# a directory that does not include the trailing slash.  This fixes a 
# problem with Microsoft WebFolders which does not appropriately handle 
# redirects for folders with DAV methods.
# Same deal with Apple's DAV filesystem and Gnome VFS support for DAV.
#
BrowserMatch "Microsoft Data Access Internet Publishing Provider" redirect-carefully
BrowserMatch "^WebDrive" redirect-carefully
BrowserMatch "^WebDAVFS/1.[012]" redirect-carefully
BrowserMatch "^gnome-vfs" redirect-carefully
mod_setenvif wird geladen falls das eure erste Idee ist, die hab ich bereits ausprobiert.
Ich bin etwas ratlos wo ich ansetzen soll, weil der Fehler unregelmäßig kommt, anscheinend nicht immer als Fehler angesehen wird und zu entsprechenden Zeiten im Access_log nichts besonderes steht. Scheint also auch nicht von außen initiiert zu werden.

Großes Kompliment an euer Forum!!

Ich bin sehr dankbar für jede Hilfe
Vielen Dank
MfG

User avatar
Joe User
Project Manager
Project Manager
Posts: 11138
Joined: 2003-02-27 01:00
Location: Hamburg

Re: Apache erfindet Fehler und will dann nicht mehr - aber warum?

Post by Joe User » 2007-05-03 12:09

Code: Select all

grep -rin loadmodule /etc/apache2/
grep -in module /etc/sysconfig/apache2
PayPal.Me/JoeUserFreeBSD Remote Installation
Wings for LifeWings for Life World Run

„If there’s more than one possible outcome of a job or task, and one
of those outcomes will result in disaster or an undesirable consequence,
then somebody will do it that way.“ -- Edward Aloysius Murphy Jr.

hugohorst
Posts: 17
Joined: 2007-04-20 19:28

Re: Apache erfindet Fehler und will dann nicht mehr - aber warum?

Post by hugohorst » 2007-05-03 14:15

Code: Select all

 # grep -rin loadmodule /etc/apache2/
/etc/apache2/httpd.conf:26:#  |-- sysconfig.d/loadmodule.conf . . . . .  [*] load these modules
/etc/apache2/httpd.conf:86:#  |   `-- loadmodule.conf
/etc/apache2/httpd.conf:116:Include /etc/apache2/sysconfig.d/loadmodule.conf
/etc/apache2/sysconfig.d/loadmodule.conf:8:LoadModule actions_module                 /usr/lib64/apache2-prefork/mod_actions.so
/etc/apache2/sysconfig.d/loadmodule.conf:9:LoadModule alias_module                   /usr/lib64/apache2-prefork/mod_alias.so
/etc/apache2/sysconfig.d/loadmodule.conf:10:LoadModule auth_basic_module              /usr/lib64/apache2-prefork/mod_auth_basic.so
/etc/apache2/sysconfig.d/loadmodule.conf:11:LoadModule authn_file_module              /usr/lib64/apache2-prefork/mod_authn_file.so
/etc/apache2/sysconfig.d/loadmodule.conf:12:LoadModule authz_host_module              /usr/lib64/apache2-prefork/mod_authz_host.so
/etc/apache2/sysconfig.d/loadmodule.conf:13:LoadModule authz_groupfile_module         /usr/lib64/apache2-prefork/mod_authz_groupfile.so
/etc/apache2/sysconfig.d/loadmodule.conf:14:LoadModule authz_default_module           /usr/lib64/apache2-prefork/mod_authz_default.so
/etc/apache2/sysconfig.d/loadmodule.conf:15:LoadModule authz_user_module              /usr/lib64/apache2-prefork/mod_authz_user.so
/etc/apache2/sysconfig.d/loadmodule.conf:16:LoadModule authn_dbm_module               /usr/lib64/apache2-prefork/mod_authn_dbm.so
/etc/apache2/sysconfig.d/loadmodule.conf:17:LoadModule autoindex_module               /usr/lib64/apache2-prefork/mod_autoindex.so
/etc/apache2/sysconfig.d/loadmodule.conf:18:LoadModule cgi_module                     /usr/lib64/apache2-prefork/mod_cgi.so
/etc/apache2/sysconfig.d/loadmodule.conf:19:LoadModule dir_module                     /usr/lib64/apache2-prefork/mod_dir.so
/etc/apache2/sysconfig.d/loadmodule.conf:20:LoadModule env_module                     /usr/lib64/apache2-prefork/mod_env.so
/etc/apache2/sysconfig.d/loadmodule.conf:21:LoadModule expires_module                 /usr/lib64/apache2-prefork/mod_expires.so
/etc/apache2/sysconfig.d/loadmodule.conf:22:LoadModule include_module                 /usr/lib64/apache2-prefork/mod_include.so
/etc/apache2/sysconfig.d/loadmodule.conf:23:LoadModule log_config_module              /usr/lib64/apache2-prefork/mod_log_config.so
/etc/apache2/sysconfig.d/loadmodule.conf:24:LoadModule mime_module                    /usr/lib64/apache2-prefork/mod_mime.so
/etc/apache2/sysconfig.d/loadmodule.conf:25:LoadModule negotiation_module             /usr/lib64/apache2-prefork/mod_negotiation.so
/etc/apache2/sysconfig.d/loadmodule.conf:26:LoadModule setenvif_module                /usr/lib64/apache2-prefork/mod_setenvif.so
/etc/apache2/sysconfig.d/loadmodule.conf:27:LoadModule ssl_module                     /usr/lib64/apache2-prefork/mod_ssl.so
/etc/apache2/sysconfig.d/loadmodule.conf:28:LoadModule suexec_module                  /usr/lib64/apache2-prefork/mod_suexec.so
/etc/apache2/sysconfig.d/loadmodule.conf:29:LoadModule userdir_module                 /usr/lib64/apache2-prefork/mod_userdir.so
/etc/apache2/sysconfig.d/loadmodule.conf:30:LoadModule rewrite_module                 /usr/lib64/apache2-prefork/mod_rewrite.so
/etc/apache2/sysconfig.d/loadmodule.conf:31:LoadModule php5_module                    /usr/lib64/apache2/mod_php5.so
/etc/apache2/sysconfig.d/loadmodule.conf:32:LoadModule status_module                  /usr/lib64/apache2-prefork/mod_status.so
/etc/apache2/sysconfig.d/loadmodule.conf:33:LoadModule evasive20_module               /usr/lib64/apache2-prefork/mod_evasive20.so
grep: warning: /etc/apache2/conf: recursive directory loop

Code: Select all

# grep -in module /etc/sysconfig/apache2
36:# [It might look silly to not simply edit httpd.conf for the LoadModule statements.
37:# However, since the LoadModule statements might need an absolute path to the modules,
40:# * list of all modules shipped with the base distribution:
57:#    <IfModule mod_xyz.c>
59:#    </IfModule>
61:# * In the APACHE_MODULES variable, you can use mod_xyz or just xyz syntax.
64:# * NOTE ON MOD_SSL: before you can enable this module, you need a server certificate.
73:# * modules listed here will be ignored if they are not installed
79:# APACHE_MODULES="authz_host alias auth dir log_config mime setenvif"
82:# APACHE_MODULES="authz_host actions alias asis auth autoindex cgi dir imap include log_config mime negotiation setenvif status userdir"
84:APACHE_MODULES="actions alias auth_basic authn_file authz_host authz_groupfile authz_default authz_user authn_dbm autoindex cgi dir env expires include log_config mime negotiation setenvif ssl suexec userdir rewrite php5 status evasive20"
134:# MPM (multi-processing module) to use.
137:# against which header files modules will be built.
253:# (installed modules, versions, etc.)
Danke für eure Hilfe im Voraus!