Page 1 of 1

[SOLVED] Could not delete sessionfilestore

Posted: Sat Feb 26, 2011 8:57 pm
by davidbann
Hi,

I have just installed OpenEMM for the first time on Win2003 64 bit.

Install went perfectly, and server started correctly - I see the initial page, but when I click the login link, it gives a no-response error.

I checked the OpenEMM logs and found the following errors in log4j-openemm.log.log:

Code: Select all

2011-02-26 21:41:20,527: FATAL [main] org.agnitas.util.web.SessionCleanUpListener - Could not delete sessionfilestore: C:\OpenEMM\webapps\core\WEB-INF\sessions
java.io.IOException: Unable to delete file: C:\OpenEMM\webapps\core\WEB-INF\sessions\srun_core.db
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:951)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:713)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:680)
	at org.agnitas.util.web.SessionCleanUpListener.contextInitialized(SessionCleanUpListener.java:35)
	at com.caucho.server.webapp.Application.start(Application.java:1647)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
	at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
	at com.caucho.server.host.Host.start(Host.java:420)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
	at com.caucho.server.host.HostContainer.start(HostContainer.java:504)
	at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
	at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
	at com.caucho.server.resin.ResinServer.start(ResinServer.java:551)
	at com.caucho.server.resin.Resin.init(Resin.java)
	at com.caucho.server.resin.Resin.main(Resin.java:625)
2011-02-26 21:41:20,527: FATAL [main] org.agnitas.util.web.SessionCleanUpListener - Could not delete sessionfilestore: C:\OpenEMM\webapps\core\WEB-INF\sessions
java.io.IOException: Unable to delete file: C:\OpenEMM\webapps\core\WEB-INF\sessions\srun_core.db
	at org.apache.commons.io.FileUtils.forceDelete(FileUtils.java:951)
	at org.apache.commons.io.FileUtils.cleanDirectory(FileUtils.java:713)
	at org.apache.commons.io.FileUtils.deleteDirectory(FileUtils.java:680)
	at org.agnitas.util.web.SessionCleanUpListener.contextInitialized(SessionCleanUpListener.java:35)
	at com.caucho.server.webapp.Application.start(Application.java:1647)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
	at com.caucho.server.webapp.ApplicationContainer.start(ApplicationContainer.java:670)
	at com.caucho.server.host.Host.start(Host.java:420)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.StartAutoRedeployAutoStrategy.startOnInit(StartAutoRedeployAutoStrategy.java:72)
	at com.caucho.server.deploy.DeployController.startOnInit(DeployController.java:509)
	at com.caucho.server.deploy.DeployContainer.start(DeployContainer.java:153)
	at com.caucho.server.host.HostContainer.start(HostContainer.java:504)
	at com.caucho.server.resin.ServletServer.start(ServletServer.java:971)
	at com.caucho.server.deploy.DeployController.startImpl(DeployController.java:621)
	at com.caucho.server.deploy.AbstractDeployControllerStrategy.start(AbstractDeployControllerStrategy.java:56)
	at com.caucho.server.deploy.DeployController.start(DeployController.java:517)
	at com.caucho.server.resin.ResinServer.start(ResinServer.java:551)
	at com.caucho.server.resin.Resin.init(Resin.java)
	at com.caucho.server.resin.Resin.main(Resin.java:625)
I found the same errors in core_stdout.log

Can anybody assist to resolve this issue?

Thanks

Re: Could not delete sessionfilestore

Posted: Sun Feb 27, 2011 6:32 pm
by maschoff
The error message says that the web container used by OpenEMM (Resin) could not delete file C:\OpenEMM\webapps\core\WEB-INF\sessions\srun_core.db. This seems to be a permission problem.

Re: Could not delete sessionfilestore

Posted: Mon Feb 28, 2011 8:03 am
by davidbann
maschoff wrote:The error message says that the web container used by OpenEMM (Resin) could not delete file C:\OpenEMM\webapps\core\WEB-INF\sessions\srun_core.db. This seems to be a permission problem.
Thanks, but what user would I need to change permissions for? I am starting OpenEMM with an account in the admin group...

Re: Could not delete sessionfilestore

Posted: Mon Feb 28, 2011 8:08 am
by maschoff
Please follow the instructions of the OpenEMM Install Guide. All information regarding required permissions are included there.

Re: Could not delete sessionfilestore

Posted: Mon Feb 28, 2011 8:39 am
by davidbann
maschoff wrote:Please follow the instructions of the OpenEMM Install Guide. All information regarding required permissions are included there.
Thanks - please point me to the correct install guide... I have used http://www.openemm.org/fileadmin/docs/O ... de_1.1.txt which is specific to Windows, but not in much details. I also looked at http://garr.dl.sourceforge.net/project/ ... _1.3.1.pdf but it does not include instructions for Windows...

Re: Could not delete sessionfilestore

Posted: Mon Feb 28, 2011 8:47 am
by maschoff
If the doc does not help it must be a special Windows problem. But we do not use Windows. Maybe someone else can help.

Re: Could not delete sessionfilestore

Posted: Tue Mar 01, 2011 9:04 pm
by davidbann
Ok I figured out the problem - While there are errors to do with file permissions, this was not the main cause of the site not working. I have even gratned EVERYONE full access to the files that are giving problems, but errors still exist - the files are in fact being deleted and recreated as they should, so not sure why the logs are showing errors.

The main cause of the problem was that my VM was running out of memory, causing the process to stop. After freeing up some memory, I still get the file permission errors in the logs, but OpenEMM works perfectly now.

Re: [SOLVED] Could not delete sessionfilestore

Posted: Tue Mar 01, 2011 9:12 pm
by maschoff
For the rest of us: How much memory should be granted to the VM to run OpenEMM smoothly?

Re: [SOLVED] Could not delete sessionfilestore

Posted: Tue Mar 01, 2011 9:26 pm
by davidbann
Well my VM is running with 2Gb of memory, but I am also running other resource intensive applications including MS Sql Server 2008, IIS, Apache, MySql, Perl, Python, an online time sheet system and some other custom windows services. So 2Gb will be way more than enough if just running OpenEMM.

Looking at the processes for OpenEMM including Java and the web server side, it looks like it is only using about 150mb in total for a fresh install.

Long story short, if you have 200mb memory available for OpenEMM as well as all supporting apps like DB and web server etc, then you should be good to go.

I hope that helps

Re: [SOLVED] Could not delete sessionfilestore

Posted: Tue Mar 01, 2011 9:40 pm
by maschoff
Yeah, thanks!

Re: [SOLVED] Could not delete sessionfilestore

Posted: Tue Oct 18, 2011 8:14 am
by Starter
davidbann wrote:Well my VM is running with 2Gb of memory, but I am also running other resource intensive applications including MS Sql Server 2008, IIS, Apache, MySql, Perl, Python, an online time sheet system and some other custom windows services. So 2Gb will be way more than enough if just running OpenEMM.
Thnx for sharing this. I have just received dell inspiron with 2 GB RAM in it. Was just wondering if it worth trying :P