CEM no longer getting data from the TIMs - error in EM logs shows /tmp/userCache.data (Permission denied).

Document ID : KB000008467
Last Modified Date : 14/02/2018
Show Technical Document Details

 After restarting the EMs, CEM no longer updates with new data. When reviewing the logs of the EM running the CEM services, the following error appears:

[ERROR] [main] [org.springframework.web.context.ContextLoader] Context initialization failed 

org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'userCacheBackend' defined in ServletContext resource [/WEB-INF/tess-security.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: userCacheCache: Could not create disk store. Initial cause was /tmp/userCache.data (Permission denied)

EM running CEM services

 If an EM is started as the root user, a file critical for processing CEM related data will be marked as owned by root - /tmp/userCache.data

Restarting the EM and running it again as a non-root user will result in the application being unable to access the file.


 To resolve the problem, delete the file /tmp/userCache.data, then restart the EM. It will recreate the file and then process CEM data normally.