You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@karaf.apache.org by conejo <lo...@gmail.com> on 2016/12/15 11:45:02 UTC
karaf decanter kibana not start
Hi.
I can not run the kibana web console (http://localhost:8181/kibana).
I deleted the realm karaf and replaced it with one of my own.
When I install the following features, kibana does not work:
feature:repo-add decanter 1.1.0
feature:install elasticsearch
feature:install kibana
feature:install decanter-appender-elasticsearch
feature:install decanter-collector-log
feature:install decanter-collector-jmx
I have a warning message in log:
2016-12-15 12:17:39,712 | WARN | ender-1-thread-1 | AbstractLifeCycle
| 137 - org.eclipse.jetty.util - 9.2.19.v20160908 | FAILED
org.eclipse.jetty.server.session.SessionHandler@4274ae17:
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@766fca6e in
org.eclipse.jetty.security.ConstraintSecurityHandler@59a3688a
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@766fca6e in
org.eclipse.jetty.security.ConstraintSecurityHandler@59a3688a
at
org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:76)[133:org.eclipse.jetty.security:9.2.19.v20160908]
at
org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:384)[133:org.eclipse.jetty.security:9.2.19.v20160908]
at
org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:449)[133:org.eclipse.jetty.security:9.2.19.v20160908]
...
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf decanter kibana not start
Posted by conejo <lo...@gmail.com>.
Hi.
My karaf version is 4.0.7.
It certainly seems like an authentication problem. We have eliminated realm
karaf and we have taken it for another.
Can this be related?
This is our realm
<?xml version="1.0" encoding="UTF-8"?>
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0"
xmlns:jaas="http://karaf.apache.org/xmlns/jaas/v1.0.0"
xmlns:cm="http://aries.apache.org/blueprint/xmlns/blueprint-cm/v1.1.0"
xmlns:ext="http://aries.apache.org/blueprint/xmlns/blueprint-ext/v1.0.0">
<ext:property-placeholder placeholder-prefix="$["
placeholder-suffix="]"/>
<cm:property-placeholder persistent-id="org.apache.karaf.jaas.db"
update-strategy="reload">
<cm:default-properties>
<cm:property name="encryption.name" value="basic"/>
<cm:property name="encryption.enabled" value="true"/>
<cm:property name="encryption.algorithm" value="SHA1"/>
<cm:property name="encryption.encoding" value="hexadecimal"/>
<cm:property name="detailed.login.exception" value="false"/>
<cm:property name="audit.file.enabled" value="true"/>
<cm:property name="audit.file.file"
value="$[karaf.data]/security/audit.log"/>
<cm:property name="audit.eventadmin.enabled" value="true"/>
<cm:property name="audit.eventadmin.topic"
value="org/apache/karaf/login"/>
</cm:default-properties>
</cm:property-placeholder>
<jaas:config name="project_realm" rank="10">
<jaas:module
className="org.apache.karaf.jaas.modules.jdbc.JDBCLoginModule"
flags="sufficient">
datasource =
osgi:javax.sql.DataSource/(osgi.jndi.service.name=projectDS)
query.password = SELECT clave FROM USUARIOS WHERE Nombre=?
query.role = SELECT p.Codigo FROM USUARIOS u, USUARIOS_PERMISOS
ur, PERMISOS p WHERE u.UsuarioId = ur.UsuarioId AND ur.PermisoId=p.PermisoId
and u.Nombre=?
encryption.enabled = ${encryption.enabled}
encryption.name = ${encryption.name}
encryption.algorithm = ${encryption.algorithm}
encryption.encoding = ${encryption.encoding}
detailed.login.exception = ${detailed.login.exception}
</jaas:module>
<jaas:module
className="org.apache.karaf.jaas.modules.properties.PropertiesLoginModule"
flags="sufficient">
users = etc/usersproject.properties
</jaas:module>
<jaas:module
className="org.apache.karaf.jaas.modules.audit.FileAuditLoginModule"
flags="optional">
enabled = ${audit.file.enabled}
file = ${audit.file.file}
</jaas:module>
<jaas:module
className="org.apache.karaf.jaas.modules.audit.EventAdminAuditLoginModule"
flags="optional">
enabled = ${audit.eventadmin.enabled}
topic = ${audit.eventadmin.topic}
</jaas:module>
</jaas:config>
</blueprint>
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049033.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf decanter kibana not start
Posted by conejo <lo...@gmail.com>.
Hi
I used option 1
It's already working!
Thanx
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049039.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf decanter kibana not start
Posted by Achim Nierbeck <bc...@googlemail.com>.
Hi,
yeah, or change the realm name in the jetty.xml used by Pax-Web.
regards, Achim
2016-12-16 11:53 GMT+01:00 Jean-Baptiste Onofré <jb...@nanthrax.net>:
> Hi,
>
> For JNA, as I said, it should not be a blocker.
>
> Kibana Decanter expect a Karaf realm. If your realm uses a different name,
> than:
> 1. you have to provide a karaf realm
> or
> 2. you have to update the realm name in web.xml
>
> Regards
> JB
>
>
> On 12/16/2016 11:35 AM, conejo wrote:
>
>> Hi, I've made some progress.
>>
>> For elasticsearch JNA ClassNotFoundException:
>> It's solved adding bundle:install -s mvn:net.java.dev.jna/jna/4.1.0
>>
>> For Kibana security issue: I have modified
>> org.apache.karaf.decanter.kibana-4.x-1.2.0.jar/WEB-INF/web.xml to use my
>> realm (instead of karaf realm) and it works.
>>
>> But I would not like to change the web.xml
>> Any ideas?
>>
>>
>>
>> --
>> View this message in context: http://karaf.922171.n3.nabble.
>> com/karaf-decanter-kibana-not-start-tp4049028p4049036.html
>> Sent from the Karaf - User mailing list archive at Nabble.com.
>>
>>
> --
> Jean-Baptiste Onofré
> jbonofre@apache.org
> http://blog.nanthrax.net
> Talend - http://www.talend.com
>
--
Apache Member
Apache Karaf <http://karaf.apache.org/> Committer & PMC
OPS4J Pax Web <http://wiki.ops4j.org/display/paxweb/Pax+Web/> Committer &
Project Lead
blog <http://notizblog.nierbeck.de/>
Co-Author of Apache Karaf Cookbook <http://bit.ly/1ps9rkS>
Software Architect / Project Manager / Scrum Master
Re: karaf decanter kibana not start
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
For JNA, as I said, it should not be a blocker.
Kibana Decanter expect a Karaf realm. If your realm uses a different
name, than:
1. you have to provide a karaf realm
or
2. you have to update the realm name in web.xml
Regards
JB
On 12/16/2016 11:35 AM, conejo wrote:
> Hi, I've made some progress.
>
> For elasticsearch JNA ClassNotFoundException:
> It's solved adding bundle:install -s mvn:net.java.dev.jna/jna/4.1.0
>
> For Kibana security issue: I have modified
> org.apache.karaf.decanter.kibana-4.x-1.2.0.jar/WEB-INF/web.xml to use my
> realm (instead of karaf realm) and it works.
>
> But I would not like to change the web.xml
> Any ideas?
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049036.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf decanter kibana not start
Posted by conejo <lo...@gmail.com>.
Hi, I've made some progress.
For elasticsearch JNA ClassNotFoundException:
It's solved adding bundle:install -s mvn:net.java.dev.jna/jna/4.1.0
For Kibana security issue: I have modified
org.apache.karaf.decanter.kibana-4.x-1.2.0.jar/WEB-INF/web.xml to use my
realm (instead of karaf realm) and it works.
But I would not like to change the web.xml
Any ideas?
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049036.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf decanter kibana not start
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
For elasticsearch, JNA ClassNotFoundException should be a WARNING (not
blocker).
For the WARN on ssh, it's normal: it's when the JMX collector requests
the Instance MBean (you can exclude this MBean or just add a logger OFF
for that).
For Kibana, it sounds like authentication/security issue. What's your
Karaf version ?
Regards
JB
On 12/15/2016 01:32 PM, conejo wrote:
> Hi. Thanks for answering.
>
> I have the same problem. When installing elasticsearch:
>
> java.lang.ClassNotFoundException: com.sun.jna.Native not found by
> org.apache.servicemix.bundles.elasticsearch
>
> _______
>
> And just when installing kibana
>
> java.lang.IllegalStateException: No LoginService for
> org.eclipse.jetty.security.authentication.BasicAuthenticator@3ed90f23 in
> org.eclipse.jetty.security.ConstraintSecurityHandler@1699c30d
> at
> org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:76)[133:org.eclipse.jetty.security:9.2.19.v20160908]
> at
> org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:384)[133:org.eclipse.jetty.security:9.2.19.v20160908]
> at
> org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:449)[133:org.eclipse.jetty.security:9.2.19.v20160908]
> ...
> ______________
>
> And I have the following warning periodically:
>
> 2016-12-15 13:30:01,665 | WARN | d]-nio2-thread-2 | ServerSession
> | 117 - org.apache.sshd.core - 0.14.0 | Exception caught
> java.io.IOException: Se ha anulado una conexi�n establecida por el software
> en su equipo host.
> at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
> Method)[:1.8.0_31]
> at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:43)[:1.8.0_31]
> at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:511)[:1.8.0_31]
> at
> sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:657)[:1.8.0_31]
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049030.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr�
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com
Re: karaf decanter kibana not start
Posted by conejo <lo...@gmail.com>.
Hi. Thanks for answering.
I have the same problem. When installing elasticsearch:
java.lang.ClassNotFoundException: com.sun.jna.Native not found by
org.apache.servicemix.bundles.elasticsearch
_______
And just when installing kibana
java.lang.IllegalStateException: No LoginService for
org.eclipse.jetty.security.authentication.BasicAuthenticator@3ed90f23 in
org.eclipse.jetty.security.ConstraintSecurityHandler@1699c30d
at
org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:76)[133:org.eclipse.jetty.security:9.2.19.v20160908]
at
org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:384)[133:org.eclipse.jetty.security:9.2.19.v20160908]
at
org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:449)[133:org.eclipse.jetty.security:9.2.19.v20160908]
...
______________
And I have the following warning periodically:
2016-12-15 13:30:01,665 | WARN | d]-nio2-thread-2 | ServerSession
| 117 - org.apache.sshd.core - 0.14.0 | Exception caught
java.io.IOException: Se ha anulado una conexión establecida por el software
en su equipo host.
at sun.nio.ch.WindowsAsynchronousSocketChannelImpl.read0(Native
Method)[:1.8.0_31]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.access$700(WindowsAsynchronousSocketChannelImpl.java:43)[:1.8.0_31]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl$ReadTask.run(WindowsAsynchronousSocketChannelImpl.java:511)[:1.8.0_31]
at
sun.nio.ch.WindowsAsynchronousSocketChannelImpl.implRead(WindowsAsynchronousSocketChannelImpl.java:657)[:1.8.0_31]
--
View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028p4049030.html
Sent from the Karaf - User mailing list archive at Nabble.com.
Re: karaf decanter kibana not start
Posted by Jean-Baptiste Onofré <jb...@nanthrax.net>.
Hi,
Same with Decanter 1.2.0 ?
Just tested, and it works fine for me.
Regards
JB
On 12/15/2016 12:45 PM, conejo wrote:
> Hi.
>
> I can not run the kibana web console (http://localhost:8181/kibana).
>
> I deleted the realm karaf and replaced it with one of my own.
>
> When I install the following features, kibana does not work:
> feature:repo-add decanter 1.1.0
> feature:install elasticsearch
> feature:install kibana
> feature:install decanter-appender-elasticsearch
> feature:install decanter-collector-log
> feature:install decanter-collector-jmx
>
> I have a warning message in log:
>
> 2016-12-15 12:17:39,712 | WARN | ender-1-thread-1 | AbstractLifeCycle
> | 137 - org.eclipse.jetty.util - 9.2.19.v20160908 | FAILED
> org.eclipse.jetty.server.session.SessionHandler@4274ae17:
> java.lang.IllegalStateException: No LoginService for
> org.eclipse.jetty.security.authentication.BasicAuthenticator@766fca6e in
> org.eclipse.jetty.security.ConstraintSecurityHandler@59a3688a
> java.lang.IllegalStateException: No LoginService for
> org.eclipse.jetty.security.authentication.BasicAuthenticator@766fca6e in
> org.eclipse.jetty.security.ConstraintSecurityHandler@59a3688a
> at
> org.eclipse.jetty.security.authentication.LoginAuthenticator.setConfiguration(LoginAuthenticator.java:76)[133:org.eclipse.jetty.security:9.2.19.v20160908]
> at
> org.eclipse.jetty.security.SecurityHandler.doStart(SecurityHandler.java:384)[133:org.eclipse.jetty.security:9.2.19.v20160908]
> at
> org.eclipse.jetty.security.ConstraintSecurityHandler.doStart(ConstraintSecurityHandler.java:449)[133:org.eclipse.jetty.security:9.2.19.v20160908]
>
> ...
>
>
>
>
> --
> View this message in context: http://karaf.922171.n3.nabble.com/karaf-decanter-kibana-not-start-tp4049028.html
> Sent from the Karaf - User mailing list archive at Nabble.com.
>
--
Jean-Baptiste Onofr
jbonofre@apache.org
http://blog.nanthrax.net
Talend - http://www.talend.com