Страница 1 из 1

Apache22 отваливается в 3-00

Добавлено: 2009-06-08 4:36:33
myakuhin
Установил Apache22 с поддержкой php, всё вроде по умолчанию, всё просто, но apache22 каждый день (вернее ночь) отваливается, в httpd-error.log последние записи следующие:

Код: Выделить всё

[Sat Jun 06 03:00:00 2009] [notice] SIGHUP received. Attempting to restart
[Sat Jun 06 03:00:00 2009] [notice] seg fault or similar nasty error detected in the parent process
до этого последние записи были в 16:00

Код: Выделить всё

[notice] child pid 4250 exit signal Segmentation fault (11)
таких записей несколько в них pid только разный 4248, 4254, 4255 и тд

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-08 5:34:12
myakuhin
crontab посмотрел - нету там ничего подобного, также пусто в /var/cron/tabs/
а то что апач вываливается строго по расписанию в 3-00 это точно, проводил экперемент, менял время вручную в системе

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-08 8:19:45
ViktorichZ
myakuhin писал(а):crontab посмотрел - нету там ничего подобного, также пусто в /var/cron/tabs/
а то что апач вываливается строго по расписанию в 3-00 это точно, проводил экперемент, менял время вручную в системе
/etc/logrotate.d/apache
там что? или что-то похожее может быть, очень похоже на что-то связанное с ротацией логов, памяти много на сервере, свопа?
покажите вывод
php -v
apache2 -V

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-08 10:27:02
myakuhin
/etc/logrotate.d/
такого каталога нет

php -v

Код: Выделить всё

PHP 5.2.9 with Suhosin-Path 0.9.7 (cli) (built: May 28 2009 17:37:38)
Copyright v2.2.0, Copyright (c) 1998-2009 Zend Technologies
Ошибка сегментации(core dumped)
httpd -V

Код: Выделить всё

Server version: Apache/2.2.11 (FreeBSD)
Server built:   May 28 2009 17:23:10
Server's Module Magic Number: 20051115:21
Server loaded:  APR 1.3.3, APR-Util 1.3.4
Compiled using: APR 1.3.3, APR-Util 1.3.4
Architecture:   32-bit
Server MPM:     Prefork
  threaded:     no
    forked:     yes (variable process count)
Server compiled with....
 -D APACHE_MPM_DIR="server/mpm/prefork"
 -D APR_HAS_SENDFILE
 -D APR_HAS_MMAP
 -D APR_USE_FLOCK_SERIALIZE
 -D APR_USE_PTHREAD_SERIALIZE
 -D SINGLE_LISTEN_UNSERIALIZED_ACCEPT
 -D APR_HAS_OTHER_CHILD
 -D AP_HAVE_RELIABLE_PIPED_LOGS
 -D DYNAMIC_MODULE_LIMIT=128
 -D HTTPD_ROOT="/usr/local"
 -D SUEXEC_BIN="/usr/local/bin/suexec"
 -D DEFAULT_PIDLOG="/var/run/httpd.pid"
 -D DEFAULT_SCOREBOARD="/var/run/apache_runtime_status"
 -D DEFAULT_LOCKFILE="/var/run/accept.lock"
 -D DEFAULT_ERRORLOG="/var/log/httpd-error.log"
 -D AP_TYPES_CONFIG_FILE="etc/apache22/mime.types"
 -D SERVER_CONFIG_FILE="etc/apache22/httpd.conf"

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-08 13:56:02
ViktorichZ
myakuhin писал(а):/etc/logrotate.d/
такого каталога нет
ой забыл
crontab -l
ну и пошукайте в /var/cron/tabs/ и /etc/crontab , что может за задания стартовать в 3-00

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-08 16:21:43
zingel
что в error.log на этот момент

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 5:12:37
myakuhin

Код: Выделить всё

 2009] [notice] SIGHUP received.  Attempting to restart
 2009] [notice] seg fault or similar nasty error detected in the parent process

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 5:35:27
paradox

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 6:20:26
LMik
Наверное стоило начать с

Код: Выделить всё

uname -a
если бсд давай

Код: Выделить всё

cat /etc/newsyslog.conf

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 6:45:38
myakuhin
FreeBSD 7.0

Код: Выделить всё

bsd# cat /etc/newsyslog.conf
# configuration file for newsyslog
# $FreeBSD: src/etc/newsyslog.conf,v 1.50 2005/03/02 00:40:55 brooks Exp $
#
# Entries which do not specify the '/pid_file' field will cause the
# syslogd process to be signalled when that log file is rotated.  This
# action is only appropriate for log files which are written to by the
# syslogd process (ie, files listed in /etc/syslog.conf).  If there
# is no process which needs to be signalled when a given log file is
# rotated, then the entry for that file should include the 'N' flag.
#
# The 'flags' field is one or more of the letters: BCGJNUWZ or a '-'.
#
# Note: some sites will want to select more restrictive protections than the
# defaults.  In particular, it may be desirable to switch many of the 644
# entries to 640 or 600.  For example, some sites will consider the
# contents of maillog, messages, and lpd-errs to be confidential.  In the
# future, these defaults may change to more conservative ones.
#
# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
/var/log/all.log                        600  7     *    @T00  J
/var/log/amd.log                        644  7     100  *     J
/var/log/auth.log                       600  7     100  *     JC
/var/log/console.log                    600  5     100  *     J
/var/log/cron                           600  3     100  *     JC
/var/log/daily.log                      640  7     *    @T00  JN
/var/log/debug.log                      600  7     100  *     JC
/var/log/kerberos.log                   600  7     100  *     J
/var/log/lpd-errs                       644  7     100  *     JC
/var/log/maillog                        640  7     *    @T00  JC
/var/log/messages                       644  5     100  *     JC
/var/log/monthly.log                    640  12    *    $M1D0 JN
/var/log/pflog                          600  3     100  *     JB    /var/run/pflogd.pid
/var/log/ppp.log        root:network    640  3     100  *     JC
/var/log/security                       600  10    100  *     JC
/var/log/sendmail.st                    640  10    *    168   B
/var/log/slip.log       root:network    640  3     100  *     JC
/var/log/weekly.log                     640  5     1    $W6D0 JN
/var/log/wtmp                           644  3     *    @01T05 B
/var/log/xferlog                        600  7     100  *     JC
/var/log/httpd/*.log                    600  7     *    $D3   JC    /var/run/httpd.pid
bsd#

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 9:38:58
LMik
myakuhin писал(а):FreeBSD 7.0

Код: Выделить всё

bsd# cat /etc/newsyslog.conf
# configuration file for newsyslog
# $FreeBSD: src/etc/newsyslog.conf,v 1.50 2005/03/02 00:40:55 brooks Exp $
#
# Entries which do not specify the '/pid_file' field will cause the
# syslogd process to be signalled when that log file is rotated.  This
# action is only appropriate for log files which are written to by the
# syslogd process (ie, files listed in /etc/syslog.conf).  If there
# is no process which needs to be signalled when a given log file is
# rotated, then the entry for that file should include the 'N' flag.
#
# The 'flags' field is one or more of the letters: BCGJNUWZ or a '-'.
#
# Note: some sites will want to select more restrictive protections than the
# defaults.  In particular, it may be desirable to switch many of the 644
# entries to 640 or 600.  For example, some sites will consider the
# contents of maillog, messages, and lpd-errs to be confidential.  In the
# future, these defaults may change to more conservative ones.
#
# logfilename          [owner:group]    mode count size when  flags [/pid_file] [sig_num]
/var/log/all.log                        600  7     *    @T00  J
/var/log/amd.log                        644  7     100  *     J
/var/log/auth.log                       600  7     100  *     JC
/var/log/console.log                    600  5     100  *     J
/var/log/cron                           600  3     100  *     JC
/var/log/daily.log                      640  7     *    @T00  JN
/var/log/debug.log                      600  7     100  *     JC
/var/log/kerberos.log                   600  7     100  *     J
/var/log/lpd-errs                       644  7     100  *     JC
/var/log/maillog                        640  7     *    @T00  JC
/var/log/messages                       644  5     100  *     JC
/var/log/monthly.log                    640  12    *    $M1D0 JN
/var/log/pflog                          600  3     100  *     JB    /var/run/pflogd.pid
/var/log/ppp.log        root:network    640  3     100  *     JC
/var/log/security                       600  10    100  *     JC
/var/log/sendmail.st                    640  10    *    168   B
/var/log/slip.log       root:network    640  3     100  *     JC
/var/log/weekly.log                     640  5     1    $W6D0 JN
/var/log/wtmp                           644  3     *    @01T05 B
/var/log/xferlog                        600  7     100  *     JC
/var/log/httpd/*.log                    600  7     *    $D3   JC    /var/run/httpd.pid
bsd#

Код: Выделить всё

/var/log/httpd/*.log                    600  7     *    $D3   JC    /var/run/httpd.pid 
man newsyslog.conf

Re: Apache22 отваливается в 3-00

Добавлено: 2009-06-09 15:02:41
ViktorichZ