Skip to content

[BUG] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder" when adding repository-s3 #16152

@Pigueiras

Description

@Pigueiras

Describe the bug

It's related to the #6663 issue. Whenever you add the repository-s3 plugin you can see the following warnings when restarting the OS service:

[2024-10-01T14:20:57,070][WARN ][stderr                   ] SLF4J: Failed to load class "org.slf4j.impl.StaticLoggerBinder".
[2024-10-01T14:20:57,071][WARN ][stderr                   ] SLF4J: Defaulting to no-operation (NOP) logger implementation
[2024-10-01T14:20:57,071][WARN ][stderr                   ] SLF4J: See http://www.slf4j.org/codes.html#StaticLoggerBinder for further details.

I guess the fix would be similar to what was done in: opensearch-project/security#2564

Related component

Plugins

To Reproduce

  1. Install opensearch RPM
  2. /usr/share/opensearch/bin/opensearch-plugin install repository-s3
  3. Restart opensearch
  4. You can find the warnings in the logs

Expected behavior

No warnings about SLF4J

Additional Details

Plugins
Default + repository-s3

Host/Environment (please complete the following information):

  • OS: AlmaLinux 9
  • Version v2.17.0

Metadata

Metadata

Assignees

No one assigned

    Labels

    PluginsbugSomething isn't workingv2.18.0Issues and PRs related to version 2.18.0v3.0.0Issues and PRs related to version 3.0.0

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions