elasticsearch-readonlyrest-plugin icon indicating copy to clipboard operation
elasticsearch-readonlyrest-plugin copied to clipboard

SLF4J log error in stdout console

Open mcinquin opened this issue 6 years ago • 12 comments

Hello,

With ROR 1.16.8 and 1.16.9-pre4, i have a SLF4J log error in stdout console for each elasticsearch restart (ES 5.5.0 and Ubuntu 14.04).

SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
SLF4J: Defaulting to no-operation (NOP) logger implementation
SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

How to fix that ?

Thanks.

mcinquin avatar Jul 24 '17 15:07 mcinquin

Thanks for reporting @Shini31, this is fixed missing dependency, will be on the next stable release. If you notice anything else, let me know!

sscarduzio avatar Jul 24 '17 19:07 sscarduzio

Thanks for you work and your reactivity!

mcinquin avatar Jul 24 '17 20:07 mcinquin

Hello,

I have the same issue, on version 5.3.0, did you fix this on this version too?

Thanks.

chaimyom avatar Jul 31 '17 09:07 chaimyom

Hello,

The same issue with ROR 1.16.9 and ES 5.5.1

r-m-n avatar Aug 02 '17 13:08 r-m-n

Yes. Unfortunately I had to revert this because it was causing all kind of issues preventing ES to even start. Very sorry :(

I spent half an hour on this, but still couldn't figure it out. Feel free to experiment with adding/removing jars in your ES installation to find a working combination! I'll come back to this in the future (as it doesn't really look as a blocker).

sscarduzio avatar Aug 02 '17 17:08 sscarduzio

Adding "slf4j-simple-1.7.25.jar" to the zip readonlyrest-plugin and reinstall solve the problem.

http://www.slf4j.org/download.html

abdox2 avatar Nov 21 '17 10:11 abdox2

@abdox2 can you fix this at gradle level in ROR?

sscarduzio avatar Nov 21 '17 21:11 sscarduzio

it's been fixed c08cd639c9c651fd6b72b14e786a8c6e685b4eb9 and revert 0179bbdf6b6a2b17d5130d48c2507e7bd1e24cb3 for some reason. for me it's works just fine with the slf4j-simple.

Readonlyrest 1.16.13 Elasticsearch 5.6.4 Ubuntu 16.04.3

abdox2 avatar Nov 22 '17 09:11 abdox2

guys, I think I solved this, can you also check? (1.16.15 is out now)

sscarduzio avatar Jan 08 '18 21:01 sscarduzio

hi, i have the same issue but with ROR 1.18.1_es6.8.0 i added into zip slf4j-simple-1.7.25.jar and reinstall plugin but it doesn't help anyway

UPD: i just downloaded a sources and compilated this one. Then it works fine

kvaapagarrot avatar Jun 17 '19 17:06 kvaapagarrot

Still happening on newest version available:

Plugin information:

Plugins directory: /usr/share/elasticsearch/plugins
readonlyrest
- Plugin information:
Name: readonlyrest
Description: Safely expose Elasticsearch REST API
Version: 1.19.5
Elasticsearch Version: 7.7.0
Java Version: 1.8
Native Controller: false
Extended Plugins: []
 * Classname: tech.beshu.ror.es.ReadonlyRestPlugin

Logs messages:

[2020-05-29T10:01:26,952][INFO ][o.e.n.Node               ] [server.local]started
[2020-05-29T10:01:44,948][INFO ][t.b.r.b.Ror$             ] [server.local]Loading ReadonlyREST settings from index failed: cannot find index
[2020-05-29T10:01:44,949][INFO ][t.b.r.b.Ror$             ] [server.local]Loading ReadonlyREST settings from file: /etc/elasticsearch/readonlyrest.yml
[2020-05-29T10:01:45,906][WARN ][stderr                   ] [server.local]SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[2020-05-29T10:01:45,906][WARN ][stderr                   ] [server.local]SLF4J: Defaulting to no-operation (NOP) logger implementation
[2020-05-29T10:01:45,906][WARN ][stderr                   ] [server.local]SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

drdev avatar May 29 '20 13:05 drdev

I encountered this same error today when running ES v7.8.1 with 1.24.0 of free ROR ES plugin.

askids avatar Nov 21 '20 10:11 askids