Hello Marc,
 

|java.io.FileNotFoundException: /home/dspace/log/dspace.log.2019-03-25
(Permission denied)|


it seems that the system user, who runs dspace, as no permission to
write into the dspace directory. You should check the permissions, first.

Hope this helps and kind regards,

Paul Münch

Am 26.03.19 um 13:04 schrieb Marc:
>
> We have DSpace CRIS 5.10 install on Debian Jessie, running on Tomcat
> 8. When running the /$HOME/bin/dspace generate-sitemaps > /dev/null/
> command in the dspace cron job the following error message is generated
>
> |log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /home/dspace/log/dspace.log.2019-03-25
> (Permission denied) at java.io.FileOutputStream.open(Native Method) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:221) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:142) at
> org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at
> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
> at
> org.dspace.app.util.DailyFileAppender.activateOptions(DailyFileAppender.java:94)
> 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.apache.log4j.Logger.getLogger(Logger.java:117) at
> org.dspace.core.ConfigurationManager.<clinit>(ConfigurationManager.java:50)
> at
> org.dspace.app.launcher.ScriptLauncher.getConfig(ScriptLauncher.java:256)
> at
> org.dspace.app.launcher.ScriptLauncher.<clinit>(ScriptLauncher.java:35)
> log4j:ERROR setFile(null,true) call failed.
> java.io.FileNotFoundException: /home/dspace/log/dspace.log.2019-03-25
> (Permission denied) at java.io.FileOutputStream.open(Native Method) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:221) at
> java.io.FileOutputStream.<init>(FileOutputStream.java:142) at
> org.apache.log4j.FileAppender.setFile(FileAppender.java:294) at
> org.apache.log4j.FileAppender.activateOptions(FileAppender.java:165)
> at
> org.dspace.app.util.DailyFileAppender.activateOptions(DailyFileAppender.java:94)
> 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.dspace.core.ConfigurationManager.loadConfig(ConfigurationManager.java:805)
> at
> org.dspace.core.ConfigurationManager.getMutableProperties(ConfigurationManager.java:122)
> at
> org.dspace.core.ConfigurationManager.getProperty(ConfigurationManager.java:167)
> at
> org.dspace.app.launcher.ScriptLauncher.getConfig(ScriptLauncher.java:256)
> at
> org.dspace.app.launcher.ScriptLauncher.<clinit>(ScriptLauncher.java:35) |
>
> Tomcat is running under it’s own user and generating the log files
> with the following permissions
> |
> -rw-r--r-- 1 tomcat8 tomcat8
> |
> Reading around this issue there seems to be a number of solutions,
> including changing the user that tomcat runs under to the dspace user
> or setting the UMASK variable. I believe I have followed the setup
> instructions correctly. Is there a suggested solution to this issue?
>
> Regards
> Marc
>
> -- 
> All messages to this mailing list should adhere to the DuraSpace Code
> of Conduct: https://duraspace.org/about/policies/code-of-conduct/
> ---
> You received this message because you are subscribed to the Google
> Groups "DSpace Technical Support" group.
> To unsubscribe from this group and stop receiving emails from it, send
> an email to dspace-tech+unsubscr...@googlegroups.com
> <mailto:dspace-tech+unsubscr...@googlegroups.com>.
> To post to this group, send email to dspace-tech@googlegroups.com
> <mailto:dspace-tech@googlegroups.com>.
> Visit this group at https://groups.google.com/group/dspace-tech.
> For more options, visit https://groups.google.com/d/optout.

-- 
Philipps-Universität Marburg | UB 
Digitale Dienste | Deutschhausstraße 9 | D018
Tel. +49 06421 28-24624  
--

-- 
All messages to this mailing list should adhere to the DuraSpace Code of 
Conduct: https://duraspace.org/about/policies/code-of-conduct/
--- 
You received this message because you are subscribed to the Google Groups 
"DSpace Technical Support" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to dspace-tech+unsubscr...@googlegroups.com.
To post to this group, send email to dspace-tech@googlegroups.com.
Visit this group at https://groups.google.com/group/dspace-tech.
For more options, visit https://groups.google.com/d/optout.

Attachment: signature.asc
Description: OpenPGP digital signature

Reply via email to