
En Tue, 2001-10-09 a 16:50, Dan Mick escribio:
I have this problem every two days. I need to kill -9 the hang python process (the others mailmanctl can be down with mailmanctl stop) and rm the /var/.../locks/* and then restart bin/mailmanctl start.
I don't remember if you said, but it would be useful to know what the hung process is doing (truss/strace/whatever)
Ok I have now another pyton eating all the CPU again.
# ps ax 2361 ? S 0:00 python bin/mailmanctl -n start 2362 ? S 0:00 python bin/mailmanctl -n start 2363 ? R 107:03 python bin/mailmanctl -n start 2364 ? S 0:17 python bin/mailmanctl -n start 2365 ? S 0:00 python bin/mailmanctl -n start 2366 ? S 1:19 python bin/mailmanctl -n start 2367 ? R 3087:28 python bin/mailmanctl -n start 2368 ? S 0:05 python bin/mailmanctl -n start
# top 8:09pm up 4 days, 7:31, 1 user, load average: 2.01, 2.03, 2.00 66 processes: 62 sleeping, 4 running, 0 zombie, 0 stopped CPU states: 5.3% user, 94.6% system, 0.0% nice, 0.0% idle Mem: 259688K av, 226752K used, 32936K free,0K shrd, 132904K buff Swap: 385552K av, 0K used, 385552K free 21056K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 2367 root 19 0 4384 4384 2144 R 50.1 1.6 3088m python 2363 root 19 0 5200 5200 2076 R 48.7 2.0 108:16 python 10840 root 2 0 924 924 732 R 0.9 0.3 0:00 top
# strace bin/mailmanctl stop (see attached strace1)
# ps ax 2361 ? R 4:35 python bin/mailmanctl -n start 2363 ? R 115:34 python bin/mailmanctl -n start 2367 ? R 3095:59 python bin/mailmanctl -n start
# uptime 8:29pm up 4 days, 7:51, 2 users, load average: 2.99, 2.95, 2.60
The system do not route any message:
/var/spool/mailman/qfiles/in # ls -al
-rw-rw---- 1 mailman mailman 1656 Oct 12 16:28 1002904109.995445+aa654e5c9dd26e14cd519efea21d3e415812b2ee.msg -rw-rw---- 1 mailman mailman 101 Oct 12 16:28 1002904136.797516+5b8dd6e92bbdd9556e5c7f6176b855ecc6e511ac.db -rw-rw---- 1 mailman mailman 1629823 Oct 12 16:28 1002904136.797516+5b8dd6e92bbdd9556e5c7f6176b855ecc6e511ac.msg -rw-rw---- 1 mailman mailman 101 Oct 12 17:12 1002906779.388226+1b80b9a2035ce7496cc31a4c3dd3ae0b925e520b.db -rw-rw---- 1 mailman mailman 2042 Oct 12 17:12 1002906779.388226+1b80b9a2035ce7496cc31a4c3dd3ae0b925e520b.msg
# strace kill 2361 (see strace2)
# strace kill 2363 (see strace3)
# strace kill 2367 (see strace4)
All process are killed but the lock/ directory shows the following:
:/var/spool/mailman/locks # ls -al total 21 drwxrwsr-x 2 root mailman 212 Oct 12 20:35 . drwxrwsr-x 10 mailman mailman 206 Aug 9 09:38 .. -rw-rw-r-- 2 root mailman 48 Oct 12 21:27 chischis.lock -rw-rw-r-- 2 root mailman 48 Oct 12 21:27 chischis.lock.guru.2363 -rw-rw-r-- 1 mailman mailman 48 Oct 12 2001 chischis.lock.guru.9598 -rw-rw-r-- 2 root mailman 49 Oct 14 2001 master-qrunner -rw-rw-r-- 2 root mailman 49 Oct 14 2001 master-qrunner.guru.2361
(It is correct that several lock files are ownered by root?)
# rm /var/spool/mailman/locks/*
/var/spool/mailman/data # ls -al
-rw-r----- 1 root mailman 41 Aug 9 10:39 adm.pw -rw-rw---- 1 root mailman 8553 Sep 20 03:09 aliases -rw-rw-r-- 1 mailman mailman 12288 Sep 20 03:09 aliases.db -rw-rw-r-- 1 root mailman 2112 Sep 20 01:31 heldmsg-uylug-demoday-11.txt -rw-rw-r-- 1 root mailman 696 Sep 21 01:49 heldmsg-uylug-demoday-12.txt -rw-rw-r-- 1 root mailman 1475 Oct 11 17:25 heldmsg-uylug-il-10.txt -rw-rw-r-- 1 root mailman 1420 Oct 12 12:47 heldmsg-uylug-il-11.txt -rw-rw-r-- 1 root mailman 1182 Sep 30 13:44 heldmsg-uylug-il-5.txt -rw-rw-r-- 1 root mailman 1487 Oct 8 15:31 heldmsg-uylug-il-6.txt -rw-rw-r-- 1 root mailman 1208 Oct 10 01:53 heldmsg-uylug-il-7.txt -rw-rw-r-- 1 root mailman 1246 Oct 10 01:57 heldmsg-uylug-il-8.txt -rw-rw-r-- 1 root mailman 2969 Oct 10 18:02 heldmsg-uylug-il-9.txt -rw-rw-r-- 1 root mailman 1494 Sep 25 15:16 heldmsg-uylug-noticias-6.txt -rw-rw-r-- 1 root mailman 1539 Sep 25 15:16 heldmsg-uylug-noticias-7.txt -rw-r--r-- 1 root mailman 10 Aug 9 09:51 last_mailman_version -rw-rw---- 1 wwwrun mailman 10162 Oct 12 16:23 pending.db -rw-rw-r-- 1 root mailman 2 Aug 11 04:30 pending_subscriptions.db -rw-rw-rw- 1 root mailman 5 Oct 8 15:31 qrunner.pid
You can see the qrunner.pid still here!
# rm qrunner.pid
# bin/mailmanctl -n python
# ps ax 11213 ? S 0:00 python bin/mailmanctl -n start 11214 ? S 0:00 python bin/mailmanctl -n start 11215 ? R 0:02 python bin/mailmanctl -n start 11216 ? R 0:00 python bin/mailmanctl -n start 11217 ? S 0:00 python bin/mailmanctl -n start 11218 ? S 0:01 python bin/mailmanctl -n start 11219 ? R 0:01 python bin/mailmanctl -n start 11220 ? R 0:00 python bin/mailmanctl -n start
# uptime 8:49pm up 4 days, 8:11, 2 users, load average: 0.89, 0.42, 1.12
(there are many smtp session oppened ;)
OPPPSSS!!! The python is hang again!!! see:
# ps ax 11213 ? S 0:00 python bin/mailmanctl -n start 11214 ? S 0:00 python bin/mailmanctl -n start 11215 ? R 7:57 python bin/mailmanctl -n start 11216 ? S 0:01 python bin/mailmanctl -n start 11217 ? S 0:00 python bin/mailmanctl -n start 11218 ? S 0:01 python bin/mailmanctl -n start 11219 ? S 0:01 python bin/mailmanctl -n start 11220 ? S 0:01 python bin/mailmanctl -n start
# top 8:57pm up 4 days, 8:20, 2 users, load average: 1.00, 0.90, 1.06 58 processes: 55 sleeping, 3 running, 0 zombie, 0 stopped CPU states: 6.1% user, 93.8% system, 0.0% nice, 0.0% idle Mem: 259688K av, 228368K used, 31320K free, 0K shrd, 133804K buff Swap: 385552K av, 0K used, 385552K free 23536K cached
PID USER PRI NI SIZE RSS SHARE STAT %CPU %MEM TIME COMMAND 11215 root 11 0 5388 5388 2096 R 98.9 2.0 9:02 python 11327 root 2 0 1024 1024 816 R 1.1 0.3 0:00 top
/var/spool/mailman/locks # ls -al -rw-rw-r-- 2 root mailman 49 Oct 13 2001 chischis.lock -rw-rw-r-- 2 root mailman 49 Oct 13 2001 chischis.lock.guru.11215 -rw-rw-r-- 2 root mailman 50 Oct 14 2001 master-qrunner -rw-rw-r-- 2 root mailman 50 Oct 14 2001 master-qrunner.guru.11213
mmmmmm.... some time ago the list chischis was broken..... the chischis/config.db have data from other list and was completely garbaged.
I will try to delete chischis group and create again.... (I will notice you if I receive another problem)
Ok, hackers, I hope that all of these facts enable you to touch the code!
Please, contact me if you require additional information and/or testing.
--
Rodolfo Pilas Quien los puso a estos tipos donde estan, rodolfo@linux.org.uy Quien los deja seguir en su lugar, http://rodolfo.pilas.net Quien los baja ahora de su altar, ICQ #17461636 Quien les paga para que hagan lo que haran http://xtralinux.org -=# Apocalipsis Now % Cuarteto de Nos #=-
Public GnuPG key: http://www.keyserver.net 1024D/57153363 2001-06-02 key fingerprint = DAAE 3246 3F7D A420 B7A0 48A5 D120 C773 5715 3363