Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 89442 - Qmail hangs at "* Setting up the message queue hierarchy ..." during emerge
Summary: Qmail hangs at "* Setting up the message queue hierarchy ..." during emerge
Status: RESOLVED DUPLICATE of bug 90679
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High normal (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-17 11:47 UTC by Devin
Modified: 2005-09-11 16:00 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
part of ps -ef -auxww output (ner,16.12 KB, text/plain)
2005-04-21 11:03 UTC, Devin
Details
ps -ef -auxww during qmail hang (ps-capture,152.12 KB, text/plain)
2005-04-21 12:37 UTC, Devin
Details
tcp.smtp file (tcp.smtp,4.65 KB, text/plain)
2005-04-21 13:36 UTC, Devin
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Devin 2005-04-17 11:47:09 UTC
ive been trying to emerge qmail (tried many versions) and everytime it gets to "* Setting up the message queue hierarchy ..." and just stays there, and itll stay there for days (left it going for a long time, never moved) so id hit ctrl+c to exit.  i tried to continue with the install listed in http://gentoo-wiki.com/HOWTO_Setup_QMAIL_VPOPMAIL_and_Other_Mail_Servers
and i get to the point of using tcprules, and it again hangs there and never moves

Reproducible: Always
Steps to Reproduce:
1.emerge qmail
2.(continue with config instructions)
3.tcprules /etc/tcprules.d/tcp.qmail-smtp.cdb /etc/tcprules.d/.tcp.qmail-smtp.tmp < /etc/tcprules.d/tcp.qmail-smtp

Actual Results:  
it would stall in the same spot every time

Expected Results:  
emerged completely, and tcprules should have finished setting everything up
rather than hanging there.

root # emerge info
Portage 2.0.51.19 (default-linux/x86/2005.0, gcc-3.4.3-20050110,
glibc-2.3.4.20050125-r1, 2.6.11-gentoo-r4 i686)
=================================================================
System uname: 2.6.11-gentoo-r4 i686 AMD Athlon(tm) XP 2500+
Gentoo Base System version 1.4.16
Python:              dev-lang/python-2.3.4-r1 [2.3.4 (#1, Apr  3 2005, 23:58:09)]
dev-lang/python:     2.3.4-r1
sys-devel/autoconf:  2.59-r6, 2.13
sys-devel/automake:  1.7.9-r1, 1.8.5-r3, 1.5, 1.4_p6, 1.6.3, 1.9.4
sys-devel/binutils:  2.15.92.0.2-r7
sys-devel/libtool:   1.5.14
virtual/os-headers:  2.6.8.1-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer
-fprefetch-loop-arrays -pipe"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3.3/env /usr/kde/3.3/share
/config /usr/kde/3.3/shutdown /usr/kde/3/share/config /usr/lib/X11/xkb
/usr/share/config /var/qmail/control /var/vpopmail/domains /var/vpopmail/etc"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-O2 -march=athlon-xp -fomit-frame-pointer -ftracer
-fprefetch-loop-arrays -pipe -fvisibility-inlines-hidden"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs autoconfig ccache distlocks sandbox sfperms strict"
GENTOO_MIRRORS="http://distfiles.gentoo.org
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage /usr/local/zugaina-portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="x86 X alsa apache2 apm arts authdaemon avi berkdb bitmap-fonts cdr crypt
cups curl emboss encode esd fam flac foomaticdb fortran gd gdbm gif gnome gnutls
gphoto2 gpm gstreamer gtk gtk2 imagemagick imap imlib ipv6 java jpeg kde ldap
libg++ libwww mad maildir mikmod motif mp3 mpeg mysql ncurses nls ogg oggvorbis
opengl oss pam pdflib perl php png python qt quicktime readline sdl speex spell
ssl  svga tcpd tiff truetype truetype-fonts type1-fonts valias vhosts vorbis xml
xml2 xmms xv zlib"
Unset:  ASFLAGS, CBUILD, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-17 16:20:06 UTC
could you try using tcprules directly and see if it also hangs?
if it does, please build it with debugging, run it via GDB, and provide a backtrace to the point where it hangs.
Comment 2 Devin 2005-04-17 20:18:24 UTC
erm..im sorry im still a newbie, could you possibly explain how to do that?
Comment 3 Devin 2005-04-20 11:34:54 UTC
i hate to be a pest but could somebody please tell me how to do those things so i can try to get my qmail up and running? :( (sorry if i am being a pest =/)
Comment 4 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-20 20:25:46 UTC
right after the qmail hang occurs, please provide the output of:
"ps -ef -auxww" (redirect it to a file, and attach that file here).
This will enable us to check what the actual thing hanging is.

also, if you have tried to install qmail in the past, and then decided to do rm -rf /var/qmail, that would have broken things - as qmail is not the only package to install files in that directory - to fix this, find what packages had files there: "grep '/var/qmail' -r /var/db/pkg" and emerge them again.
Comment 5 Devin 2005-04-21 11:03:49 UTC
Created attachment 56856 [details]
part of ps -ef -auxww output

i cant really redo qmail at this moment, but i tried tcprules and used ps -ef
-auxww	unfourtunatly it seems to get cut off at the top, and i dont know how
to get all of it =/ i hope this helps in some way (btw i reemerged everything
like you said because i had removed /var/qmail	but still no go =/)
Comment 6 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-21 12:08:34 UTC
umm, you didn't capture it right.

- emerge qmail
- wait until it hangs
- when it hangs, open another terminal
- in the new terminal, run 'ps -ef -auxww >/root/ps-capture'
Comment 7 Devin 2005-04-21 12:37:38 UTC
Created attachment 56864 [details]
ps -ef -auxww during qmail hang

allright, theres theres the ps of when qmail starts to hang
Comment 8 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-21 12:58:53 UTC
ok, so it's definetly tcprules that's hanging - and it's sitting near 100% CPU.

what is in your /etc/tcprules.d/tcp.qmail-smtp that it causes this behavior?
attach that file please.
Comment 9 Devin 2005-04-21 13:36:11 UTC
Created attachment 56871 [details]
tcp.smtp file
Comment 10 Devin 2005-04-21 13:36:26 UTC
i decided to try a different qmail (older) and it has the same problems, but it uses the /etc/tcp-smtp so here is that file
Comment 11 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-04-21 16:15:35 UTC
It's your tcprules file!
look at the second to last line.
it's a comment, but the line doesn't start with a '#'.
Comment 12 Devin 2005-04-21 20:07:28 UTC
wow, im really sorry to have wasted your time like that =/ i cant believe i never noticed it (or anyone else for that matter) thanks for pointing that out to me :) tcprules now works fine and qmail emerged perfectly :)  thanks for pointing out that problem
Comment 13 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-04-22 03:19:06 UTC
Robin: Maybe we should report this upstream as this looks like a serious bug. What do you think?
Comment 14 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-09-11 16:00:28 UTC
Reopening for dup
Comment 15 Michael Hanselmann (hansmi) (RETIRED) gentoo-dev 2005-09-11 16:00:45 UTC

*** This bug has been marked as a duplicate of 90679 ***