Hi Alex Thanks for that info. The version of Tomcat currently supported by Fedora is 6; however we should look to upgrade this at some point, and I've created a JIRA issue for this and added a reference to your comments: https://jira.duraspace.org/browse/FCREPO-869
The Tomcat docs have some notes on directory permissions/ownerships/groups: http://tomcat.apache.org/tomcat-7.0-doc/security-howto.html#Non-Tomcat_setti ngs And yes Tomcat should not be run as root in a production environment for security reasons. Regards Steve > -----Original Message----- > From: Alex Lopez [mailto:alo...@flordeutopia.pt] > Sent: 02 March 2011 15:14 > To: fedora-commons-users@lists.sourceforge.net > Subject: [fcrepo-user] Scratchdir error > > > Hi all! > > This is just to report an error after a fresh install, over > my existing > Tomcat 7: > > (EmbeddedServletOptions) The scratchDir you specified: > /usr/share/apache-tomcat-7.0.6/work/Catalina/localhost/fedora > is unusable. > ... > (StandardManager) IOException while saving persisted sessions: > java.io.FileNotFoundException: > /usr/share/apache-tomcat-7.0.6/work/Catalina/localhost/fedora/ > SESSIONS.ser > (No such file or directory) > (StandardManager) Exception unloading sessions to persistent storage > (EmbeddedServletOptions) The scratchDir you specified: > /usr/share/apache-tomcat-7.0.6/work/Catalina/localhost/fedora > is unusable. > > that was resolved by creating the said dir: > > /usr/share/apache-tomcat-7.0.6/work/Catalina/localhost/fedora > > and giving permissions for tomcat (fedora's user in my case) > to write there. > > What happens, I think, is that although everything inside tomcat and > fcrepo webapps belongs to 'tomcat' user, things inside work/Catalina > belong to 'root' user and thus fedora (tomcat) can't write. > Is this the > expected behavior? I remember somewhere people saying that > tomcat/fedora > are better run *not* being root, for security concerns. > > Pardon me if this goes a little too off topic. > > Best, > > Alex > > -------------------------------------------------------------- > ---------------- > Free Software Download: Index, Search & Analyze Logs and > other IT data in > Real-Time with Splunk. Collect, index and harness all the > fast moving IT data > generated by your applications, servers and devices whether > physical, virtual > or in the cloud. Deliver compliance at lower cost and gain > new business > insights. http://p.sf.net/sfu/splunk-dev2dev > _______________________________________________ > Fedora-commons-users mailing list > Fedora-commons-users@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/fedora-commons-users > ------------------------------------------------------------------------------ Free Software Download: Index, Search & Analyze Logs and other IT data in Real-Time with Splunk. Collect, index and harness all the fast moving IT data generated by your applications, servers and devices whether physical, virtual or in the cloud. Deliver compliance at lower cost and gain new business insights. http://p.sf.net/sfu/splunk-dev2dev _______________________________________________ Fedora-commons-users mailing list Fedora-commons-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/fedora-commons-users