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

permission denied for rangeradmin.jceks.crc file

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Critical
    • Resolution: Fixed
    • Affects Version/s: 0.6.0
    • Fix Version/s: 0.6.0
    • Component/s: Ranger
    • Labels:
      None

      Description

      seeing this error logs in ranger for quite some time:
      permission for the file is :
      root@ds-xa-test-1-re-1 ~# ls -l /etc/ranger/admin/.rangeradmin.jceks.crc
      rw-r----. 1 root root 12 Jun 3 08:52 /etc/ranger/admin/.rangeradmin.jceks.crc
      so looks like ranger is started with admin user and since permission are for root so it cant access the file

      sum file: file:/etc/ranger/admin/rangeradmin.jceks.  Ignoring exception:
      java.io.FileNotFoundException: /etc/ranger/admin/.rangeradmin.jceks.crc (Permission denied)
              at java.io.FileInputStream.open0(Native Method)
              at java.io.FileInputStream.open(FileInputStream.java:195)
              at java.io.FileInputStream.<init>(FileInputStream.java:138)
              at org.apache.hadoop.fs.RawLocalFileSystem$LocalFSFileInputStream.<init>(RawLocalFileSystem.java:111)
              at org.apache.hadoop.fs.RawLocalFileSystem.open(RawLocalFileSystem.java:215)
              at org.apache.hadoop.fs.ChecksumFileSystem$ChecksumFSInputChecker.<init>(ChecksumFileSystem.java:148)
              at org.apache.hadoop.fs.ChecksumFileSystem.open(ChecksumFileSystem.java:344)
              at org.apache.hadoop.fs.FileSystem.open(FileSystem.java:779)
              at org.apache.hadoop.security.alias.JavaKeyStoreProvider.getInputStreamForFile(JavaKeyStoreProvider.java:70)
              at org.apache.hadoop.security.alias.AbstractJavaKeyStoreProvider.<init>(AbstractJavaKeyStoreProvider.java:109)
              at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:49)
              at org.apache.hadoop.security.alias.JavaKeyStoreProvider.<init>(JavaKeyStoreProvider.java:41)
              at org.apache.hadoop.security.alias.JavaKeyStoreProvider$Factory.createProvider(JavaKeyStoreProvider.java:100)
              at org.apache.hadoop.security.alias.CredentialProviderFactory.getProviders(CredentialProviderFactory.java:58)
              at org.apache.ranger.credentialapi.CredentialReader.getDecryptedString(CredentialReader.java:58)
              at org.apache.ranger.common.PropertiesUtil.processProperties(PropertiesUtil.java:82)
              at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:84)
              at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:687)
              at org.springframework.context.support.AbstractApplicationContext.invokeBeanFactoryPostProcessors(AbstractApplicationContext.java:662)
              at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:454)
              at org.springframework.web.context.ContextLoader.configureAndRefreshWebApplicationContext(ContextLoader.java:383)
              at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:283)
              at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:111)
              at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:5068)
              at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5584)
              at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:147)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1572)
              at org.apache.catalina.core.ContainerBase$StartChild.call(ContainerBase.java:1562)
              at java.util.concurrent.FutureTask.run(FutureTask.java:266)
              at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
              at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
              at java.lang.Thread.run(Thread.java:745)
      

        Attachments

        1. RANGER-1073.patch
          9 kB
          Mehul Parikh

          Issue Links

            Activity

              People

              • Assignee:
                mehul Mehul Parikh
                Reporter:
                deepakhuawei Deepak Sharma
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: