Re: [opennms-devel] PostgreSQL problem - Could not get an administrative connection to the database
Benjamin Reed <[email protected]> Mon, 12 Jan 2009 11:20:36 -0500
| Newsgroups | gmane.network.opennms.bugs,gmane.network.opennms.devel |
|---|---|
| Organization | The OpenNMS Group |
| Message-ID | <[email protected]> |
Honia A wrote: > Thanks Benjamin, I really have no clue what the problem is with localhost... > > OK, I made it to the step where I run /sudo /etc/init.d/opennms start/ > command but it fails, here's part of the log: > > Caused by: java.lang.reflect.UndeclaredThrowableException: Could not > lookup the host name for the local host machine: > java.net.UnknownHostException: localhost: localhost > > Does this mean I have to change the lookup value in > poller-configuration.xml so instead of localhost it points to the IP > address? > > Please help :-) It means that your system, outside of OpenNMS and PostgreSQL is missing a host entry for "localhost" which will cause all kinds of unusual issues even if opennms and postgresql were not installed. You should really fix your /etc/hosts file to have a localhost entry. Mine looks like this: 127.0.0.1 localhost Then you can undo all of the weird localhost-related changes you've made, and it will all work. ;) As an aside, this isn't really a development issue, it's a configuration issue, it would be more suited for the opennms-discuss list in the future. -- Benjamin Reed The OpenNMS Group http://www.opennms.org/ ------------------------------------------------------------------------------ This SF.net email is sponsored by: SourcForge Community SourceForge wants to tell your story. http://p.sf.net/sfu/sf-spreadtheword _______________________________________________ Please read the OpenNMS Mailing List FAQ: http://www.opennms.org/index.php/Mailing_List_FAQ opennms-devel mailing list To *unsubscribe* or change your subscription options, see the bottom of this page: https://lists.sourceforge.net/lists/listinfo/opennms-devel
signature.asc
(application/pgp-signature, 249 B)
-----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Darwin) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFJa23YUu+jZtP2Zf4RAvsDAJ44zWGVgVZRnibJgvIG7AusRRlmRwCgjTon 8U2uitv1WjkOIu4688pqJ4Y= =AS+/ -----END PGP SIGNATURE-----