Endevor Tomcat: scratchDir unusable

book

Article ID: 222738

calendar_today

Updated On:

Products

CA Endevor Software Change Manager (SCM)

Issue/Introduction

Endevor Web Service Tomcat STC log: 

16.08.16 STC03665  IEF695I START TOMCAT   WITH JOBNAME IFTVTOMC IS ASSIGNED TO USER TOMCATU , GROUP TOMCATGR

...

SEVERE: The scratchDir you specified: ./SYSX/u/tomcat/v181/deploy/tomcat/work/Catalina/localhost/host-manger. is unusable. 

 

/SYSX/u/tomcat/v181/deploy/tomcat/work/Catalina/localhost:
total 16
drwxrwxrwx   4 BPXROOT  TOMCATGR    8192 Aug 27 13:21 EndevorService
drwxr-xr-x   2 BPXROOT  TOMCATGR       0 Jul 15 09:21 endevor
drwxr-xr-x   2 BPXROOT  TOMCATGR       0 Jul 15 09:21 host-manager
drwxrwxrwx   2 BPXROOT  TOMCATGR       0 Jul 15 09:21 manager

 

Environment

Release : 18.1

Component : CA Endevor Software Change Manager

Resolution

The scratchDir unusable error is permission related. 

Only BPXROOT has write permission to host-manager, TOMCATU does not have the write permission. 

The solution is to add write permission to TOMCATGR group: 

chmod -R 775 /SYSX/u/tomcat/v181/deploy/tomcat/work/Catalina/localhost

Or 

Stop Tomcat

Delete all contents under the work dir.

Restart Tomcat

When Tomcat starts, it will rebuild all subdirs under work with the correct permission.