[SOLVED] Could not delete sessionfilestore

Use this forum for questions regarding installation, upgrading and configuration of OpenEMM

Moderator: moderator

davidbann
Posts: 5
Joined: Sat Feb 26, 2011 8:49 pm
Location: South Africa
Contact:

[SOLVED] Could not delete sessionfilestore

Post 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
Last edited by davidbann on Tue Mar 01, 2011 9:05 pm, edited 1 time in total.
Running OpenEMM on Windows 2003 x64 alongside IIS and Apache
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Could not delete sessionfilestore

Post 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.
OpenEMM Maintainer
davidbann
Posts: 5
Joined: Sat Feb 26, 2011 8:49 pm
Location: South Africa
Contact:

Re: Could not delete sessionfilestore

Post 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...
Running OpenEMM on Windows 2003 x64 alongside IIS and Apache
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Could not delete sessionfilestore

Post by maschoff »

Please follow the instructions of the OpenEMM Install Guide. All information regarding required permissions are included there.
OpenEMM Maintainer
davidbann
Posts: 5
Joined: Sat Feb 26, 2011 8:49 pm
Location: South Africa
Contact:

Re: Could not delete sessionfilestore

Post 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...
Running OpenEMM on Windows 2003 x64 alongside IIS and Apache
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: Could not delete sessionfilestore

Post 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.
OpenEMM Maintainer
davidbann
Posts: 5
Joined: Sat Feb 26, 2011 8:49 pm
Location: South Africa
Contact:

Re: Could not delete sessionfilestore

Post 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.
Running OpenEMM on Windows 2003 x64 alongside IIS and Apache
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: [SOLVED] Could not delete sessionfilestore

Post by maschoff »

For the rest of us: How much memory should be granted to the VM to run OpenEMM smoothly?
OpenEMM Maintainer
davidbann
Posts: 5
Joined: Sat Feb 26, 2011 8:49 pm
Location: South Africa
Contact:

Re: [SOLVED] Could not delete sessionfilestore

Post 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
Running OpenEMM on Windows 2003 x64 alongside IIS and Apache
maschoff
Site Admin
Posts: 2628
Joined: Thu Aug 03, 2006 10:20 am
Location: Munich, Germany
Contact:

Re: [SOLVED] Could not delete sessionfilestore

Post by maschoff »

Yeah, thanks!
OpenEMM Maintainer
Starter
Posts: 2
Joined: Wed Oct 12, 2011 8:23 am

Re: [SOLVED] Could not delete sessionfilestore

Post 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
Post Reply