Apache fails to startup via the LaunchDaemons - error :
mod_unique_id: unable to find IPv4
Bill Hernandez
ms at mac-specialist.com
Thu Aug 23 16:18:59 PDT 2007
All,
When I boot my machine Apache should startup via the LaunchDaemons
Check Apache and notice Apache is not running so I check the error
log...
postgresql82, and mysql5 seem to startup via the LaunchDaemons just fine
$ ck_status
------------------------------------------------------------------------
---
Check Apache...
------------------------------------------------------------------------
---
local_user 315 0.0 -0.0 27368 460 p1 S+ 5:44PM
0:00.00 grep httpd
------------------------------------------------------------------------
---
Check PgSQL...
------------------------------------------------------------------------
---
pg_user 97 0.0 -0.1 38084 1988 ?? S 5:43PM 0:00.45 /
opt/local/lib/postgresql82/bin/pos
pg_user 117 0.0 -0.0 36356 500 ?? Ss 5:43PM 0:00.01
pg_user: writer process
pg_user 118 0.0 -0.0 32340 328 ?? Ss 5:43PM 0:00.00
pg_user: stats collector process
local_user 317 0.0 -0.0 18060 288 p1 R+ 5:44PM
0:00.00 grep pg_user
------------------------------------------------------------------------
---
Check MySQL...
------------------------------------------------------------------------
---
root 75 0.0 -0.0 27728 664 ?? S 5:43PM
0:00.01 /bin/sh /opt/local/lib/mysql5/bin/m
mysql 105 0.0 -0.6 65848 13192 ?? S 5:43PM
0:00.09 /opt/local/libexec/mysqld --basedir
local_user 319 0.0 -0.0 18060 264 p1 R+ 5:44PM
0:00.00 grep mysql
------------------------------------------------------------------------
---
LOG OUTPUT - after boot or reboot with LaunchDaemons attempt
------------------------------------------------------------------------
---
[Thu Aug 23 17:38:02 2007] [notice] caught SIGTERM, shutting down
[Thu Aug 23 17:38:28 2007] [alert] (EAI 7)No address associated with
nodename: mod_unique_id: unable to find IPv4 address of "server.local"
Configuration Failed
------------------------------------------------------------------------
---
I then try a MANUAL APACHE START and life is swell as you can see below
------------------------------------------------------------------------
---
[2007.23.08](05:44PM) -> [bhernandez] ~
$ sudo /opt/local/apache2/bin/apachectl start
$ ps aux | grep httpd
------------------------------------------------------------------------
---
root 325 0.1 -0.3 46748 6120 ?? Ss 5:45PM
0:00.26 /opt/local/apache2/bin/httpd -k start
local_user 328 0.0 -0.0 46748 944 ?? S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user 329 0.0 -0.0 46748 948 ?? S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user 330 0.0 -0.0 46748 948 ?? S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user 331 0.0 -0.0 46748 944 ?? S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user 332 0.0 -0.0 46748 944 ?? S 5:45PM
0:00.00 /opt/local/apache2/bin/httpd -k start
local_user 354 0.0 -0.0 27368 460 p1 S+ 5:45PM
0:00.00 grep httpd
------------------------------------------------------------------------
---
LOG OUTPUT - after manual start shows Apache is happy...
------------------------------------------------------------------------
---
[Thu Aug 23 17:37:33 2007] [notice] Digest: generating secret for
digest authentication ...
[Thu Aug 23 17:37:33 2007] [notice] Digest: done
[Thu Aug 23 17:37:33 2007] [notice] Apache/2.2.4 (Unix) mod_ssl/2.2.4
OpenSSL/0.9.8e DAV/2 PHP/5.2.3 configured -- resuming normal operations
This happens every time I start or restart, not quite sure what is
not working correctly in the startup sequence. It's as if though
LaunchDaemons is trying to start apache before the IPv4 has been
assigned by the firewall.
Any ideas ?
Best regards,
Bill Hernandez
Plano, Texas
More information about the macports-users
mailing list