[Koha-bugs] [Bug 2528] New: installation fails with confusing error message if DNS is not set up for localhost
bugzilla-daemon at pippin.metavore.com
bugzilla-daemon at pippin.metavore.com
Mon Aug 18 15:00:14 CEST 2008
http://bugs.koha.org/cgi-bin/bugzilla/show_bug.cgi?id=2528
Summary: installation fails with confusing error message if DNS
is not set up for localhost
Product: Koha
Version: HEAD
Platform: PC
OS/Version: All
Status: NEW
Severity: normal
Priority: P3
Component: Installation (command-line installer)
AssignedTo: galen.charlton at liblime.com
ReportedBy: Andrew.moore at liblime.com
QAContact: koha-bugs at lists.koha.org
It seems that if you don't have DNS set up for your hostname, installation
fails with this confusing error message:
Bad arg length for Socket::inet_ntoa, length is 0, should be 4 at
rewrite-config.PL line 67.
make: *** [blib/KOHA_CONF_DIR/koha-conf.xml] Error 255
It seems that we would be better off checking for this condition earlier and
printing a more useful error message. Jesse suggested this check:
$ perl -e 'use Sys::Hostname; use Socket; print hostname() . "\n"; print
gethostbyname(hostname()) ? "dns good\n" : "dns bad\n";'
Can we stick that somewhere like in the Makefile.PL?
------- You are receiving this mail because: -------
You are the QA contact for the bug, or are watching the QA contact.
More information about the Koha-bugs
mailing list