java.io.FileNotFoundException: atlassian-crowd-openid-server.log (Permission denied)

Atlassian JIRA | Jim Bethancourt | 2 years ago
  1. 0

    Was getting the stacktrace below when starting up Crowd. To fix it, I had to specify the full path to the location where I wanted the log to be written. Thankfully SO came to the rescue: http://stackoverflow.com/questions/10682130/error-setfilenull-false-call-failed-when-using-log4j Please fix this so it mirrors the functionality shipped with Crowd (which doesn't require configuration and writes to the data directory by default) or update the documentation indicating that the full path to the log directory for the *log4j.appender.filelog.File* property needs to be set in {CROWD_INSTALL}/crowd-openidserver-webapp/WEB-INF/classes/log4j.properties Full stack trace: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: atlassian-crowd-openid-server.log (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream. <init>(FileOutputStream.java:206) at java.io.FileOutputStream.<init>(FileOutputStream.java:127) 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:842) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at com.atlassian.crowd.openid.server.bootstrap.BootstrapLoaderListener.<clinit>(BootstrapLoaderListener.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:433) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:138) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 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)

    Atlassian JIRA | 2 years ago | Jim Bethancourt
    java.io.FileNotFoundException: atlassian-crowd-openid-server.log (Permission denied)
  2. 0

    Was getting the stacktrace below when starting up Crowd. To fix it, I had to specify the full path to the location where I wanted the log to be written. Thankfully SO came to the rescue: http://stackoverflow.com/questions/10682130/error-setfilenull-false-call-failed-when-using-log4j Please fix this so it mirrors the functionality shipped with Crowd (which doesn't require configuration and writes to the data directory by default) or update the documentation indicating that the full path to the log directory for the *log4j.appender.filelog.File* property needs to be set in {CROWD_INSTALL}/crowd-openidserver-webapp/WEB-INF/classes/log4j.properties Full stack trace: log4j:ERROR setFile(null,true) call failed. java.io.FileNotFoundException: atlassian-crowd-openid-server.log (Permission denied) at java.io.FileOutputStream.open(Native Method) at java.io.FileOutputStream. <init>(FileOutputStream.java:206) at java.io.FileOutputStream.<init>(FileOutputStream.java:127) 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:842) at org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768) at org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514) at org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580) at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526) at org.apache.log4j.LogManager.<clinit>(LogManager.java:127) at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270) at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281) at com.atlassian.crowd.openid.server.bootstrap.BootstrapLoaderListener.<clinit>(BootstrapLoaderListener.java:30) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45) at java.lang.reflect.Constructor.newInstance(Constructor.java:408) at java.lang.Class.newInstance(Class.java:433) at org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:138) at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854) at org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434) at org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150) at org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901) at org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877) at org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633) at org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656) at org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) 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)

    Atlassian JIRA | 2 years ago | Jim Bethancourt
    java.io.FileNotFoundException: atlassian-crowd-openid-server.log (Permission denied)
  3. 0

    FileNotFoundException on startup

    GitHub | 4 years ago | skivvies
    java.io.FileNotFoundException: log.txt (Permission denied)
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Ubuntu lantern from deb crashes on startup

    GitHub | 4 years ago | leahxschmidt
    java.io.FileNotFoundException: log.txt (Permission denied)
  6. 0

    some errors when starting up

    GitHub | 2 years ago | LeoK987
    java.io.FileNotFoundException: log.txt (Permission denied)

  1. davidvanlaatum 1 times, last 5 months ago
  2. Kawada 3 times, last 6 months ago
  3. schoetty 2 times, last 7 months ago
  4. sriharshakiran 1 times, last 7 months ago
  5. eti22 3 times, last 2 weeks ago
23 more registered users
68 unregistered visitors
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

    atlassian-crowd-openid-server.log (Permission denied)

    at java.io.FileOutputStream.open()
  2. Java RT
    FileOutputStream.<init>
    1. java.io.FileOutputStream.open(Native Method)
    2. java.io.FileOutputStream.<init>(FileOutputStream.java:206)
    3. java.io.FileOutputStream.<init>(FileOutputStream.java:127)
    3 frames
  3. Apache Log4j
    LogManager.<clinit>
    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:842)
    8. org.apache.log4j.PropertyConfigurator.parseCategory(PropertyConfigurator.java:768)
    9. org.apache.log4j.PropertyConfigurator.configureRootCategory(PropertyConfigurator.java:648)
    10. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:514)
    11. org.apache.log4j.PropertyConfigurator.doConfigure(PropertyConfigurator.java:580)
    12. org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.java:526)
    13. org.apache.log4j.LogManager.<clinit>(LogManager.java:127)
    13 frames
  4. SLF4J LOG4J-12 Binding
    Log4jLoggerFactory.getLogger
    1. org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:66)
    1 frame
  5. SLF4J API Module
    LoggerFactory.getLogger
    1. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:270)
    2. org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:281)
    2 frames
  6. com.atlassian.crowd
    BootstrapLoaderListener.<clinit>
    1. com.atlassian.crowd.openid.server.bootstrap.BootstrapLoaderListener.<clinit>(BootstrapLoaderListener.java:30)
    1 frame
  7. Java RT
    Class.newInstance
    1. sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
    2. sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:62)
    3. sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
    4. java.lang.reflect.Constructor.newInstance(Constructor.java:408)
    5. java.lang.Class.newInstance(Class.java:433)
    5 frames
  8. Glassfish Core
    HostConfig$DeployDescriptor.run
    1. org.apache.catalina.core.DefaultInstanceManager.newInstance(DefaultInstanceManager.java:138)
    2. org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:4854)
    3. org.apache.catalina.core.StandardContext.startInternal(StandardContext.java:5434)
    4. org.apache.catalina.util.LifecycleBase.start(LifecycleBase.java:150)
    5. org.apache.catalina.core.ContainerBase.addChildInternal(ContainerBase.java:901)
    6. org.apache.catalina.core.ContainerBase.addChild(ContainerBase.java:877)
    7. org.apache.catalina.core.StandardHost.addChild(StandardHost.java:633)
    8. org.apache.catalina.startup.HostConfig.deployDescriptor(HostConfig.java:656)
    9. org.apache.catalina.startup.HostConfig$DeployDescriptor.run(HostConfig.java:1635)
    9 frames
  9. Java RT
    Thread.run
    1. java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
    2. java.util.concurrent.FutureTask.run(FutureTask.java:266)
    3. java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
    4. java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
    5. java.lang.Thread.run(Thread.java:745)
    5 frames