Endevor Tomcat: scratchDir unusable
search cancel

Endevor Tomcat: scratchDir unusable

book

Article ID: 222738

calendar_today

Updated On:

Products

Endevor

Issue/Introduction

Endevor Web Service Tomcat STC log: 

16.08.16 STC#####  IEF695I START TOMCAT   WITH JOBNAME xxxxxxxx IS ASSIGNED TO USER userid1 , GROUP xxxxxxGR

...

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

/system/u/tomcat/v181/deploy/tomcat/work/Catalina/localhost:
total 16
drwxrwxrwx   4 BPXROOT  xxxxxxGR    8192 Aug 27 13:21 EndevorService
drwxr-xr-x   2 BPXROOT  xxxxxxGR       0 Jul 15 09:21 endevor
drwxr-xr-x   2 BPXROOT  xxxxxxGR       0 Jul 15 09:21 host-manager
drwxrwxrwx   2 BPXROOT  xxxxxxGR       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, the USERID1 does not have the write permission. 

The solution is to add write permission to xxxxxxGR group: 

chmod -R 775 /system/u/tomcat/vxx/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.