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

book

Article ID: 8467

calendar_today

Updated On:

Products

CA Application Performance Management Agent (APM / Wily / Introscope) INTROSCOPE

Issue/Introduction

 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)

Cause

 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.

Environment

EM running CEM services

Resolution

 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.