Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 105083 - mail-mta/courier-0.48.1-r1 won't start - /var/lib/courier/msg{s,q} missing.
Summary: mail-mta/courier-0.48.1-r1 won't start - /var/lib/courier/msg{s,q} missing.
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High major (vote)
Assignee: Scott Taylor (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-09-06 17:08 UTC by MAL
Modified: 2006-02-24 08:00 UTC (History)
2 users (show)

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 MAL 2005-09-06 17:08:03 UTC
I just noticed that my courier install was not working (backup server), so I
checked the logs and they contain:

<snip>
Sep  7 01:04:33 [courierd] queuelo=200, queuehi=700
Sep  7 01:04:33 [courierd] Purging /var/lib/courier/msgq
Sep  7 01:04:33 [courierd] Purging /var/lib/courier/msgs
Sep  7 01:04:33 [courierd] No such file or directory
Sep  7 01:04:33 [courierd] ABNORMAL TERMINATION, exit status: 1
Sep  7 01:04:33 [courierd] Will restart in 60 seconds.

!

Sure enough, those directories don't exist.  So I stopped courier and re-emerged.

After the emerge completes, /var/lib/courier/msg{q,s} still don't exist.

Next I check the files installed by the package:

# equery f mail-mta/courier | grep /var/lib/courier/msg
/var/lib/courier/msgq
/var/lib/courier/msgs

So why weren't they created?

Reproducible: Always
Steps to Reproduce:




Portage 2.0.51.22-r2 (default-linux/x86/2005.0/2.4, gcc-3.3.5-20050130,
glibc-2.3.5-r1, 2.4.28-gent
oo-r9 i586)
=================================================================
System uname: 2.4.28-gentoo-r9 i586 AMD-K6(tm) 3D processor
Gentoo Base System version 1.6.13
distcc 2.18.3 i586-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
dev-lang/python:     2.3.5
sys-apps/sandbox:    1.2.12
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.6
sys-devel/binutils:  2.15.92.0.2-r10
sys-devel/libtool:   1.5.18-r1
virtual/os-headers:  2.4.19-r1, 2.4.22-r1
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CBUILD="i586-pc-linux-gnu"
CFLAGS="-march=k6-2 -mcpu=k6-2 -O2 -pipe"
CHOST="i586-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/2/share/config /usr/kde/3/share/config
/usr/lib/X11/xkb /usr/share/config /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=k6-2 -mcpu=k6-2 -O2 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoconfig distlocks fixpackages sandbox sfperms strict userpriv
usersandbox"
GENTOO_MIRRORS="http://192.168.0.62/distfiles/
http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/
http://gentoo.blueyonder.co.uk http://mirror.datapipe.net/gentoo
http://mirror.uni-c.dk/gentoo/ http://ftp.ntua.gr/pub/linux/gentoo/"
MAKEOPTS="-j1"
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 3dnow X alsa apache2 apm avi berkdb bitmap-fonts crypt cups curl dga
directfb divx4linux eds emboss encode esd fam fbcon flac foomaticdb gd gdbm ggi
gif gpm gstreamer gtk gtk2 gtkhtml imagemagick imlib java javascript jpeg libg++
libwww live lzo mad maildir matroska matrox mikmod mmx motif mp3 mpeg msn mysql
nas ncurses network nls ogg oggvorbis opengl operanom2 oscar oss pam pdflib p
erl pic png python qt quicktime readline rtc samba sdl slang speex spell ssl
tcltk tcpd tetex theora tiff truetype truetype-fonts type1-fonts usb v4l v4l2
vorbis wmf wxgtk1 wxwindows xanim xine xml xml2 xmms xpm xv xvid yahoo zlib
video_cards_matrox userland_GNU kernel_linux elibc_glibc"
Unset:  ASFLAGS, CTARGET, LANG, LC_ALL, LDFLAGS, LINGUAS
Comment 1 Jules Gagnon 2005-12-14 12:16:35 UTC
I confirm there is a bug with those directories.

On the first installation, the two directories are created correctly.

But when re-merge they get removed during the cleaning step with many other
empty directories which I think should be kept.

>>> Safely unmerging already-installed instance...
...
<<<        dir /var/run/courier
<<<        dir /var/lib/courier/webmail-logincache
<<<        dir /var/lib/courier/tmp/broken
<<<        dir /var/lib/courier/tmp
<<<        dir /var/lib/courier/msgs
<<<        dir /var/lib/courier/msgq
<<<        dir /var/lib/courier/filters
<<<        dir /var/lib/courier/faxtmp
<<<        dir /var/lib/courier/calendar/public
<<<        dir /var/lib/courier/calendar/private
<<<        dir /var/lib/courier/calendar/localcache
<<<        dir /var/lib/courier/calendar
<<<        dir /var/lib/courier/allfilters
...
>>> original instance of package unmerged safely.

not so safely it seems.

I don't know what is the correct fix? Maybe the ebuild should put a .keep in them?
Comment 2 Brian Jackson (RETIRED) gentoo-dev 2006-02-23 09:57:41 UTC
can anyone check this with 0.52.2?
Comment 3 Jules Gagnon 2006-02-23 10:55:48 UTC
0.52.2 don't have this bug
Comment 4 MAL 2006-02-24 08:00:08 UTC
Confirmed, fixed in 0.52.2, thanks.