[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#606334: apache2: fails to start with dependency based boot if DNS is required by configuration



Package: apache2.2-common
Version: 2.2.16-4
Severity: important

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

After converting a previously working lenny installation to squeeze 
and dependency based boot, I got:

server:/etc/init.d$ ls -l /etc/*.d/*{apache2,bind9}
- -rwxr-xr-x 1 root root 7490 Dec  8 15:06 ../init.d/apache2
- -rwxr-xr-x 1 root root 3215 Mar 17  2010 ../init.d/bind9
- -rw-r--r-- 1 root root   53 May 20  2008 ../logrotate.d/apache2
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc0.d/K01apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc0.d/K02bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc1.d/K01apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc1.d/K02bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc2.d/S02apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc2.d/S03bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc3.d/S02apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc3.d/S03bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc4.d/S02apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc4.d/S03bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc5.d/S02apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc5.d/S03bind9 -> ../init.d/bind9
lrwxrwxrwx 1 root root   17 Nov 16 10:46 ../rc6.d/K01apache2 -> ../init.d/apache2
lrwxrwxrwx 1 root root   15 Nov 16 10:46 ../rc6.d/K02bind9 -> ../init.d/bind9

And the resulting boot failure due to DNS being unavailable at the 
time apache is started:

Starting web server: apache2[Fri Nov 26 18:52:35 2010] [crit] (EAI 2)Name or service not known: alloc_listener: failed to set up sockaddr for www.mork.no
Syntax error on line 3 of /etc/apache2/ports.conf:
Listen setup failed
Action 'start' failed.
The Apache error log may have more information.
 failed!
[..]
Starting domain name service...: bind9.


This could easily be resolved by adding

# Should-Start:      $named

to the apache2 init script.  Please fix for squeeze.  Thanks.


Bjørn

- -- Package-specific info:
List of /etc/apache2/mods-enabled/*.load:
  actions alias auth_basic auth_radius authn_file authz_default
  authz_groupfile authz_host authz_user autoindex cgi cgid dir env
  expires fcgid include jk mime mime_magic negotiation perl proxy
  proxy_http reqtimeout rewrite setenvif ssl status userdir

- -- System Information:
Debian Release: squeeze/sid
  APT prefers testing
  APT policy: (990, 'testing'), (600, 'unstable'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 2.6.32-5-amd64 (SMP w/4 CPU cores)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages apache2 depends on:
ii  apache2-mpm-worker            2.2.16-4   Apache HTTP Server - high speed th
ii  apache2.2-common              2.2.16-4   Apache HTTP Server common files

apache2 recommends no packages.

apache2 suggests no packages.

Versions of packages apache2.2-common depends on:
ii  apache2-utils                 2.2.16-4   utility programs for webservers
ii  apache2.2-bin                 2.2.16-4   Apache HTTP Server common binary f
ii  libmagic1                     5.04-5     File type determination library us
ii  lsb-base                      3.2-23.1   Linux Standard Base 3.2 init scrip
ii  mime-support                  3.48-1     MIME files 'mime.types' & 'mailcap
ii  perl                          5.10.1-16  Larry Wall's Practical Extraction 
ii  procps                        1:3.2.8-9  /proc file system utilities

- -- no debconf information

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)

iEYEARECAAYFAkz/k+UACgkQ10rqkowbIskauQCfVZNYEzj7YsPB5hMv6LRLwTlE
U60An0Y3VU1VNlGtYJDLNiVHt8GZFEOY
=P1J/
-----END PGP SIGNATURE-----



Reply to: