Aaron Paxson | 2 Dec 2003 23:22

Segmentation Fault

I'm really afraid I'm asking a stupid question, but it has been a really long time since I've last installed OpenNMS.  At one time, I thought there was a search for the archives, but I guess not.

I'm trying to install OpenNMS.  The first install went just fine.  However, the Tomcat and OpenNMS service would show started, but it wasn't.  So, I removed all the packages and tried to do a re-install (actually I tried the upgrade option first, with no luck).

I removed ALL rpm packages that openNMS installs, and have set my environment variables as such:

$PATH = $PATH:/usr/local/java/bin
$JAVA_HOME=/usr/local/java

I am using JDK 1.4.2_02

Now, I get a segmentation fault when I try to install:
[root <at> cerebellum]#  lynx -source http://install.opennms.org/stable

...........
...........
apt-get update
Ign http://install.opennms.org linux-i386-redhat9/opennms release
Hit http://install.opennms.org linux-i386-redhat9/opennms/stable pkglist
Hit http://install.opennms.org linux-i386-redhat9/opennms/stable release
Hit http://install.opennms.org linux-i386-redhat9/opennms/stable srclist
./install.sh: line 441:  2212 Segmentation Fault       apt-get update
apt-get install tomcat4 tomcat4-webapps rrdtool
./install.sh: line 441:  2216 Segmentation Fault       apt-get -y install tomcat4
 tomcat4-webapps rrdtool

    ERROR!!   APT was unable to install your packages.
    Most often this is because of a missing JDK.

!!!  INSTALLATION ABORTED !!!

Hope someone can help out!

Aaron Paxson
Network Operations Manager
Decorative Concepts, Inc
http://www.decorativeconcepts.com
513-248-3153

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install
Sean Noonan | 3 Dec 2003 01:16

Dependency hell with Mandrake 9.2

Hi,

I recently stood up a Mandrake 9.2 box for the sole purpose of installing
and using OpenNMS.  The OS install went pretty smoothly but I've ran into a
boatload of problems trying to install OpenNMS.

Being the trusting type, I tried:

lynx -source http://install.opennms.org/stable | sh

After getting the j2sdk-1_4_2_02-linux-i586-rpm.bin from Sun, I set the
JAVA_HOME variable and tried, once again:

lynx -source http://install.opennms.org/stable | sh

I got tons of dependency install errors.  After reading about .RPMs in
general I found some sites like rpmfind.net and began solving each
dependency, one at a time.  I'm to the point now where a

lynx -source http://install.opennms.org/stable | sh

reports:

<snip>
ok
- installing dependencies...
Everything already installed
Everything already installed
Everything already installed
Some package requested cannot be installed:
libpgperl-7.2.2-1mdk.i586 (due to unsatisfied perl[== 5.8.0])
postgresql-devel-7.2.2-1mdk.i586 (due to missing libpgperl-7.2.2-1mdk.i586)

Taking the first failed dependency, libpgperl-7.2.2-1mdk.i586, I searched
for a later version of this RPM since the perl I have is 5.8.1, which, silly
me, thought would work if 5.8.0 is called for.  I found
libpgperl-7.2.2-1.3.90mdk.i586, which I assume is newer, but it said it
required Perl 5.8.0, too.

So what should I do, uninstall Perl 5.8.1 and replace it with Perl 5.8.0?

Looking at the larger picture, is there some way to get out of this RRM
dependency hell?  I'm a FreeBSD user, used to it's lovely ports collection
and elegant upgrade tools, such as portupgrade, which takes care of all this
crap for me.  I thought Linux was suppose to be elegant... maybe I'm missing
something, but RPMs seem to be a crude hack at best... PLEASE tell me I *am*
missing something?!

TIA,

-- Sean Noonan.

*****************************************************************************************************************************

No employee or agent is authorized to conclude any binding agreement on behalf of Watkins Contracting,
L.P., with another 
party by email without express written confirmation by an Officer of the company.  In addition, any views or
opinions 
presented in this email are solely those of the author and do not necessarily represent those of Watkins
Contracting, L.P.  
Employees of Watkins Contracting, L.P., are expressly required not to make defamatory statements and not
to infringe or 
authorize any infringement of copyright or any other legal right by email communications.  Any such
communication is contrary 
to company policy and outside the scope of the employment of the individual concerned.  The company will not
accept any 
liability in respect of such communication, and the employee responsible will be personally liable for
any damages or other 
liability arising.
______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install
Tarus Balog | 3 Dec 2003 16:10
Favicon

Re: Segmentation Fault


