CABI JasperReports Server 6.4.3 installation with non-root user fails

book

Article ID: 142762

calendar_today

Updated On:

Products

CA eHealth CA Spectrum

Issue/Introduction

The customer is trying to install CABI JasperReports server without any root user rights, meaning without sudo and with a non-privileged user.

From the logs CABusinessIntelligence_install log, we can see the following error:

 

Caused by: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'cacheManager' defined in file [/home/cabiuser/install/buildomatic/conf_source/iePro/applicationContext.xml]: Invocation of init method failed; nested exception is net.sf.ehcache.CacheException: java.io.IOException: Permission denied

 

 

Cause

Often, this error occurs because EHCache is trying to create a lock file called .ehcache-diskstore.lock in two folders, <tmpfolder>/main and <tmpfolder>/adhocCache, and the user executing js-export doesn't have write permissions to one or both folders. 

Environment

RedHat 7

CABI JasperReports server: 6.4.3

Resolution

First, check the file:

buildomatic/conf_source/iePro/applicationContext.xml
By default, it should contain the following properties:

property name="tempFolder" value="/temp"/
Check your system and see if /temp exists. If not, create a new folder named /temp.

Alternatively, if /tmp exists, you can change the configuration file using the value of /tmp.

 

Check the permissions of the two folders to ensure the end user has write access, and run chmod if they do not.