Various etc/hosts issues cause warnings in LAMP image
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Linaro OpenEmbedded |
Fix Released
|
Low
|
Unassigned |
Bug Description
Hi,
When booting the LAMP 12.10 RC2 image, Apache (2) and Mysql lookup the hostname (currently "genericarmv8") and complain because it's not in etc/hosts; neither as a FQDN (hostname --fqdn returns only the hostname) nor with any IP entry at all.
The default DHCP client (udhcpcd) doesn't seem to fix /etc/hosts after getting a lease, so perhaps a better approach would be to include a default /etc/hosts snippet for the default hostname like on other GNU/Linux distros.
These are the warnings I'm seeing for Apache:
AH00557: httpd: apr_sockaddr_
AH00558: httpd: Could not reliably determine the server's fully qualified domain name, using 127.0.0.1. Set the 'ServerName' directive globally to suppress this message
and for MySQL:
WARNING: The host 'genericarmv8' could not be looked up with resolveip.
This probably means that your libc libraries are not 100 % compatible
with this binary MySQL version. The MySQL daemon, mysqld, should work
normally with the exception that host name resolving will not work.
This means that you should use IP addresses instead of hostnames
when specifying MySQL privileges !
Cheers,
Changed in linaro-oe: | |
status: | New → Triaged |
http:// lists.linuxtogo .org/pipermail/ openembedded- core/2012- November/ 032251. html - started discussion on ML