On Dec 2, 2003, at 5:22 PM, Aaron Paxson wrote:

> I'm trying to install OpenNMS.  The first install went just fine.   
> However, the Tomcat and OpenNMS service would show started, but it  
> wasn't.  So, I removed all the packages and tried to do a re-install  
> (actually I tried the upgrade option first, with no luck).
>
> I removed ALL rpm packages that openNMS installs, and have set my  
> environment variables as such:
>

Did you remove the apt package as well? Make sure that OpenNMS, Tomcat  
and RRDTool are removed, make sure apt is removed, remove the /etc/apt  
directory and then try the lynx installer once again.

-T
________________________________________________________________________ 
___
Tarus Balog							Main:		+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1 919 542 5955
Email: tarus <at> blast.com					URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Tarus Balog | 3 Dec 2003 16:19
Favicon

Re: Dependency hell with Mandrake 9.2


On Dec 2, 2003, at 7:16 PM, Sean Noonan wrote:
>
> Looking at the larger picture, is there some way to get out of this RRM
> dependency hell?  I'm a FreeBSD user, used to it's lovely ports  
> collection
> and elegant upgrade tools, such as portupgrade, which takes care of  
> all this
> crap for me.  I thought Linux was suppose to be elegant... maybe I'm  
> missing
> something, but RPMs seem to be a crude hack at best... PLEASE tell me  
> I *am*
> missing something?!
>

Okay, I'll try and avoid the religious discussion (grin) but the main  
thing you are suffering from is that I haven't tested the install  
process on Mandrake 9.2 at all.

I am not a Mandrake user, so the urpmi stuff was donated code, and it  
seemed to work on Mandrake 9.0. You may want to:

1) Go to ftp.opennms.org and download all of the RPMs for Mandrake 9
2) Manually install them (you may need to remove some of the packages  
first)

Good luck.

-T

________________________________________________________________________ 
___
Tarus Balog							Main:		+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1 919 542 5955
Email: tarus <at> blast.com					URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Aaron Paxson | 3 Dec 2003 23:15

RE: Segmentation Fault

Thanks for the response, T --

Well, I basically started from scratch again, and rebuilt my server (Redhat 9 OS).

I've now simulated my original problem.  I've got everything installed, and the installation seems successful.  I've got three services installed:  "opennms", "tomcat4", "postgresql".  However, PostgreSQL is the only service that is running.

If I do a "service opennms start", it says it starts up "OK".  But, looking at my processes "ps -ax", I do not see a PID assigned to it.  It's the same with Tomcat.  Is that strange?  Of course, just in case I wasn't following through carefully enough, I also did a "netstat" to see if Tomcat was listening on any ports.  Of course, the answer is no.

Snippet from the /var/tomcat4/logs/localhost_log.2003-12-03.txt :

............
............
2003-12-03 16:32:03 StandardManager[/opennms]: Seeding of random number generator has been completed
2003-12-03 16:32:03 ContextConfig[/opennms]: Added certificates -> request attribute Valve
2003-12-03 16:32:03 ContextConfig[/opennms]: Configured an authenticator for method BASIC
2003-12-03 16:32:03 [InitializerServletContextListener] Initialized servlet systems successfully
2003-12-03 16:32:03 [InitializerServletContextListener] Error subscribing to RTC POSTs
java.net.ConnectException: Connection refused
        at java.net.PlainSocketImpl.socketConnect(Native Method)
        at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305)
        at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171)
        at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158)
        at java.net.Socket.connect(Socket.java:452)
        at java.net.Socket.connect(Socket.java:402)
        at java.net.Socket.<init>(Socket.java:309)
        at java.net.Socket.<init>(Socket.java:153)
        at org.opennms.netmgt.utils.TcpEventProxy.<init>(TcpEventProxy.java:112)
        at org.opennms.netmgt.utils.TcpEventProxy.<init>(TcpEventProxy.java:89)
        at org.opennms.web.category.RTCPostSubscriber.<init>(RTCPostSubscriber.java:37)
        at org.opennms.web.category.RTCPostSubscriber.subscribeAll(RTCPostSubscriber.java:179)
        at org.opennms.web.InitializerServletContextListener.contextInitialized(InitializerServletContextListener.java:43)

        at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3175)
        at org.apache.catalina.core.StandardContext.start(StandardContext.java:3378)
        at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:785)
        at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:454)
        at org.apache.catalina.core.StandardHost.install(StandardHost.java:714)
        at org.apache.catalina.startup.HostConfig.deployApps(HostConfig.java:300)
        at org.apache.catalina.startup.HostConfig.start(HostConfig.java:389)
        at org.apache.catalina.startup.HostConfig.lifecycleEvent(HostConfig.java:232)
        at org.apache.catalina.util.LifecycleSupport.fireLifecycleEvent(LifecycleSupport.java:155)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1131)
        at org.apache.catalina.core.StandardHost.start(StandardHost.java:614)
        at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1123)
        at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:343)
        at org.apache.catalina.core.StandardService.start(StandardService.java:388)
        at org.apache.catalina.core.StandardServer.start(StandardServer.java:506)
        at org.apache.catalina.startup.Catalina.start(Catalina.java:781)
        at org.apache.catalina.startup.Catalina.execute(Catalina.java:681)
        at org.apache.catalina.startup.Catalina.process(Catalina.java:179)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:324)
        at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:243)

