Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99656 - qmail-1.03-r15 emerge failure - /var/qmail/bin/queue-fix: No such file or directory
Summary: qmail-1.03-r15 emerge failure - /var/qmail/bin/queue-fix: No such file or dir...
Status: RESOLVED INVALID
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Qmail Team (OBSOLETE)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-20 05:07 UTC by Peter Humphrey
Modified: 2005-07-20 09:56 UTC (History)
0 users

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Peter Humphrey 2005-07-20 05:07:43 UTC
Emerge qmail seems to go smoothly during installation into /var/tmp/... but I
get errors on installing into /, thus:
>>> Completed installing qmail-1.03-r15 into /var/tmp/portage/qmail-1.03-r15/image/

>>> Merging mail-mta/qmail-1.03-r15 to /
 * Error moving /etc/tcp.smtp to /etc/tcprules.d/tcp.qmail-smtp, be sure to
check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.smtp
 * Error moving /etc/tcp.smtp.cdb to /etc/tcprules.d/tcp.qmail-smtp.cdb, be sure
to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.smtp.cdb
 * Error moving /etc/tcp.qmtp to /etc/tcprules.d/tcp.qmail-qmtp, be sure to
check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmtp
 * Error moving /etc/tcp.qmtp.cdb to /etc/tcprules.d/tcp.qmail-qmtp.cdb, be sure
to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmtp.cdb
 * Error moving /etc/tcp.qmqp to /etc/tcprules.d/tcp.qmail-qmqp, be sure to
check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmqp
 * Error moving /etc/tcp.qmqp.cdb to /etc/tcprules.d/tcp.qmail-qmqp.cdb, be sure
to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.qmqp.cdb
 * Error moving /etc/tcp.pop3 to /etc/tcprules.d/tcp.qmail-pop3, be sure to
check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.pop3
 * Error moving /etc/tcp.pop3.cdb to /etc/tcprules.d/tcp.qmail-pop3.cdb, be sure
to check the
 * configuration! You may have already moved the files,
 * in which case you can delete /etc/tcp.pop3.cdb
 * >>> SetUID: [chmod go-r]
/var/tmp/portage/qmail-1.03-r15/image//var/qmail/bin/qmail-queue  ...          
                                                [ ok ]

On checking, I find those files have been moved to /etc/tcprules.d, so that's
worked alright and I ignore the errors.

But then I get:
 * Setting up the message queue hierarchy ...
/usr/portage/mail-mta/qmail/qmail-1.03-r15.ebuild: line 440:
/var/qmail/bin/queue-fix: No such file or directory

# ls /var/qmail/bin
bouncesaying         pinq                 qmail-newu    qmail-showctl
condredirect         predate              qmail-pop3d   qmail-smtpd
config-fast          preline              qmail-popup   qmail-start
config-sanity-check  qail                 qmail-pw2u    qmail-tcpok
datemail             qbiff                qmail-qmqpc   qmail-tcpto
elq                  qmail-clean          qmail-qmqpd   qreceipt
except               qmail-config-system  qmail-qmtpd   qsmhook
forward              qmail-getpw          qmail-qread   sendmail
maildir2mbox         qmail-inject         qmail-qstat   splogger
maildirmake          qmail-local          qmail-queue   tcp-env
maildirwatch         qmail-lspawn         qmail-remote
mailsubj             qmail-newbrt         qmail-rspawn
mkservercert         qmail-newmrh         qmail-send

I believe I can't send or receive mail until this problem is fixed.


Reproducible: Always
Steps to Reproduce:
1.
2.
3.




