[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&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; localhost.localdomain \
localhost<br> ::1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
localhost.localdomain localhost<br> [My computer's IP] &nbsp;&nbsp; \
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&nbsp;&nbsp;&nbsp;&nbsp; \
all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
all&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
127.0.0.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
255.255.255.255&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; \
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&nbsp; ------&gt; 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>&nbsp;</div></strong></font></div><br><br><br><br>&gt; \
Date: Mon, 12 Jan 2009 11:20:36 -0500<br>&gt; From: ranger@opennms.org<br>&gt; To: \
opennms-devel@lists.sourceforge.net<br>&gt; Subject: Re: [opennms-devel] PostgreSQL \
problem - Could not get an administrative connection to the database<br>&gt; <br>&gt; \
Honia A wrote:<br>&gt; &gt; Thanks Benjamin, I really have no clue what the problem \
is with localhost...<br>&gt; &gt; <br>&gt; &gt; OK, I made it to the step where I run \
/sudo /etc/init.d/opennms start/<br>&gt; &gt; command but it fails, here's part of \
the log:<br>&gt; &gt; <br>&gt; &gt; Caused by: \
java.lang.reflect.UndeclaredThrowableException: Could not<br>&gt; &gt; lookup the \
host name for the local host machine:<br>&gt; &gt; java.net.UnknownHostException: \
localhost: localhost<br>&gt; &gt; <br>&gt; &gt; Does this mean I have to change the \
lookup value in<br>&gt; &gt; poller-configuration.xml so instead of localhost it \
points to the IP<br>&gt; &gt; address?<br>&gt; &gt; <br>&gt; &gt; Please help \
:-)<br>&gt; <br>&gt; It means that your system, outside of OpenNMS and PostgreSQL is \
missing<br>&gt; a host entry for "localhost" which will cause all kinds of \
unusual<br>&gt; issues even if opennms and postgresql were not installed.<br>&gt; \
<br>&gt; You should really fix your /etc/hosts file to have a localhost \
entry.<br>&gt; Mine looks like this:<br>&gt; <br>&gt; 127.0.0.1	localhost<br>&gt; \
<br>&gt; Then you can undo all of the weird localhost-related changes you've<br>&gt; \
made, and it will all work.  ;)<br>&gt; <br>&gt; As an aside, this isn't really a \
development issue, it's a configuration<br>&gt; issue, it would be more suited for \
the opennms-discuss list in the future.<br>&gt; <br>&gt; -- <br>&gt; Benjamin \
Reed<br>&gt; The OpenNMS Group<br>&gt; http://www.opennms.org/<br>&gt; <br>&gt; \
<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