continuum-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Olivier Lamy (JIRA)" <j...@codehaus.org>
Subject [jira] Commented: (CONTINUUM-1891) don't use default java.io.tmpdir for jetty bundle (can causes issues on solaris)
Date Fri, 19 Sep 2008 21:21:49 GMT

    [ http://jira.codehaus.org/browse/CONTINUUM-1891?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=148549#action_148549
] 

Olivier Lamy commented on CONTINUUM-1891:
-----------------------------------------

On solaris, it's a shared directory in /var/tmp for all users.
If two different uid try to write a tmp file with the same name it will failed.
In my case the stack trace says :
{code}
Caused by: java.io.IOException: Index file /var/tmp/url-failures-cache.index could not created.
        at net.sf.ehcache.store.DiskStore.createNewIndexFile(DiskStore.java:850)
        at net.sf.ehcache.store.DiskStore.readIndex(DiskStore.java:827)
        at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:193)

my uid is :
bash-3.00$ id
uid=3002(olamy) gid=10(staff)
and
bash-3.00$ ls -lrt /var/tmp/url-failures-cache.index
-rw-r--r--   1 continuum staff        440 Aug  4 12:33 /var/tmp/url-failures-cache.index
{code}
It's a normal use case. Tomcat does it and use -Djava.io.tmpdir="$CATALINA_TMPDIR" with CATALINA_TMPDIR="$CATALINA_BASE"/temp

> don't use default java.io.tmpdir for jetty bundle (can causes issues on solaris)
> --------------------------------------------------------------------------------
>
>                 Key: CONTINUUM-1891
>                 URL: http://jira.codehaus.org/browse/CONTINUUM-1891
>             Project: Continuum
>          Issue Type: Improvement
>          Components: Jetty Bundle
>    Affects Versions: 1.2
>            Reporter: Olivier Lamy
>            Assignee: Olivier Lamy
>             Fix For: 1.2.1
>
>
> On solaris java.io.tmpdir is a shared directory (/var/tmp) and if different uid starts
continuum. It can have some permissions issues.
> {code}
> Caused by: net.sf.ehcache.CacheException: url-failures-cacheCache: Could not create disk
store. Initial cause was Index file /var/tmp/url-failures-cache.index could not created.
>         at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:164)
>         at net.sf.ehcache.Cache.createDiskStore(Cache.java:577)
>         at net.sf.ehcache.Cache.initialise(Cache.java:549)
>         at net.sf.ehcache.CacheManager.addCacheNoCheck(CacheManager.java:707)
>         at net.sf.ehcache.CacheManager.addCache(CacheManager.java:697)
>         at net.sf.ehcache.CacheManager.addCache(CacheManager.java:654)
>         at org.codehaus.plexus.cache.ehcache.EhcacheCache.initialize(EhcacheCache.java:244)
>         at org.codehaus.plexus.spring.PlexusLifecycleBeanPostProcessor.postProcessAfterInitialization(PlexusLifecycleBeanPostProcessor.java:217)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyBeanPostProcessorsAfterInitialization(AbstractAutowireCapableBeanFactory.java:361)
>         at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.postProcessObjectFromFactoryBean(AbstractAutowireCapableBeanFactory.java:1427)
>         at org.springframework.beans.factory.support.FactoryBeanRegistrySupport$1.run(FactoryBeanRegistrySupport.java:139)
>         ... 56 more
> Caused by: java.io.IOException: Index file /var/tmp/url-failures-cache.index could not
created.
>         at net.sf.ehcache.store.DiskStore.createNewIndexFile(DiskStore.java:850)
>         at net.sf.ehcache.store.DiskStore.readIndex(DiskStore.java:827)
>         at net.sf.ehcache.store.DiskStore.initialiseFiles(DiskStore.java:193)
>         at net.sf.ehcache.store.DiskStore.<init>(DiskStore.java:152)
>         ... 66 more
> {code}

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Mime
View raw message