[prev in list] [next in list] [prev in thread] [next in thread]
List: opennms-devel
Subject: Re: [opennms-devel] PostgreSQL problem - Could not get an
From: Honia A <honia2002 () hotmail ! com>
Date: 2009-01-12 18:14:06
Message-ID: COL107-W32B3875339B18F71647E28AED80 () phx ! gbl
[Download RAW message or body]
[Attachment #2 (multipart/alternative)]
You rule :-) Thanks Benjamin, you fixed it!
I added all these lines to hosts (I was following an online instruction, if any of \
these lines does not have toe be added please let me know and I'll remove it):
127.0.0.1 localhost.localdomain localhost
> > 1 localhost.localdomain localhost
[My computer's IP] localhost.localdomain localhost
As you suggested, I got rid of all those weird changes I made to the configuration, \
and everything is exactly just as stated in your manual posted on OpenNMS website. \
Except for pg_hba.conf fiel which I still had to add the subnet mask: host all \
all 127.0.0.1 255.255.255.255 trust
For some reasons, it wouldn't work without that...
- Restarted the postmaster: sudo -u postgres pg_ctl -D /var/lib/pgsql/data restart
- /etc/init.d/postgresql restart
- Initialized OpenNMS": $OPENNMS_HOME/bin/install -dis ------> Everything went well \
this time
- Started the OpenNMS: sudo /etc/init.d/opennms start
And finally http://localhost:8980/opennms/ is up and running!
Thanks again for your help :-) Hopefully everything looks right this time...
Honia
> Date: Mon, 12 Jan 2009 11:20:36 -0500
> From: ranger@opennms.org
> To: opennms-devel@lists.sourceforge.net
> Subject: Re: [opennms-devel] PostgreSQL problem - Could not get an administrative \
> connection to the database
> 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/
>
>
_________________________________________________________________
Windows Live™: Keep your life in sync.
http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009
[Attachment #5 (text/html)]
<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
You rule :-) Thanks Benjamin, you fixed it! <br><br>I added all these lines to hosts \
(I was following an online instruction, if any of these lines does not have toe be \
added please let me know and I'll remove \
it):<br><br>127.0.0.1 localhost.localdomain \
localhost<br> ::1 \
localhost.localdomain localhost<br> [My computer's IP] \
localhost.localdomain localhost<br><br>As you suggested, I got rid of all those weird \
changes I made to the configuration, and everything is exactly just as stated in your \
manual posted on OpenNMS website. Except for <span style="font-family: \
Verdana,Arial,Helvetica,sans-serif;">pg_hba.conf fiel which I still had to add the \
subnet mask:<br></span><span style="font-family: \
Verdana,Arial,Helvetica,sans-serif;">host \
all \
all \
127.0.0.1 \
255.255.255.255 \
trust<br><br>For some reasons, it wouldn't work without that...<br><br></span>- \
Restarted the postmaster: sudo -u postgres pg_ctl -D /var/lib/pgsql/data \
restart<br><br>- /etc/init.d/postgresql restart<br><br>- Initialized OpenNMS": \
$OPENNMS_HOME/bin/install -dis ------> Everything went well this \
time<br><br>- Started the OpenNMS: sudo /etc/init.d/opennms start<br><br>And finally \
<span class="Object" id="OBJ_PREFIX_DWT172"><a target="_blank" \
href="http://localhost:8980/opennms/">http://localhost:8980/opennms/</a></span> is up \
and running! <br><br>Thanks again for your help :-) Hopefully everything looks right \
this time...<br>Honia<br><span style="font-family: \
Verdana,Arial,Helvetica,sans-serif;"><br></span><br><div><font \
color="#ff0000"><strong> <div><font \
color="#ff0000"><strong></strong></font> </div></strong></font></div><br><br><br><br>> \
Date: Mon, 12 Jan 2009 11:20:36 -0500<br>> From: ranger@opennms.org<br>> To: \
opennms-devel@lists.sourceforge.net<br>> Subject: Re: [opennms-devel] PostgreSQL \
problem - Could not get an administrative connection to the database<br>> <br>> \
Honia A wrote:<br>> > Thanks Benjamin, I really have no clue what the problem \
is with localhost...<br>> > <br>> > OK, I made it to the step where I run \
/sudo /etc/init.d/opennms start/<br>> > command but it fails, here's part of \
the log:<br>> > <br>> > Caused by: \
java.lang.reflect.UndeclaredThrowableException: Could not<br>> > lookup the \
host name for the local host machine:<br>> > java.net.UnknownHostException: \
localhost: localhost<br>> > <br>> > Does this mean I have to change the \
lookup value in<br>> > poller-configuration.xml so instead of localhost it \
points to the IP<br>> > address?<br>> > <br>> > Please help \
:-)<br>> <br>> It means that your system, outside of OpenNMS and PostgreSQL is \
missing<br>> a host entry for "localhost" which will cause all kinds of \
unusual<br>> issues even if opennms and postgresql were not installed.<br>> \
<br>> You should really fix your /etc/hosts file to have a localhost \
entry.<br>> Mine looks like this:<br>> <br>> 127.0.0.1 localhost<br>> \
<br>> Then you can undo all of the weird localhost-related changes you've<br>> \
made, and it will all work. ;)<br>> <br>> As an aside, this isn't really a \
development issue, it's a configuration<br>> issue, it would be more suited for \
the opennms-discuss list in the future.<br>> <br>> -- <br>> Benjamin \
Reed<br>> The OpenNMS Group<br>> http://www.opennms.org/<br>> <br>> \
<br><br /><hr />Windows Live™: Keep your life in sync. <a \
href='http://windowslive.com/explore?ocid=TXT_TAGLM_WL_t1_allup_explore_012009' \
target='_new'>Check it out.</a></body> </html>
------------------------------------------------------------------------------
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
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic