Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 206624 - www-apache/mod_mono-1.2.6-r1 bad configuration : httpd.conf and mod_mono.conf
Summary: www-apache/mod_mono-1.2.6-r1 bad configuration : httpd.conf and mod_mono.conf
Status: RESOLVED NEEDINFO
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Jurek Bartuszek (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-01-19 11:16 UTC by Emmanuel
Modified: 2008-12-26 12:21 UTC (History)
1 user (show)

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


Attachments
Apache configuration file (httpd.conf) (httpd.conf,36.93 KB, text/plain)
2008-01-19 11:21 UTC, Emmanuel
Details
mod_mono configuration file (mod_mono.conf) (70_mod_mono.BAKconf,2.38 KB, text/plain)
2008-01-19 11:22 UTC, Emmanuel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Emmanuel 2008-01-19 11:16:33 UTC
I emerged mod_mono with the following USE flags : USE="aspnet2 -debug" and the mod_mono could not start due to a problem other people already encountered (see http://www.google.fr/search?q=mono+The+unix+daemon+module+not+initialized+yet&ie=utf-8&oe=utf-8&aq=t&rls=org.mozilla:fr:official&client=firefox-a)



Reproducible: Always

Steps to Reproduce:
1./etc/init.d/apache2 start
2.emerge -v =mod_mono-1.2.6-r1
3./etc/init.d/apache2 start

Actual Results:  
mod_mono could not start (but other apache modules seems to work).
/etc/init.d/apache2 start gives the following:
---------------
 * Service apache2 starting
[Sat Jan 19 12:03:44 2008] [crit] The unix daemon module not initialized yet. Please make sure that your mod_mono module is loaded after the User/Group directives have been parsed. Not initializing the dashboard.
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName <-- this line is only due to my configuration
 * Service apache2 started
---------------

Expected Results:  
everything is working and /etc/init.d/apache2 start gives the following :
* Service apache2 starting
apache2: Could not determine the server's fully qualified domain name, using 127.0.0.1 for ServerName <-- this line is only due to my configuration
 * Service apache2 started


The problem appears because of the order in which the configuration is parsed, as the message says, the User and Group directives must be parsed BEFORE mod_mono configuration and loading.
The following lines are problematic :
------------------------------------------------------------
# Extra Modules
#
# We Include extra .conf files from /etc/apache2/modules.d
# This is used to load things like PHP and mod_ssl.
#
Include /etc/apache2/modules.d/*.conf #<- this line loads mod_nono.conf

### Section 2: 'Main' server configuration
#......<-- comment removed
#
# User/Group: The name (or #number) of the user/group to run httpd as.
#......
#
User apache
Group apache
------------------------------------------------------------

The workaraound I have found may not be good but make the message dissapear (the mod_mono, with mono_demo, does not work but this seems to be an other problem) : replace the lines with this and move mod_mono.conf to an special directory (I created the directory /etc/apache2/mod_mono:
------------------------------------------------------------
Include /etc/apache2/modules.d/*.conf

User apache
Group apache

Include /etc/apache2/mod_mono/70_mod_mono.conf
------------------------------------------------------------
Comment 1 Emmanuel 2008-01-19 11:19:14 UTC
localhost / # emerge --info
Portage 2.1.3.19 (default-linux/x86/2007.0/desktop, gcc-4.2.0, glibc-2.5-r4, 2.6.22-sabayonnoide i686)
=================================================================
System uname: 2.6.22-sabayonnoide i686 Intel(R) Pentium(R) M processor 1.60GHz
Timestamp of tree: Wed, 16 Jan 2008 18:17:01 +0000
distcc 2.18.3 i686-pc-linux-gnu (protocols 1 and 2) (default port 3632) [disabled]
app-shells/bash:     3.2_p17
dev-java/java-config: 1.3.1-r1, 2.0.33-r1
dev-lang/python:     2.4.4-r4
dev-python/pycrypto: 2.0.1-r6
sys-apps/baselayout: 1.12.9-r2
sys-apps/sandbox:    1.2.17
sys-devel/autoconf:  2.13, 2.61
sys-devel/automake:  1.4_p6, 1.5, 1.6.3, 1.7.9-r1, 1.8.5-r3, 1.9.6-r2, 1.10
sys-devel/binutils:  2.16.1-r3
sys-devel/gcc-config: 1.3.12-r6
sys-devel/libtool:   1.5.22
virtual/os-headers:  2.6.21
ACCEPT_KEYWORDS="x86"
CBUILD="i686-pc-linux-gnu"
CFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
CHOST="i686-pc-linux-gnu"
CONFIG_PROTECT="/etc /usr/kde/3.5/env /usr/kde/3.5/share/config /usr/kde/3.5/shutdown /usr/lib/fax /usr/share/config /var/spool/fax/etc"
CONFIG_PROTECT_MASK="/etc/env.d /etc/env.d/java/ /etc/gconf /etc/revdep-rebuild /etc/splash /etc/terminfo /etc/texmf/web2c"
CXXFLAGS="-O2 -march=pentium-m -pipe -fomit-frame-pointer"
DISTDIR="/usr/portage/distfiles"
EMERGE_DEFAULT_OPTS="--alphabetical"
FEATURES="distlocks metadata-transfer sandbox sfperms strict unmerge-orphans userfetch"
GENTOO_MIRRORS="ftp://ftp.proxad.net/pub/Distributions_Linux/Gentoo/ http://mir.zyrianes.net/gentoo/"
LANG="fr_FR"
LC_ALL="fr_FR "
LINGUAS="fr fr_FR de en it"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/paquets"
PORTAGE_RSYNC_OPTS="--recursive --links --safe-links --perms --times --compress --force --whole-file --delete --delete-after --stats --timeout=180 --exclude=/distfiles --exclude=/local --exclude=/packages --filter=H_**/files/digest-*"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/portage/local/layman/portage-xgl /usr/portage/local/avidemux /usr/portage/local/layman/hanno-xgl /usr/portage/local/layman/break-my-gentoo-main /usr/portage/local/layman/voip /usr/portage/local/layman/avidemux /usr/portage/local/layman/sabayon /usr/portage/local/layman/roslin /usr/portage/local/layman/xeffects"
SYNC="rsync://rsync.europe.gentoo.org/gentoo-portage"
USE="X a52 aac acl acpi alsa amr apache2 arts artswrappersuid avahi bash-completion berkdb bitmap-fonts bzip2 cairo cdr cli cracklib crypt cups dbus dga dhcp directfb dri dts dv dvd dvdr dvdread eds emboss encode esd evo fam ffmpeg firefox flac flash fortran freetype gcj gd gdbm gif glitz glut gnome gpm gstreamer gtk gtk2 hal hiddenvisibility i8x0 iconv ieee1394 insecure-drivers ipv6 isdnlog ithreads java javascript joystick jpeg jpeg2k kde kdeenablefinal kdehiddenvisibility kerberos ldap libsamplerate live lua lzo mad matroska midi mikmod mmap mmx mmx2 mmxext monkey mono mozcalendar mozdevelop mozsvg mp3 mpeg mssql mudflap mysql nas nautilus ncurses network nfs nls nptl nptlonly nsplugin objc oci8 ogg openexr opengl openmp oss pcre pdf perl png pppd python qt qt3 qt3support qt4 quicktime rdesktop readline real reflection rtc samba sdl session slp sndfile speex spell spl sse sse2 ssl stencil-buffer svg svga symlink tcpd tga theora threads tiff truetype truetype-fonts type1-fonts unicode userlocales utemper v4l v4l2 vorbis win32codecs wmf x264 x86 xcb xine xml xorg xv xvid xvmc zeroconf zlib" ALSA_CARDS="ali5451 als4000 atiixp atiixp-modem bt87x ca0106 cmipci emu10k1 emu10k1x ens1370 ens1371 es1938 es1968 fm801 hda-intel intel8x0 intel8x0m maestro3 trident usb-audio via82xx via82xx-modem ymfpci" ALSA_PCM_PLUGINS="adpcm alaw asym copy dmix dshare dsnoop empty extplug file hooks iec958 ioplug ladspa lfloat linear meter mulaw multi null plug rate route share shm softvol" APACHE2_MODULES="actions alias auth_basic authn_alias authn_anon authn_dbm authn_default authn_file authz_dbm authz_default authz_groupfile authz_host authz_owner authz_user autoindex cache dav dav_fs dav_lock deflate dir disk_cache env expires ext_filter file_cache filter headers include info log_config logio mem_cache mime mime_magic negotiation rewrite setenvif speling status unique_id userdir usertrack vhost_alias" ELIBC="glibc" INPUT_DEVICES="mouse keyboard joystick synaptics evdev" KERNEL="linux" LCD_DEVICES="bayrad cfontz cfontz633 glk hd44780 lb216 lcdm001 mtxorb ncurses text" LINGUAS="fr fr_FR de en it" LIRC_DEVICES="act200l act220l adaptec all alsa_usb animax atilibusb atiusb audio audio_alsa avermedia avermedia98 avermedia_vdomate bestbuy bestbuy2 breakoutbox bte bw6130 caraca chronos cmdir com1 com2 com3 com4 cph06x creative creative_infracd devinput digimatrix dsp dvico ea65 exaudio flyvideo gvbctv5pci hauppauge hauppauge_dvb hercules_smarttv_stereo igorplugusb imon imon_pad imon_pad2keys imon_rsc inputlirc irdeo irdeo_remote irman irreal it87 knc_one kworld leadtek_0007 leadtek_0010 leadtek_pvr2000 livedrive_midi livedrive_seq logitech lpt1 lpt2 mceusb mceusb2 mediafocusI mouseremote mouseremote_ps2 mp3anywhere nslu2 packard_bell parallel pcmak pcmak_usb pctv pixelview_bt878 pixelview_pak pixelview_pro provideo realmagic remotemaster sa1100 sasem serial serial_igor_cesko silitek sir slinke streamzap tekram tekram_bt829 tira tvbox udp uirt2 uirt2_raw usbirboy userspace xboxusb" USERLAND="GNU" VIDEO_CARDS="i810 vesa vga i915"
Unset:  CPPFLAGS, CTARGET, INSTALL_MASK, LDFLAGS, PORTAGE_COMPRESS, PORTAGE_COMPRESS_FLAGS, PORTAGE_RSYNC_EXTRA_OPTS

Comment 2 Emmanuel 2008-01-19 11:21:33 UTC
Created attachment 141287 [details]
Apache configuration file (httpd.conf)

Includes changes i have made as described in bug report
Comment 3 Emmanuel 2008-01-19 11:22:44 UTC
Created attachment 141289 [details]
mod_mono configuration file (mod_mono.conf)
Comment 4 Jakub Moc (RETIRED) gentoo-dev 2008-01-19 11:25:33 UTC
Please use *unified diffs* instead of attaching huge config files. Also, really don't understand what's mod_mono doing special here. No other modules whatsoever have such stupid problem.