[Bug 2528] New: installation fails with confusing error message if DNS is not set up for localhost
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@liblime.com ReportedBy: Andrew.moore@liblime.com QAContact: koha-bugs@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.
participants (1)
-
bugzilla-daemon@pippin.metavore.com