2003-12-03 16:32:03 StandardWrapper[/opennms:default]: Loading container servlet default
2003-12-03 16:32:03 default: init
2003-12-03 16:32:03 StandardWrapper[/opennms:invoker]: Loading container servlet invoker
2003-12-03 16:32:03 invoker: init
2003-12-03 16:32:03 jsp: init
<EOF>


Aaron

-----Original Message-----
From: Tarus Balog [mailto:tarus <at> opennms.org]
Sent: Wednesday, December 03, 2003 10:10 AM
To: Installation questions and help
Subject: Re: [opennms-install] Segmentation Fault



On Dec 2, 2003, at 5:22 PM, Aaron Paxson wrote:

> I'm trying to install OpenNMS.  The first install went just fine.  
> However, the Tomcat and OpenNMS service would show started, but it 
> wasn't.  So, I removed all the packages and tried to do a re-install 
> (actually I tried the upgrade option first, with no luck).
>
> I removed ALL rpm packages that openNMS installs, and have set my 
> environment variables as such:
>

Did you remove the apt package as well? Make sure that OpenNMS, Tomcat 
and RRDTool are removed, make sure apt is removed, remove the /etc/apt 
directory and then try the lynx installer once again.

-T
________________________________________________________________________
___
Tarus Balog                                                     Main:           +1 919 545 2553
Blast Internet Services, Inc.                   Fax:                    +1 919 542 5955
Email: tarus <at> blast.com                                  URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install
Tarus Balog | 4 Dec 2003 18:55
Favicon

Re: Segmentation Fault


On Dec 3, 2003, at 5:15 PM, Aaron Paxson wrote:

> Well, I basically started from scratch again, and rebuilt my server  
> (Redhat 9 OS).
>
> I've now simulated my original problem.  I've got everything  
> installed, and the installation seems successful.  I've got three  
> services installed:  "opennms", "tomcat4", "postgresql".  However,  
> PostgreSQL is the only service that is running.
>

