#1 Le 09/01/2008, à 02:52
- Michaelperto
Installation d'OpenNMS - Could not connect to 127.0.0.1 on port 8181
Bonjour,
J'essaie en vain d'installer OpenNMS avec différent tuto (notament : http://www.opennms.org/index.php/Ubuntu_7.04_%22Feisty_Fawn%22_Tomcat_5.5,_JDK_1.5_&_OpenNMS_1.3)
Lorsque je lance le service OpenNMS par cette commande : sudo /opt/OpenNMS/bin/opennms -v start
j'obtien ce mesage d'erreur :
Starting OpenNMS: Could not connect to 127.0.0.1 on port 8181 (OpenNMS might not be running or could be starting up or shutting down): Connection refused
Could not connect to 127.0.0.1 on port 8181 (OpenNMS might not be running or could be starting up or shutting down): Connection refused
Could not connect to 127.0.0.1 on port 8181 (OpenNMS might not be running or could be starting up or shutting down): Connection refused
Started OpenNMS, but it stopped running: for details see /opt/OpenNMS//logs/daemon/output.log
failed
Voici le log :
Wed Jan 9 01:29:41 CET 2008
begin ulimit settings:
time(seconds) unlimited
file(blocks) unlimited
data(kbytes) unlimited
stack(kbytes) 8192
coredump(blocks) 0
memory(kbytes) unlimited
locked memory(kbytes) 32
process 4095
nofiles 10240
vmemory(kbytes) unlimited
locks unlimited
end ulimit settings
Executing command: /opt/OpenNMS//bin/runjava -r -- -Dopennms.home=/opt/OpenNMS/ -Xmx256m -verbose:gc -jar /opt/OpenNMS//lib/opennms_bootstrap.jar start
[GC 896K->252K(5056K), 0.0035990 secs]
[GC 1148K->390K(5056K), 0.0027610 secs]
[GC 1286K->523K(5056K), 0.0027460 secs]
[GC 1419K->698K(5056K), 0.0026860 secs]
[GC 1594K->888K(5056K), 0.0018160 secs]
[GC 1784K->1010K(5056K), 0.0019410 secs]
[GC 1906K->1062K(5056K), 0.0020350 secs]
[GC 1958K->1068K(5056K), 0.0020650 secs]
[GC 1964K->1087K(5056K), 0.0017100 secs]
[GC 1983K->1160K(5056K), 0.0039470 secs]
[GC 2056K->1345K(5056K), 0.0026960 secs]
[GC 2241K->1531K(5056K), 0.0017830 secs]
[GC 2420K->1689K(5056K), 0.0018430 secs]
[GC 2575K->1781K(5056K), 0.0028960 secs]
[GC 2677K->1796K(5056K), 0.0019340 secs]
[GC 2692K->1837K(5056K), 0.0018630 secs]
[DEBUG] System property 'opennms.library.jicmp' set to '/usr/lib/jni/libjicmp.so. Attempting to load jicmp library from this location.
[INFO] Successfully loaded jicmp library.
[GC 2733K->1926K(5056K), 0.0027480 secs]
[GC 2815K->1945K(5056K), 0.0019180 secs]
[GC 2831K->1985K(5056K), 0.0018500 secs]
[GC 2881K->2005K(5056K), 0.0019260 secs]
[GC 2901K->2088K(5056K), 0.0027160 secs]
[GC 2984K->2176K(5056K), 0.0036570 secs]
[GC 3065K->2227K(5056K), 0.0040720 secs]
[GC 3123K->2312K(5056K), 0.0023440 secs]
[GC 3208K->2537K(5056K), 0.0034310 secs]
[GC 3433K->2692K(5056K), 0.0024240 secs]
[GC 3588K->2977K(5056K), 0.0028310 secs]
[GC 3872K->3268K(5056K), 0.0025420 secs]
[GC 4164K->3581K(5056K), 0.0024460 secs]
[GC 4477K->3745K(5056K), 0.0030740 secs]
[GC 4628K->3929K(5056K), 0.0022870 secs]
[GC 4825K->4083K(5056K), 0.0021230 secs]
[GC 4979K->4329K(5312K), 0.0025090 secs]
[Full GC 4329K->3767K(5312K), 0.0863710 secs]
[GC 4663K->4018K(7240K), 0.0021830 secs]
[GC 4914K->4244K(7240K), 0.0022670 secs]
[GC 5140K->4515K(7240K), 0.0024820 secs]
[GC 5411K->4784K(7240K), 0.0024630 secs]
[GC 5680K->5074K(7240K), 0.0024340 secs]
[GC 5970K->5343K(7240K), 0.0026730 secs]
[GC 6239K->5435K(7240K), 0.0018520 secs]
[GC 6331K->5592K(7240K), 0.0021460 secs]
[GC 6488K->5923K(7240K), 0.0036990 secs]
[GC 6819K->6192K(7240K), 0.0028190 secs]
[GC 7088K->6346K(7368K), 0.0019670 secs]
[Full GC[Unloading class sun.reflect.GeneratedMethodAccessor4]
[Unloading class sun.reflect.GeneratedMethodAccessor5]
[Unloading class sun.reflect.GeneratedMethodAccessor3]
[Unloading class sun.reflect.GeneratedMethodAccessor1]
[Unloading class sun.reflect.GeneratedMethodAccessor2]
[Unloading class sun.reflect.GeneratedMethodAccessor6]
6346K->6080K(7368K), 0.0976730 secs]
[GC 6976K->6191K(11096K), 0.0017210 secs]
[GC 7087K->6424K(11096K), 0.0022200 secs]
[GC 7320K->6688K(11096K), 0.0024280 secs]
[GC 7584K->6953K(11096K), 0.0023000 secs]
[GC 7844K->7202K(11096K), 0.0020820 secs]
[GC 8096K->7463K(11096K), 0.0019410 secs]
[GC 8356K->7711K(11096K), 0.0019770 secs]
[GC 8607K->7938K(11096K), 0.0018890 secs]
[GC 8834K->8109K(11096K), 0.0017390 secs]
[GC 9005K->8149K(11096K), 0.0011460 secs]
[GC 9045K->8479K(11096K), 0.0035440 secs]
[GC 9375K->8745K(11096K), 0.0028470 secs]
[GC 9641K->9007K(11096K), 0.0023290 secs]
[GC 9903K->9297K(11096K), 0.0025810 secs]
[GC 10193K->9562K(11096K), 0.0024090 secs]
[GC 10458K->9829K(11096K), 0.0025840 secs]
[GC 10725K->10034K(11096K), 0.0022480 secs]
[GC 10930K->10074K(11096K), 0.0012140 secs]
[GC 10970K->10360K(11352K), 0.0032740 secs]
[Full GC 10360K->10355K(11352K), 0.1084650 secs]
[GC 11571K->10743K(18604K), 0.0031480 secs]
[GC 11959K->10961K(18604K), 0.0029290 secs]
[GC 12177K->11303K(18604K), 0.0032780 secs]
[GC 12519K->11677K(18604K), 0.0033280 secs]
[GC 12893K->11931K(18604K), 0.0026700 secs]
[GC 13147K->12182K(18604K), 0.0031790 secs]
[GC 13398K->12518K(18604K), 0.0033280 secs]
[GC 13734K->12851K(18604K), 0.0030260 secs]
[GC 14067K->13180K(18604K), 0.0027050 secs]
[GC 14396K->13510K(18604K), 0.0027310 secs]
[GC 14726K->13841K(18604K), 0.0028820 secs]
[GC 15057K->13879K(18604K), 0.0014590 secs]
[GC 15095K->14221K(18604K), 0.0040060 secs]
[GC 15437K->14439K(18604K), 0.0032380 secs]
[GC 15655K->14690K(18604K), 0.0029740 secs]
[GC 15906K->14979K(18604K), 0.0032220 secs]
[GC 16195K->15300K(18604K), 0.0032940 secs]
[GC 16516K->15520K(18604K), 0.0027960 secs]
[GC 16736K->15811K(18604K), 0.0033700 secs]
[GC 17027K->16079K(18604K), 0.0028690 secs]
[GC 17295K->16398K(18604K), 0.0029010 secs]
[GC 17614K->16731K(18604K), 0.0029080 secs]
[GC 17947K->17066K(18604K), 0.0030830 secs]
[GC 18282K->17396K(18732K), 0.0032410 secs]
[Full GC 17396K->16544K(18732K), 0.1765290 secs]
[GC 18528K->16849K(29752K), 0.0033900 secs]
[GC 18833K->17333K(29752K), 0.0046650 secs]
[GC 19317K->17894K(29752K), 0.0053590 secs]
[GC 19878K->18454K(29752K), 0.0058660 secs]
[GC 20438K->19011K(29752K), 0.0058840 secs]
[GC 20995K->19568K(29752K), 0.0059690 secs]
[GC 21552K->20127K(29752K), 0.0057460 secs]
[GC 22111K->20342K(29752K), 0.0029100 secs]
[GC 22326K->20342K(29752K), 0.0016910 secs]
[GC 22326K->20391K(29752K), 0.0009740 secs]
[GC 22375K->21423K(29752K), 0.0112710 secs]
[GC 23407K->21848K(29752K), 0.0053890 secs]
[GC 23832K->22191K(29752K), 0.0039650 secs]
[GC 24175K->22612K(29752K), 0.0046790 secs]
[GC 24596K->22938K(29752K), 0.0041560 secs]
[GC 24922K->23386K(29752K), 0.0050400 secs]
[GC 25370K->23936K(29752K), 0.0057370 secs]
[GC 25920K->24248K(29752K), 0.0037730 secs]
[GC 26232K->24727K(29752K), 0.0058520 secs]
[GC 26711K->25240K(29752K), 0.0059550 secs]
[GC 27224K->25632K(29752K), 0.0047250 secs]
[GC 27616K->26024K(29752K), 0.0039800 secs]
[GC 28008K->26531K(29752K), 0.0045400 secs]
[GC 28515K->27075K(29752K), 0.0049740 secs]
[GC 29059K->27619K(29752K), 0.0049800 secs]
[GC 29603K->27835K(29880K), 0.0027870 secs]
[Full GC 27835K->27835K(29880K), 0.2061590 secs]
[GC 30839K->28483K(49696K), 0.0497520 secs]
[GC 31619K->29334K(49696K), 0.0079780 secs]
[GC 32470K->29976K(49696K), 0.0052570 secs]
[GC 33112K->30462K(49696K), 0.0054060 secs]
[GC 33598K->31111K(49696K), 0.0074260 secs]
[GC 34247K->31745K(49696K), 0.0065210 secs]
[GC 34881K->32552K(49696K), 0.0065580 secs]
[GC 35688K->33363K(49696K), 0.0063190 secs]
[GC 36499K->33974K(49696K), 0.0052470 secs]
[GC 37110K->34595K(49696K), 0.0078490 secs]
An error occurred while attempting to start the "OpenNMS:Name=Eventd" service (class org.opennms.netmgt.eventd.jmx.Eventd). Shutting down and exiting.
javax.management.RuntimeMBeanException: java.lang.reflect.UndeclaredThrowableException
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrow(DefaultMBeanServerInterceptor.java:856)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.rethrowMaybeMBeanException(DefaultMBeanServerInterceptor.java:869)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:838)
at com.sun.jmx.mbeanserver.JmxMBeanServer.invoke(JmxMBeanServer.java:761)
at org.opennms.netmgt.vmmgr.Invoker.invoke(Invoker.java:313)
at org.opennms.netmgt.vmmgr.Invoker.invokeMethods(Invoker.java:236)
at org.opennms.netmgt.vmmgr.Starter.start(Starter.java:247)
at org.opennms.netmgt.vmmgr.Starter.startDaemon(Starter.java:127)
at org.opennms.netmgt.vmmgr.Controller.start(Controller.java:197)
at org.opennms.netmgt.vmmgr.Controller.main(Controller.java:169)
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:597)
at org.opennms.bootstrap.Bootstrap$3.run(Bootstrap.java:368)
at java.lang.Thread.run(Thread.java:619)
Caused by: java.lang.reflect.UndeclaredThrowableException
at org.opennms.netmgt.eventd.Eventd.onInit(Eventd.java:206)
at org.opennms.netmgt.daemon.AbstractServiceDaemon.init(AbstractServiceDaemon.java:139)
at org.opennms.netmgt.eventd.jmx.Eventd.init(Eventd.java:120)
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:597)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:93)
at com.sun.jmx.mbeanserver.StandardMBeanIntrospector.invokeM2(StandardMBeanIntrospector.java:27)
at com.sun.jmx.mbeanserver.MBeanIntrospector.invokeM(MBeanIntrospector.java:208)
at com.sun.jmx.mbeanserver.PerInterface.invoke(PerInterface.java:120)
at com.sun.jmx.mbeanserver.MBeanSupport.invoke(MBeanSupport.java:262)
at com.sun.jmx.interceptor.DefaultMBeanServerInterceptor.invoke(DefaultMBeanServerInterceptor.java:836)
... 13 more
Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for relation service
at org.postgresql.core.v3.QueryExecutorImpl.receiveErrorResponse(QueryExecutorImpl.java:1525)
at org.postgresql.core.v3.QueryExecutorImpl.processResults(QueryExecutorImpl.java:1309)
at org.postgresql.core.v3.QueryExecutorImpl.execute(QueryExecutorImpl.java:188)
at org.postgresql.jdbc2.AbstractJdbc2Statement.execute(AbstractJdbc2Statement.java:452)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeWithFlags(AbstractJdbc2Statement.java:354)
at org.postgresql.jdbc2.AbstractJdbc2Statement.executeQuery(AbstractJdbc2Statement.java:258)
at com.mchange.v2.c3p0.impl.NewProxyPreparedStatement.executeQuery(NewProxyPreparedStatement.java:76)
at org.opennms.netmgt.eventd.Eventd.onInit(Eventd.java:195)
... 25 more
[GC 37731K->34970K(49696K), 0.0069640 secs]
Je pense que cela bloque à se niveau : Caused by: org.postgresql.util.PSQLException: ERROR: permission denied for relation service
J'ai testé de voir pourquoi la connexion était refusée et je pense que c'est parceque "Access privileges" est vide :
psql -h localhost -d opennms -U postgres -c "\dp ipinterface"
Access privileges for database "opennms"
Schema | Name | Type | Access privileges
--------+-------------+-------+-------------------
public | ipinterface | table |
(1 row)
#2 Le 20/03/2008, à 18:20
- kevin999
Re : Installation d'OpenNMS - Could not connect to 127.0.0.1 on port 8181
Bonjour, j'ai exactement le même problème que toi !
Aurais tu trouvé la solution ????