Quantcast
Channel: Ignite Realtime : Discussion List - All Communities
Viewing all articles
Browse latest Browse all 10742

FileNotFoundException: /logs/debug.log (No such file or directory)

$
0
0

Hi,

 

I am running openfire 3.7.0 succesfully, except for the log files.

 

I get filenotfound on /logs/debug.log, /logs/info.log, /logs/warn.log, /logs/error.log in /home/xxx/openfire/stderror.log

 

openfire is installed in

 

/home/xxx/openfire

 

and log dir is thereby

 

/home/xxx/openfire/logs

 

In the admin console, I have, under properties:

 

 

log.directory  /home/xxx/openfire/logs

 

and in my openfire.xml I have:

 

<log>

    <directory>/home/xxx/openfire/logs</directory>

  </log>

 

 

Why does openfire try to write the log files under /logs instead of using my parameters?

 

Here is the trace:

 

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

java.io.FileNotFoundException: /logs/debug.log (No such file or directory)

        at java.io.FileOutputStream.openAppend(Native Method)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:192)

        at java.io.FileOutputStream.<init>(FileOutputStream.java:116)

        at org.apache.log4j.FileAppender.setFile(FileAppender.java:290)

        at org.apache.log4j.RollingFileAppender.setFile(RollingFileAppender.java:194)

        at org.apache.log4j.FileAppender.activateOptions(FileAppender.java:164)

        at org.apache.log4j.config.PropertySetter.activate(PropertySetter.java:257)

        at org.apache.log4j.xml.DOMConfigurator.parseAppender(DOMConfigurator.java:285)

        at org.apache.log4j.xml.DOMConfigurator.findAppenderByName(DOMConfigurator.java:17 1)

        at org.apache.log4j.xml.DOMConfigurator.findAppenderByReference(DOMConfigurator.ja va:184)

        at org.apache.log4j.xml.DOMConfigurator.parseChildrenOfLoggerElement(DOMConfigurat or.java:502)

        at org.apache.log4j.xml.DOMConfigurator.parseRoot(DOMConfigurator.java:471)

        at org.apache.log4j.xml.DOMConfigurator.parse(DOMConfigurator.java:921)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:790)

        at org.apache.log4j.xml.DOMConfigurator.doConfigure(DOMConfigurator.java:696)

        at org.apache.log4j.helpers.OptionConverter.selectAndConfigure(OptionConverter.jav a:471)

        at org.apache.log4j.LogManager.<clinit>(LogManager.java:125)

        at org.slf4j.impl.Log4jLoggerFactory.getLogger(Log4jLoggerFactory.java:73)

        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:243)

        at org.slf4j.LoggerFactory.getLogger(LoggerFactory.java:255)


Viewing all articles
Browse latest Browse all 10742

Trending Articles