Okay, now when you read the release notes, which of course you did  
(http://www.opennms.org/users/docs/docs/html/release-1.1.2.html), you  
modified your postgres configuration to allow for TCP/IP connections,  
and you modified your tomcat4.conf file to allow tomcat4 to run as root  
(and to point to your SDK).

Just in case, can you double check those steps? You should be able to  
go to http://[opennms_server]:8080 and get the default tomcat page.  
Does that work?

-T

________________________________________________________________________ 
___
Tarus Balog							Main:		+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1 919 542 5955
Email: tarus <at> blast.com					URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Aaron Paxson | 4 Dec 2003 19:29

RE: Segmentation Fault

I'm not installing 1.1.2, so I haven't gone over the details in the 1.1.2
release (although I was thinking about using it for our testing
environment).  This is going into production at my company, so I downloaded
the "stable" version, which, I'm assuming is still 1.0.2, at least,
according to the website.

No, I cannot attach to port 8080 and tomcat does not have a running PID.

Yes, I did modify PostgreSQL to attach to TCP, and modified the max
connections and shared memory sizes.

In my tomcat4.conf file, it is already set to run as root.  And it looks
like it uses $JAVA_HOME.  But I'm no expert, so, I went ahead and manually
declared it as well.

Same problem.  The OS tells me the services start up "OK" (I can do a stop,
start, restart for opennms and tomcat4, all saying "OK"), but there is
nothing in my process list, and I cannot attach to port 8080.  I installed
everything via lynx (except Postgres which was an RPM install via Redhat
installation CD's):

lynx -source http://install.opennms.org/stable | sh

PostgreSQL is running.  And doing a "service opennms status" shows OpenNMS
not running.

I've never had this problem installing before, but then, I've never done it
on Redhat9.  Only on Redhat 7.2

Thanks for the replies, T!  I really hope I can get this to work.  I
purchased a pretty robust server for this system.

Aaron

-----Original Message-----
From: Tarus Balog [mailto:tarus <at> opennms.org]
Sent: Thursday, December 04, 2003 12:56 PM
To: Installation questions and help
Subject: Re: [opennms-install] Segmentation Fault

On Dec 3, 2003, at 5:15 PM, Aaron Paxson wrote:

> Well, I basically started from scratch again, and rebuilt my server  
> (Redhat 9 OS).
>
> I've now simulated my original problem.  I've got everything  
> installed, and the installation seems successful.  I've got three  
> services installed:  "opennms", "tomcat4", "postgresql".  However,  
> PostgreSQL is the only service that is running.
>

Okay, now when you read the release notes, which of course you did  
(http://www.opennms.org/users/docs/docs/html/release-1.1.2.html), you  
modified your postgres configuration to allow for TCP/IP connections,  
and you modified your tomcat4.conf file to allow tomcat4 to run as root  
(and to point to your SDK).

Just in case, can you double check those steps? You should be able to  
go to http://[opennms_server]:8080 and get the default tomcat page.  
Does that work?

-T

________________________________________________________________________ 
___
Tarus Balog							Main:
+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1
919 542 5955
Email: tarus <at> blast.com					URL:
http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Nicolas Chetaille | 5 Dec 2003 16:50
Picon
Favicon

Mibs are polled but not reported in Opennms


I use OpenNMS on a Proliant 1600 with Mandrake 9.1, the client snmp are at this
time NET-SNMP 5.07 (rpm) for Linux.
- I can with snmpwalk -v 1-c xxx IP <at>  system see the snmp tree,
- In /var/opennms/rrd/snmp/34/ there is 9 file.rrd,
- In a second directory /var/opennms/rrd/snmp/34/eth0-0004754c093a/ there is 5
file.rrd,
- the nodeid 34 is the good one, all rrd files are updated by polling,
- I add rrd descriptions in /opt/OpenNMS/etc/snmp-graph.properties
But when I go in Opennms reports only 4 graphs appear ...

Thank's by advance to help me, Nicolas.

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Tarus Balog | 5 Dec 2003 17:17
Favicon

Re: Segmentation Fault


On Dec 4, 2003, at 1:29 PM, Aaron Paxson wrote:

> I'm not installing 1.1.2, so I haven't gone over the details in the  
> 1.1.2
> release

Sorry I missed that.

>
> I've never had this problem installing before, but then, I've never  
> done it
> on Redhat9.  Only on Redhat 7.2
>

There shouldn't be any real problems. Let's tackle each one at a time.

First, stop OpenNMS and Tomcat ("killall java" will work - repeat until  
you get "no process killed" - you may have to run "killall  -9 java").

Second, go to /var/log/opennms and "rm *" to remove all of the logs.

Third, start OpenNMS (service opennms start).

Finally, run the following in the /var/log/opennms directory:

grep FATAL *
grep ERROR *

Let me know if you get anything interesting.

-T
________________________________________________________________________ 
___
Tarus Balog							Main:		+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1 919 542 5955
Email: tarus <at> blast.com					URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install

Tarus Balog | 5 Dec 2003 17:20
Favicon

Re: Mibs are polled but not reported in Opennms


On Dec 5, 2003, at 10:50 AM, Nicolas Chetaille wrote:

>
>
>
>
> I use OpenNMS on a Proliant 1600 with Mandrake 9.1, the client snmp  
> are at this
> time NET-SNMP 5.07 (rpm) for Linux.
>

> - I add rrd descriptions in /opt/OpenNMS/etc/snmp-graph.properties
>

In snmp-graph.properties, at the top, there is a line that starts  
"reports=". Did you list your new reports on that line? Note that it is  
one long line (add the \ at the end).

-T

P.S. Feel free to send me any new report definitions and collections  
you come up with, and I'll add them to the default code.

________________________________________________________________________ 
___
Tarus Balog							Main:		+1 919 545 2553
Blast Internet Services, Inc.			Fax:			+1 919 542 5955
Email: tarus <at> blast.com					URL: http://www2.blast.com/tarus
PGP Key Fingerprint: 8945 8521 9771 FEC9 5481  512B FECA 11D2 FD82 B45C

______________________________________________________________
(install <at> opennms.org)
To subscribe, unsubscribe, or change your list options, go to:
http://lists.opennms.org/mailman/listinfo/install


Gmane