About two weeks after we deployed Wicket 1.5.3, we ran into a file system issue
on one of our server.
The following appeared in the application log on each page load:
ERROR 29 08:01:57.665 Failed to create directory:
/usr/local/tomcat/work/Catalina/localhost/_/WicketFilter-filestore/0A91844EB9E584DD7CA8C48AD558AB2D.myuw11
[o.a.w.u.f.Files]
ERROR 29 08:01:57.666
/usr/local/tomcat/work/Catalina/localhost/_/WicketFilter-filestore/0A91844EB9E584DD7CA8C48AD558AB2D.myuw11/data
(No such file or directory) [o.a.w.p.DiskDataStore]
java.io.FileNotFoundException:
/usr/local/tomcat/work/Catalina/localhost/_/WicketFilter-filestore/0A91844EB9E584DD7CA8C48AD558AB2D.myuw11/data
(No such file or directory)
at java.io.RandomAccessFile.open(Native Method)
at java.io.RandomAccessFile.<init>(RandomAccessFile.java:212)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.getFileChannel(DiskDataStore.java:410)
at
org.apache.wicket.pageStore.DiskDataStore$SessionEntry.savePage(DiskDataStore.java:328)
at
org.apache.wicket.pageStore.DiskDataStore.storeData(DiskDataStore.java:176)
at
org.apache.wicket.pageStore.AsynchronousDataStore$PageSavingRunnable.run(AsynchronousDataStore.java:356)
at java.lang.Thread.run(Thread.java:662)
WARN 29 08:01:57.666 Cannot save page with id '0' because the data file cannot
be opened.[o.a.w.p.DiskDataStore]
There were total 129,852 sub-directories under
/data/logs/tomcat/work/Catalina/localhost/_/WicketFilter-filestore/, named by
session ID and host name.
Removed all the sub-directories, cleared the problem. What concerns me now is
that the ones created on previous days were not removed completely. Therefore
the number of sub-directories is increasing every day.
Our session-timeout is 60 minutes.
Thanks,
Fang