gaia ~ # emerge info
Portage 2.0.51.22-r2 (default-linux/x86/2005.0, gcc-3.3.5-20050130,
glibc-2.3.4.20040808-r1,glibc-2.3.5-r0, 2.6.12-gentoo-r6 i686)
=================================================================
System uname: 2.6.12-gentoo-r6 i686 Celeron (Mendocino)
Gentoo Base System version 1.6.13
ccache version 2.3 [enabled]
dev-lang/python:     2.3.4-r1, 2.3.5
sys-apps/sandbox:    1.2.10
sys-devel/autoconf:  2.13, 2.59-r6
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.4, 1.9.5
sys-devel/binutils:  2.15.92.0.2-r1, 2.15.92.0.2-r10
sys-devel/libtool:   1.5.10-r4, 1.5.18-r1
virtual/os-headers:  2.6.8.1-r2, 2.6.11-r2
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="no"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/share/config /var/qmail/alias /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/X11/xdm/Xservers /etc/fonts /etc/gconf /etc/rc.d
/etc/rsync /etc/terminfo /etc/wget /etc/env.d"
CXXFLAGS="-O2 -march=i686 -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig bldpkg ccache distlocks sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk                
http://ftp.easynet.nl/mirror/gentoo                
http://trumpetti.atm.tut.fi/gentoo/   
ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo                
http://ftp.uni-erlangen.de/pub/mirrors/gentoo                
http://distfiles.gentoo.org                
http://www.ibiblio.org/pub/Linux/distributions/gentoo"
LANG="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
LINGUAS="en_GB"
MAKEOPTS="-j3"         <<<<<<<<<<<  this is a two-Celeron box
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="x86 alsa apm arts avi bash-completion berkdb bitmap-fonts cdr crypt cups
dvd emboss encode foomaticdb fortran gdbm gif gimpprint gpm gtk gtk2 imlib ipv6
jpeg libg++ libwww mad mikmod motif mp3 mpeg ncurses nls nptl nptlonly oggvorbis
opengl oss pam pdflib perl png ppds python qt quicktime readline sdl spell ssl
svga tcpd truetype truetype-fonts type1-fonts unicode userlocales xml2 xmms
xprint xv zlib linguas_en_GB userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LDFLAGS

# cat /etc/make.conf
CHOST="i686-pc-linux-gnu"
CFLAGS="-O2 -march=i686 -fomit-frame-pointer"
CXXFLAGS="${CFLAGS}"
MAKEOPTS="-j3"
USE="-gnome -java -kde -X bash-completion cdr cups dvd foomaticdb gimpprint nls
nptl nptlonly ppds svga tcpd unicode userlocales xprint"
CCACHE_SIZE="2G"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
RSYNC_RETRIES="2"
RSYNC_TIMEOUT=40
PORTAGE_NICENESS=3
AUTOCLEAN="no"
LINGUAS="en_GB"
LANG="en_GB.ISO-8859-15"
LANGUAGE="en_GB.ISO-8859-15"
LC_ALL="en_GB.ISO-8859-15"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
PORT_LOGDIR=/var/log/portage
PORTAGE_TMPFS="/dev/shm"
CONFIG_PROTECT_MASK="/etc/wget /etc/rc.d /etc/fonts /etc/rsync /etc/terminfo
/etc/X11/xdm/Xservers"
FEATURES="bldpkg ccache userpriv usersandbox"
GENTOO_MIRRORS="http://gentoo.blueyonder.co.uk
                http://ftp.easynet.nl/mirror/gentoo
                http://trumpetti.atm.tut.fi/gentoo/
                ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo
                http://ftp.uni-erlangen.de/pub/mirrors/gentoo
                http://distfiles.gentoo.org
                http://www.ibiblio.org/pub/Linux/distributions/gentoo"
Comment 1 Tupone Alfredo gentoo-dev 2005-07-20 05:24:28 UTC
qmail depends on queue-fix ebuild. That provide the queue-fix program qmail-need
during emerge. Are you sure you have not deleted the queue-fix program before
re-emerging qmail. It happened to me, while removing the directory /var/qmail
... where queue-fix is. Had to re-emerge queue-fix
Comment 2 Peter Humphrey 2005-07-20 05:40:59 UTC
I ran some tests recommended in http://www.gentoo.org/doc/en/qmail-howto.xml and
got the following error:

gaia ~ # ssh prh@localhost
<passwd>
prh@gaia ~ $ maildirmake .maildir
prh@gaia ~ $ qmail-inject root << EOF
> test root e-mail!
> EOF
qmail-inject: fatal: qq trouble creating files in queue (#4.3.0)

I think this confirms that I cannot send or receive mail, which is a bit of a
problem as this is my mail server  :-(
Comment 3 Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2005-07-20 09:56:22 UTC
You did 'rm -rf /var/qmail' didn't you...

qmail is NOT the only package that installs into that directory.

do this:
cd /var/db/pkg
find -name CONTENTS -exec egrep -Hl /var/qmail \{} \;

unmerge those packages, then emerge qmail again, and it will fix things up.