On 24. okt 2005, at 12.33, Alexandru Popescu wrote:
#: Andreas Amstutz changed the world a bit at a time by saying on
10/24/2005 10:00 AM :#
On 24. okt 2005, at 4.45, Alexandru Popescu wrote:
#: Andreas Amstutz changed the world a bit at a time by saying on
10/24/2005 12:29 AM :#
This is for a public instance deployed on
Fedora Core Linux / Magnolia-2.1.2
I am a magnolia newbe and wonder how I can get rid of the following
CacheHandler errors
jboss server.log:
2005-10-23 22:51:09,059 INFO [info.magnolia.cms.security.Lock] New
System lock created on Sun Oct 23 22:51:09 CEST 2005 )
2005-10-23 22:51:09,061 ERROR [info.magnolia.cms.core.CacheHandler]
Can not create directory -
/opt/jboss3/server/default/deploy/magnolia.war/cache
2005-10-23 22:51:09,062 ERROR [info.magnolia.cms.core.CacheHandler]
Can not create directory -
/opt/jboss3/server/default/deploy/magnolia.war/cache/optimized
The server runs as user "jboss"
The repository is bootstrapped to the "jboss" home dir.
Creating users & pages works as expectet and I can activate both
without problems.
But it seems that magnolia has a writing problem here
Any ideas?
some more log entries:
tail /opt/jboss3/server/default/log/magnolia/magnolia-debug.log
at
info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:100)
at
info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:43)
ERROR info.magnolia.cms.core.CacheHandler 24.10.2005 00:38:12 --
NOT Caching uri [/magcristal.html] due to a previous error
ERROR info.magnolia.cms.core.CacheHandler 24.10.2005 00:38:13 --
Failed to stream
[/magcristal/mainColumnParagraphs/04/image/gic007.jpg] due to a
java.io.FileNotFoundException:
http://prispiraten.com/magcristal/mainColumnParagraphs/04/image/
gic007.jpg
java.io.FileNotFoundException:
http://prispiraten.com/magcristal/mainColumnParagraphs/04/image/
gic007.jpg
at
sun.net.www.protocol.http.HttpURLConnection.getInputStream(HttpURLCo
nn ec tion.java:789)
at
info.magnolia.cms.core.CacheHandler.streamURI(CacheHandler.java:
208)
at
info.magnolia.cms.core.CacheHandler.cacheURI(CacheHandler.java:100)
at
info.magnolia.cms.core.CacheProcess.run(CacheProcess.java:43)
ERROR info.magnolia.cms.core.CacheHandler 24.10.2005 00:38:13 --
NOT Caching uri
[/magcristal/mainColumnParagraphs/04/image/gic007.jpg] due to a
previous error
Does the user jboss have 'write' access under
[...]/deploy/magnolia.war directory?
Thanks Alex
I noticed that the server constantly resets the access rights when
the cache directory is located below deploy/magnolia.war
Moving the cache to /tmp/magcache and making web.xml point to that
directory cured the first error.
I guess this is because the magnolia.war gets created automatically
when deployed/redeployed. Your fix is valid imo. Anoher approach would
be to deploy magnolia expanded already and set the permissions there.
Alex, magnolia is already expanded to deploy/magnolia.war
But I still get these FileNotFoundExceptions:
java.io.FileNotFoundException:
http://myserver.com/magcristal/pleje.html
The webapp/context name is missing in the URL. the correct URL would
be:
http://myserver.com/magnolia/magcristal/pleje.html
Do I have to fidle with the conf settings?
.// andreas
I don't have any idea why this would happen :-(.
./alex
I dont get it either. After updating the domain property to include the
context name the log still complains about non-existing files, which is
wrong:
tail: /opt/jboss3/server/default/log/server.log: file truncated
DEBUG [CacheHandler] Streaming
uri:http://prispiraten.com/magnolia/magcristal.html
ERROR [CacheHandler] Failed to stream [/magcristal.html] due to a
java.io.FileNotFoundException:
http://prispiraten.com/magnolia/magcristal.html
ERROR [CacheHandler] NOT Caching uri [/magcristal.html] due to a
previous error
Any ideas?
.// andreas
----------------------------------------------------------------
for list details see
http://www.magnolia.info/en/magnolia/developer.html
----------------------------------------------------------------