ALT Linux Sisyphus discussions
 help / color / mirror / Atom feed
From: Andrey Khavryuchenko <akhavr@gmail.com>
To: sisyphus@lists.altlinux.org
Subject: Re: [sisyphus] trac and deadalus apache2-mod_python
Date: Wed, 10 Jan 2007 10:02:20 +0200
Message-ID: <m37ivv48dv.fsf@netmaster.kds.com.ua> (raw)
In-Reply-To: <20070110062946.GA8738@ricom.ru> (Alexey Morsov's message of "Wed, 10 Jan 2007 09:29:47 +0300")

Alexey,

"AM" == Alexey Morsov wrote:

 AM> On Tue, Jan 09, 2007 at 11:58:39PM +0200, Andrey Khavryuchenko wrote:
 >> То, что проблема в пакете apache2-mod_python для меня очевидно,
 >> т.к. самособраный год назад из исходников mod_python 3.1.4 работает без
 >> каких-либо проблем на достаточно нагруженной машине.
 AM> а рядышком стоит первый апач со своим mod_python ?

Нет, естественно.  Рядом таки стоит первый апач, но mod_python в системе
единственный - 3.1.4.

 AM> Собственно проблема в том что модуль ищется по имени. Т.е. как не вменив
 AM> имя впихнуть два mod_python одновременно в систему.

Т.е. причина может быть в том, что trac-mod_python может импортировать
mod_python в нескольких местах...  Сейчас проверю...

Просто снести mod_python 2.7.11 нельзя по зависимостям:

akhavr@www ~ $ sudo apt-get remove mod_python
Password:
Reading Package Lists... Done
Building Dependency Tree... Done
The following packages will be REMOVED:
  mod_python trac-mod_python
0 upgraded, 0 newly installed, 2 removed and 39 not upgraded.
Need to get 0B of archives.
After unpacking 674kB disk space will be freed.
Do you want to continue? [Y/n]

В _тексте_ он импортируется лишь однажды:

akhavr@www ~ $ rpm -ql trac-mod_python | grep py | xargs grep mod_python
/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py:from apache2_mod_python import apache
/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py:        environ['mod_python.options'] = options
/usr/lib/python2.4/site-packages/trac/web/modpython_frontend.py:        environ['mod_python.subprocess_env'] = req.subprocess_env
Binary file /usr/lib/python2.4/site-packages/trac/web/modpython_frontend.pyc matches
Binary file /usr/lib/python2.4/site-packages/trac/web/modpython_frontend.pyo matches

Т.е. возможно они в байт-коде, хотя, при наличии более свежего исходника,
питон будет использовать именно его...

Убрал байткод:
akhavr@www site-packages/trac/web $ sudo rm modpython_frontend.pyc modpython_frontend.pyo

Перезагружаю страницу с trac через mod_python...  получаю ту же картину -
httpd2 отъедает все доступные ресурсы памяти, после чего успешно падает.

Вывод, порядок действий:
 1. Сделать trac-apache2-mod_python
 2. Сделать песочницу с trac + trac-apache2-mod_python + apache2 и
    воспроизвести проблему
 3. Исправить проблему, воспроизведённую в (2)

Когда пакет наконец-то до сизифа доползёт?  Будет на что баг вешать.

-- 
Andrey V Khavryuchenko            
Software Development Company http://www.kds.com.ua/


  reply	other threads:[~2007-01-10  8:02 UTC|newest]

Thread overview: 50+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-01-09 16:41 Andrey Khavryuchenko
2007-01-09 18:41 ` Alexey Morsov
2007-01-09 20:07   ` Andrey Khavryuchenko
2007-01-09 20:44     ` Alexey Morsov
2007-01-09 21:23       ` Andrey Khavryuchenko
2007-01-09 21:29         ` Mikhail Yakshin
2007-01-09 21:58           ` Andrey Khavryuchenko
2007-01-10  6:29             ` Alexey Morsov
2007-01-10  8:02               ` Andrey Khavryuchenko [this message]
2007-01-10  8:29                 ` Alexey Morsov
2007-01-10 10:01                   ` Andrey Khavryuchenko
2007-01-10 10:06                   ` Andrey Khavryuchenko
2007-01-10 10:47                     ` Alexey Morsov
2007-01-10 12:09                       ` Andrey Khavryuchenko
2007-01-10 12:29                         ` Alexey Morsov
2007-01-10 13:38                           ` Andrey Khavryuchenko
2007-01-10 14:36                             ` Alexey Morsov
2007-01-10 16:11                               ` Andrey Khavryuchenko
2007-01-11  7:36                                 ` Alexey Morsov
2007-01-11  9:38                                   ` Andrey Khavryuchenko
2007-01-11  9:46                                     ` Alexey Morsov
2007-01-10 18:33           ` Grigory Batalov
2007-01-10 18:45             ` Andrey Khavryuchenko
2007-01-10 20:22               ` Grigory Batalov
2007-01-10 22:26                 ` Andrey Khavryuchenko
2007-01-11  7:38                   ` Alexey Morsov
2007-01-11  9:38                     ` Andrey Khavryuchenko
2007-01-11  9:48                       ` Alexey Morsov
2007-01-11 11:25                         ` Andrey Khavryuchenko
2007-01-11 13:09                           ` Alexey Morsov
2007-01-11 15:58                             ` Andrey Khavryuchenko
2007-01-11 20:51                               ` Alexey Morsov
2007-01-12  4:45                                 ` Andrey Khavryuchenko
2007-01-12  7:37                                   ` Alexey Morsov
2007-01-12  7:46                                     ` Andrey Khavryuchenko
2007-01-13 20:53                                   ` Mikhail Yakshin
2007-01-13 21:31                                     ` Andrey Khavryuchenko
2007-01-13 21:47                                       ` Mikhail Yakshin
2007-01-14 18:48                                         ` Andrey Khavryuchenko
2007-01-15  7:33                                           ` Alexey Morsov
2007-01-15  7:56                                             ` Andrey Khavryuchenko
2007-01-15  8:37                                               ` Alexey Morsov
2007-01-15  9:08                                                 ` Andrey Khavryuchenko
2007-01-11 13:58                           ` Alexey Morsov
2007-01-09 22:34       ` Michael Shigorin
2007-01-10  6:30         ` Alexey Morsov
2007-01-10  9:22           ` Michael Shigorin
2007-01-10 10:24             ` Alexey Morsov
2007-01-11 21:29               ` Michael Shigorin
2007-01-12  7:40                 ` Alexey Morsov

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m37ivv48dv.fsf@netmaster.kds.com.ua \
    --to=akhavr@gmail.com \
    --cc=sisyphus@lists.altlinux.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link

ALT Linux Sisyphus discussions

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://lore.altlinux.org/sisyphus/0 sisyphus/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 sisyphus sisyphus/ http://lore.altlinux.org/sisyphus \
		sisyphus@altlinux.ru sisyphus@altlinux.org sisyphus@lists.altlinux.org sisyphus@lists.altlinux.ru sisyphus@lists.altlinux.com sisyphus@linuxteam.iplabs.ru sisyphus@list.linux-os.ru
	public-inbox-index sisyphus

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://lore.altlinux.org/org.altlinux.lists.sisyphus


AGPL code for this site: git clone https://public-inbox.org/public-inbox.git