java.io.FileNotFoundException: cli-debug.log (Permission denied)

SpringSource Issue Tracker | Lirong Mao | 4 years ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    Reproduce step: 1. Login to serengeti server as user "root". 2. Login to serengeti server as user "serengeti". Problem: java.io.FileNotFoundException: cli-debug.log (Permission denied). [serengeti@localhost ~]$ serengeti log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: cli-debug.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:207) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:161) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:217) at org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:102) at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:59) at org.springframework.shell.Bootstrap.createApplicationContext(Bootstrap.java:95) at org.springframework.shell.Bootstrap.<init>(Bootstrap.java:73) at org.springframework.shell.Bootstrap.main(Bootstrap.java:60) ================================================= * _____ _ _ * * / ____| ___ _ __ ___ _ __ __ _ ___| |_(_) * * \____ \ / _ \ '__/ _ \ '_ \ / _` |/ _ \ __| | * * ____) | __/ | | __/ | | | (_| | __/ |_| | * * |_____/ \___|_| \___|_| |_|\__, |\___|\__|_| * * |___/ * * * ================================================= Version: 0.8.0 Welcome to Serengeti CLI serengeti>connect --host localhost:8080 Please enter the username: serengeti Please enter the password: ******** Cannot connect to the host: cannot update the host information,cli.properties (Permission denied)

    SpringSource Issue Tracker | 4 years ago | Lirong Mao
    java.io.FileNotFoundException: cli-debug.log (Permission denied)
  2. 0

    Reproduce step: 1. Login to serengeti server as user "root". 2. Login to serengeti server as user "serengeti". Problem: java.io.FileNotFoundException: cli-debug.log (Permission denied). [serengeti@localhost ~]$ serengeti log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: cli-debug.log (Permission denied) at java.io.FileOutputStream.openAppend(Native Method) at java.io.FileOutputStream.<init>(FileOutputStream.java:207) at java.io.FileOutputStream.<init>(FileOutputStream.java:131) at org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207) at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165) at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172) at org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104) at org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.apache.log4j.Logger.getLogger(Logger.java:104) at org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289) at org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:532) at org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116) at org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914) at org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336) at org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310) at org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:161) at org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:217) at org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:102) at org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:59) at org.springframework.shell.Bootstrap.createApplicationContext(Bootstrap.java:95) at org.springframework.shell.Bootstrap.<init>(Bootstrap.java:73) at org.springframework.shell.Bootstrap.main(Bootstrap.java:60) ================================================= * _____ _ _ * * / ____| ___ _ __ ___ _ __ __ _ ___| |_(_) * * \____ \ / _ \ '__/ _ \ '_ \ / _` |/ _ \ __| | * * ____) | __/ | | __/ | | | (_| | __/ |_| | * * |_____/ \___|_| \___|_| |_|\__, |\___|\__|_| * * |___/ * * * ================================================= Version: 0.8.0 Welcome to Serengeti CLI serengeti>connect --host localhost:8080 Please enter the username: serengeti Please enter the password: ******** Cannot connect to the host: cannot update the host information,cli.properties (Permission denied)

    SpringSource Issue Tracker | 4 years ago | Lirong Mao
    java.io.FileNotFoundException: cli-debug.log (Permission denied)
  3. 0

    Hadoop 2.1.0-beta Release Notes

    hortonworks.com | 2 years ago
    java.io.FileNotFoundException: /var/log/hadoop/hadoopqa/rm-appsummary.log (No such file or directory)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    log4j:ERROR setFile(null,true) call failed.

    Google Groups | 6 years ago | Simon
    java.io.FileNotFoundException: /logs/default.log (No such file or directory)
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.io.FileNotFoundException

    cli-debug.log (Permission denied)

    at java.io.FileOutputStream.openAppend()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.openAppend(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:207)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:131)
    3 frames
  3. Apache Log4j
    Logger.getLogger
    1. org.apache.log4j.FileAppender.setFile(FileAppender.java:294)
    2. org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:207)
    3. org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
    4. org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:307)
    5. org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:172)
    6. org.apache.log4j.config.PropertySetter.setProperties(PropertySetter.java:104)
    7. org.apache.log4j.PropertyConfigurator.parseAppender(PropertyConfigurator.java:809)
    8. org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:735)
    9. org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:615)
    10. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:502)
    11. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:547)
    12. org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:483)
    13. org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    14. org.apache.log4j.Logger.getLogger(Logger.java:104)
    14 frames
  4. Apache Commons Logging
    Log4JLogger.<init>
    1. org.apache.commons.logging.impl.Log4JLogger.getLogger(Log4JLogger.java:289)
    2. org.apache.commons.logging.impl.Log4JLogger.<init>(Log4JLogger.java:109)
    2 frames
  5. Java RT
    Constructor.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:532)
    4 frames
  6. Apache Commons Logging
    LogFactory.getLog
    1. org.apache.commons.logging.impl.LogFactoryImpl.createLogFromClass(LogFactoryImpl.java:1116)
    2. org.apache.commons.logging.impl.LogFactoryImpl.discoverLogImplementation(LogFactoryImpl.java:914)
    3. org.apache.commons.logging.impl.LogFactoryImpl.newInstance(LogFactoryImpl.java:604)
    4. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:336)
    5. org.apache.commons.logging.impl.LogFactoryImpl.getInstance(LogFactoryImpl.java:310)
    6. org.apache.commons.logging.LogFactory.getLog(LogFactory.java:685)
    6 frames
  7. Spring Context
    AnnotationConfigApplicationContext.<init>
    1. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:161)
    2. org.springframework.context.support.AbstractApplicationContext.<init>(AbstractApplicationContext.java:217)
    3. org.springframework.context.support.GenericApplicationContext.<init>(GenericApplicationContext.java:102)
    4. org.springframework.context.annotation.AnnotationConfigApplicationContext.<init>(AnnotationConfigApplicationContext.java:59)
    4 frames
  8. org.springframework.shell
    Bootstrap.main
    1. org.springframework.shell.Bootstrap.createApplicationContext(Bootstrap.java:95)
    2. org.springframework.shell.Bootstrap.<init>(Bootstrap.java:73)
    3. org.springframework.shell.Bootstrap.main(Bootstrap.java:60)
    3 frames