* [Sysadmins] Не стыковка httpd2 и mod_php5
@ 2007-11-09 22:13 Di
2007-11-09 22:25 ` Pavlov Konstantin
2007-11-10 5:33 ` Dmitry Lebkov
0 siblings, 2 replies; 7+ messages in thread
From: Di @ 2007-11-09 22:13 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 3125 bytes --]
Доброго времени суток.
Поставил в контейнере:
# rpm -qa | grep apache
apache2-common-2.2.6-alt4
apache2-mod_php5-5.2.2-alt1
apache2-httpd-prefork-2.2.6-alt4
apache2-2.2.6-alt4
alterator-apache2-2.1-alt1
# rpm -qa | grep php
php-base-2.2-alt1
php5-suhosin-0.9.19-alt1
apache2-mod_php5-5.2.2-alt1
php5-libs-5.2.2-alt1
php5-5.2.2-alt1
Всё взято из бранча, как я понимаю... потому не в Sisyphus@
При попытке запустить сервер после останова в ошибках было вот такое:
[crit] (28)No space left on device: Unable to create scoreboard
(anonymous shared memory failure)
Погуглил и добавил в httpd2.conf такое:
ScoreBoardFile logs/apache_runtime_status
Попробовал старотовать сервер:
[crit] (28)No space left on device: unable to create scoreboard
"/var/log/httpd2/apache_runtime_status" (name-based shared memory failure)
При этом
# ls -lah /var/log/httpd2/
total 20K
drwxr-x--- 2 root apache2 4.0K Nov 10 04:43 .
drwxr-xr-x 14 root root 4.0K Nov 9 00:37 ..
-rw-r--r-- 1 root root 2.5K Nov 9 00:51 access_log
-rw-r--r-- 1 root root 0 Nov 10 04:43 apache_runtime_status
-rw-r--r-- 1 root root 5.2K Nov 10 04:43 error_log
Затем удалил apache2-mod_php5-5.2.2-alt1
Рестартовал - всё ок.
[notice] Apache/2.2.6 (Unix) configured -- resuming normal operations
[info] Server built: Sep 28 2007 12:36:18
[debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
Поставил mod_php5 обратно, сервер прорелодился.
[notice] SIGHUP received. Attempting to restart
[notice] Apache/2.2.6 (Unix) configured -- resuming normal operations
[info] Server built: Sep 28 2007 12:36:18
[debug] prefork.c(991): AcceptMutex: sysvsem (default: sysvsem)
Теперь пробуем остановить и запустить:
# service httpd2 stop
Stopping httpd2
service:
[ DONE ]
# service httpd2 status
httpd2 is stopped
# service httpd2 start
Starting httpd2
service:
[ DONE ]
# service httpd2 status
httpd2 is dead, but stale PID file exists
# tail /var/log/httpd2/error_log
[Sat Nov 10 05:07:08 2007] [notice] Apache/2.2.6 (Unix) configured --
resuming normal operations
[Sat Nov 10 05:07:08 2007] [info] Server built: Sep 28 2007 12:36:18
[Sat Nov 10 05:07:08 2007] [debug] prefork.c(991): AcceptMutex: sysvsem
(default: sysvsem)
[Sat Nov 10 05:08:55 2007] [notice] SIGHUP received. Attempting to restart
[Sat Nov 10 05:08:56 2007] [notice] Apache/2.2.6 (Unix) configured --
resuming normal operations
[Sat Nov 10 05:08:56 2007] [info] Server built: Sep 28 2007 12:36:18
[Sat Nov 10 05:08:56 2007] [debug] prefork.c(991): AcceptMutex: sysvsem
(default: sysvsem)
[Sat Nov 10 05:11:41 2007] [info] removed PID file
/var/run/httpd2/httpd.pid (pid=26615)
[Sat Nov 10 05:11:41 2007] [notice] caught SIGTERM, shutting down
[Sat Nov 10 05:11:52 2007] [crit] (28)No space left on device: unable to
create scoreboard "/var/log/httpd2/apache_runtime_status" (name-based
shared memory failure)
Что теперь делать и кто виноват? ;)
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-09 22:13 [Sysadmins] Не стыковка httpd2 и mod_php5 Di
@ 2007-11-09 22:25 ` Pavlov Konstantin
2007-11-09 22:36 ` Di
2007-11-10 5:33 ` Dmitry Lebkov
1 sibling, 1 reply; 7+ messages in thread
From: Pavlov Konstantin @ 2007-11-09 22:25 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 263 bytes --]
On Sat, Nov 10, 2007 at 12:13:58AM +0200, Di wrote:
> [crit] (28)No space left on device: Unable to create scoreboard
Место-то в контейнере есть?
--
Это мерзкие подводные грабли, которые чем раньше будут выловлены,
тем лучше.
-- mithraen in devel@
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-09 22:25 ` Pavlov Konstantin
@ 2007-11-09 22:36 ` Di
2007-11-09 22:59 ` Pavlov Konstantin
0 siblings, 1 reply; 7+ messages in thread
From: Di @ 2007-11-09 22:36 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 200 bytes --]
Pavlov Konstantin пишет:
> Место-то в контейнере есть?
>
есть:
# df -h
Filesystem Size Used Avail Use% Mounted on
simfs 1.0G 164M 861M 16% /
или этого не достаточно?
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-09 22:36 ` Di
@ 2007-11-09 22:59 ` Pavlov Konstantin
2007-11-09 23:16 ` Di
0 siblings, 1 reply; 7+ messages in thread
From: Pavlov Konstantin @ 2007-11-09 22:59 UTC (permalink / raw)
To: sysadmins
[-- Attachment #1: Type: text/plain, Size: 446 bytes --]
On Sat, Nov 10, 2007 at 12:36:52AM +0200, Di wrote:
> Pavlov Konstantin пишет:
>> Место-то в контейнере есть?
>>
> есть:
> # df -h
> Filesystem Size Used Avail Use% Mounted on
> simfs 1.0G 164M 861M 16% /
> или этого не достаточно?
А i-node'ов сколько ?
--
<hmepas> пока читал Ваш дуратский bash.org.ru забыл зачем сел за комп ;(* А
ведь что-то умное-вечное-полезное хотел сделать....
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 189 bytes --]
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-09 22:59 ` Pavlov Konstantin
@ 2007-11-09 23:16 ` Di
0 siblings, 0 replies; 7+ messages in thread
From: Di @ 2007-11-09 23:16 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 347 bytes --]
Pavlov Konstantin пишет:
> А i-node'ов сколько
Filesystem Inodes IUsed IFree IUse% Mounted on
simfs 200000 6231 193769 4% /
Вот, нашёл похожий случай -
http://www.unixadmintalk.com/f44/unable-create-scoreboard-anonymous-shared-memory-failure-when-restarting-apache-2-0-52-a-47047/
только там нет ответов =(
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-09 22:13 [Sysadmins] Не стыковка httpd2 и mod_php5 Di
2007-11-09 22:25 ` Pavlov Konstantin
@ 2007-11-10 5:33 ` Dmitry Lebkov
2007-11-10 16:10 ` Di
1 sibling, 1 reply; 7+ messages in thread
From: Dmitry Lebkov @ 2007-11-10 5:33 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
Di пишет:
[skip]
> [Sat Nov 10 05:11:52 2007] [crit] (28)No space left on device: unable to
> create scoreboard "/var/log/httpd2/apache_runtime_status" (name-based
> shared memory failure)
>
> Что теперь делать и кто виноват? ;)
Внутри контейнера:
# cat /proc/user_beancounters и смотреть на столбец failcnt для shmpages.
После чего уже в HS:
# vzctl set <VID-контейнера> --shmpages 16384:16384 --save
и пытаться запустить апач еще раз.
Вообще, в случае OVZ, /proc/user_beancounters -- это первое, куда надо
заглядывать в поисках проблем (failcnt - показатель).
--
WBR, Dmitry Lebkov
^ permalink raw reply [flat|nested] 7+ messages in thread
* Re: [Sysadmins] Не стыковка httpd2 и mod_php5
2007-11-10 5:33 ` Dmitry Lebkov
@ 2007-11-10 16:10 ` Di
0 siblings, 0 replies; 7+ messages in thread
From: Di @ 2007-11-10 16:10 UTC (permalink / raw)
To: ALT Linux sysadmin discuss
[-- Attachment #1: Type: text/plain, Size: 713 bytes --]
Dmitry Lebkov пишет:
> Внутри контейнера:
> # cat /proc/user_beancounters и смотреть на столбец failcnt для shmpages.
>
>
Действительно:
resource held maxheld barrier limit failcnt
shmpages 0 8192 8192 8192 8
> После чего уже в HS:
> # vzctl set <VID-контейнера> --shmpages 16384:16384 --save
>
resource held maxheld barrier limit
failcnt
shmpages 8208 8208 16384 16384 8
Т.е. мы просто увеличили предел?
> Вообще, в случае OVZ, /proc/user_beancounters -- это первое, куда надо
> заглядывать в поисках проблем (failcnt - показатель).
>
Спасибо. Помогло =)
[-- Attachment #2: denyago.vcf --]
[-- Type: text/x-vcard, Size: 364 bytes --]
begin:vcard
fn:Denis Timurovich Yagofarov
n:Yagofarov;Denis Timurovich
org:ITGIS NASU
adr:room 615;;Chokolovski sqr., 13;Kiev;;03151;Ukraine
email;internet:denyago@rambler.ru
title:system administrator
tel;work:80442480755
tel;pager:diyago@jabber.te.ua
tel;home:80442434512
tel;cell:80662933760
note:diyago@jabber.te.ua
x-mozilla-html:FALSE
version:2.1
end:vcard
^ permalink raw reply [flat|nested] 7+ messages in thread
end of thread, other threads:[~2007-11-10 16:10 UTC | newest]
Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-11-09 22:13 [Sysadmins] Не стыковка httpd2 и mod_php5 Di
2007-11-09 22:25 ` Pavlov Konstantin
2007-11-09 22:36 ` Di
2007-11-09 22:59 ` Pavlov Konstantin
2007-11-09 23:16 ` Di
2007-11-10 5:33 ` Dmitry Lebkov
2007-11-10 16:10 ` Di
ALT Linux sysadmins discussion
This inbox may be cloned and mirrored by anyone:
git clone --mirror http://lore.altlinux.org/sysadmins/0 sysadmins/git/0.git
# If you have public-inbox 1.1+ installed, you may
# initialize and index your mirror using the following commands:
public-inbox-init -V2 sysadmins sysadmins/ http://lore.altlinux.org/sysadmins \
sysadmins@lists.altlinux.org sysadmins@lists.altlinux.ru sysadmins@lists.altlinux.com
public-inbox-index sysadmins
Example config snippet for mirrors.
Newsgroup available over NNTP:
nntp://lore.altlinux.org/org.altlinux.lists.sysadmins
AGPL code for this site: git clone https://public-inbox.org/public-inbox.git