Various etc/hosts issues cause warnings in LAMP image

Bug #1068121 reported by Loïc Minier
6
This bug affects 1 person
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_info_get() failed for genericarmv8
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,

Marcin Juszkiewicz (hrw)
Changed in linaro-oe:
status: New → Triaged
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :
Revision history for this message
Marcin Juszkiewicz (hrw) wrote :

Images will have '127.0.0.1 $MACHINE" now.

Changed in linaro-oe:
status: Triaged → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.