Uploaded image for project: 'Ranger'
  1. Ranger
  2. RANGER-3446

log4j initialization failure in docker setup

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.0.0
    • 3.0.0, 2.2.0
    • Ranger
    • None

    Description

      Ranger admin startup in docker fails due to following error in initializing log4j:

      INFO: Initializing Spring root WebApplicationContextINFO: Initializing Spring root WebApplicationContextlog4j:ERROR Could not read configuration file from URL [file:2021-09-25].java.io.FileNotFoundException: 2021-09-25 (No such file or directory) at java.io.FileInputStream.open0(Native Method) at java.io.FileInputStream.open(FileInputStream.java:195) at java.io.FileInputStream.<init>(FileInputStream.java:138) at java.io.FileInputStream.<init>(FileInputStream.java:93) at sun.net.www.protocol.file.FileURLConnection.connect(FileURLConnection.java:90) at sun.net.www.protocol.file.FileURLConnection.getInputStream(FileURLConnection.java:188) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:557) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.slf4j.impl.Log4jLoggerFactory.<init>(Log4jLoggerFactory.java:66) at org.slf4j.impl.StaticLoggerBinder.<init>(StaticLoggerBinder.java:72) at org.slf4j.impl.StaticLoggerBinder.<clinit>(StaticLoggerBinder.java:45) at org.slf4j.LoggerFactory.bind(LoggerFactory.java:150) at org.slf4j.LoggerFactory.performInitialization(LoggerFactory.java:124) at org.slf4j.LoggerFactory.getILoggerFactory(LoggerFactory.java:412) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:357) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:155) at org.apache.commons.logging.impl.SLF4JLogFactory.getInstance(SLF4JLogFactory.java:132) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:655) at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:269) at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:103) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4763) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5232) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:183) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1429) at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1419) at java.util.concurrent.FutureTask.run(FutureTask.java:266) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)log4j:ERROR Ignoring configuration file [file:2021-09-25].log4j:WARN No appenders could be found for logger (org.springframework.web.context.ContextLoader).log4j:WARN Please initialize the log4j system properly.log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info.
      

      Attachments

        1. RANGER-3446.patch
          1.0 kB
          Madhan Neethiraj

        Activity

          madhan Madhan Neethiraj added a comment - Patch in review board

          Fix merged in master and ranger-2.2 branches:

          master:

          commit 3041d1bff37ce1cd4a53073de6c1c97c03f19844 (HEAD -> master, origin/master, origin/HEAD)
          Author: Madhan Neethiraj <madhan@apache.org>
          Date:   Fri Sep 24 23:36:16 2021 -0700
          
              RANGER-3446: docker config fix for Ranger admin startup failure
          

          ranger-2.2:

          commit 663b5ed98f32939a9474e9c1f8c07538cb95e2e6 (HEAD -> ranger-2.2, origin/ranger-2.2)
          Author: Madhan Neethiraj <madhan@apache.org>
          Date:   Fri Sep 24 23:36:16 2021 -0700
          
              RANGER-3446: docker config fix for Ranger admin startup failure
          
              (cherry picked from commit 3041d1bff37ce1cd4a53073de6c1c97c03f19844)
          
          madhan Madhan Neethiraj added a comment - Fix merged in master and ranger-2.2 branches: master: commit 3041d1bff37ce1cd4a53073de6c1c97c03f19844 (HEAD -> master, origin/master, origin/HEAD) Author: Madhan Neethiraj <madhan@apache.org> Date: Fri Sep 24 23:36:16 2021 -0700 RANGER-3446: docker config fix for Ranger admin startup failure ranger-2.2: commit 663b5ed98f32939a9474e9c1f8c07538cb95e2e6 (HEAD -> ranger-2.2, origin/ranger-2.2) Author: Madhan Neethiraj <madhan@apache.org> Date: Fri Sep 24 23:36:16 2021 -0700 RANGER-3446: docker config fix for Ranger admin startup failure (cherry picked from commit 3041d1bff37ce1cd4a53073de6c1c97c03f19844)

          People

            madhan Madhan Neethiraj
            madhan Madhan Neethiraj
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: