On Wed, 2009-06-10 at 15:29 +0200, Grégory Joseph wrote: > > On Jun 10, 2009, at 2:30 PM, Jayson wrote: > > > On Wed, 2009-06-10 at 13:45 +0200, Grégory Joseph wrote: > >> Hi Jayson, > >> > >> Thanks for all the details:) The log file could probably help. I'm > >> suspecting you're running into the issue described by this comment: > >> > >> http://jira.magnolia-cms.com/browse/MAGNOLIA-818?focusedCommentId=15182&page=com.atlassian.jira.plugin.system.issuetabpanels%3Acomment-tabpanel#action_15182 > >> (ie the version of derby is fine, but you're hitting the max nr of > >> open files) > >> > >> Can you verify this ? To be on the safe side: > >> * stop Tomcat > >> * delete /home/jayson/magnolia/tomcat/webapps/magnoliaPublic/ > >> repositories > >> * apply the suggested changes to your system > >> * restart Tomcat > >> > >> hth, > >> > >> -g > > > > Thanks Grégory, > > > > I did sudo sysctl -a | sort | more and saw fs.file-max = 48954 > > > > Log file attached. > > What i suspected: > Caused by: java.sql.SQLException: Java exception: '/home/jayson/ > magnolia/tomcat/webapps/magnoliaPublic/repositories/magnolia/ > workspaces/config/db/seg0/c2a1.dat (Too many open files): > java.io.FileNotFoundException'. > > Derby's a sucker for open files - at least the version we use > currently, not sure about newer ones. It seems to me this value > differs from one system to another, so it's difficult to be sure where/ > when this happens. Could set it to a (much) higher value ? Let me know > if it helps. > > -g
Thanks Grégory, I experimented with setting the system file max to 400,000 like this... $ sudo sysctl -w fs.file-max=400000 fs.file-max = 400000 ... but a clean installed failed as before HOWEVER - when I changed the maximum no of files for my login and did another clean install both the Author and Public started ok and I have been able to complete the install/upgrade and STK installation on both. Here us what I did (Ubuntu 9.04) The standard no of files per user is 1024 $ ulimit -n 1024 I set new limits for user jayson in file /etc/security/limits.conf by appending... jayson soft nofile 4096 jayson hard nofile 4096 (sudo gedit /etc/security/limits.conf) ... and rebooting. To check I did... $ ulimit -n 4096 $ sudo sysctl fs.file-max fs.file-max = 48954 ... and then did a clean install of the bundle from magnolia-tomcat-bundle-4.0.1-bundle-jdk15.zip into ~/magnolia-4.0.1 I started tomcat as follows $ cd ~/magnolia-4.0.1/apache-tomcat-5.5.27/bin $ ./magnolia_control.sh start And of course, I had to learn that I needed to stop tomcat before copying the STK download files $ ./magnolia_control.sh stop Thanks for all your help - I hope my lengthy descriptions help other ubuntu users get started with magnolia All the best, Jayson ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <[email protected]> ----------------------------------------------------------------
