Written by

Question Abed Gzmawe · Apr 18, 2021

error message when stop cache DB on linux

hi,

I have redhat 8.3, after installation Cache and everything looks good , when i stop the DB by  /usr/cachesys/cstop i get :  

Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/mln/cache.lck: Delete failed
Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/w/mlnw/cache.lck: Delete failed
Apr 18 16:10:22 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/w/mgrw/cache.lck: Delete failed
Apr 18 16:10:27 opticanan Cache(CACHE)[115418]: Unable to open database lock /usr/cachesys/mgr/fdbms/cache.lck to delete it
Apr 18 16:10:27 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/acc/cache.lck: Delete failed
Apr 18 16:10:27 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/cav/cache.lck: Delete failed
Apr 18 16:10:27 opticanan Cache(CACHE)[115418]: Cannot remove database lock /cav/w/cavw/cache.lck: Delete failed
Apr 18 16:45:13 opticanan Cache(CACHE)[117065]: Unable to open database lock /usr/cachesys/mgr/fdbms/cache.lck to delete it
Apr 18 19:47:51 opticanan Cache(CACHE)[118475]: Cannot remove database lock /cav/cav/cache.lck: Delete failed
Apr 18 19:47:56 opticanan Cache(CACHE)[118475]: Unable to open database lock /usr/cachesys/mgr/fdbms/cache.lck to delete it

I think it belongs to permissions ' what permission exactly I need?

Product version: Ensemble 2018.1
$ZV: Cache for UNIX (Red Hat Enterprise Linux for x86-64) 2018.1.4 (Build 505_1)

Comments

Eduard Lebedyuk · Apr 18, 2021

During installation you specified the user who owns the system. Try running cstop as that user.

0
Abed Gzmawe  Apr 18, 2021 to Eduard Lebedyuk

I did that by root user, and still get the same  .

When i start the db the cache.lck created by root:cacheusr , that mean if the owner created the lck why he cant remove it?

0
Vic Sun · Apr 19, 2021

Hello Abed,

What permissions do you have exactly for cstop, the database directories / cache.lck, and the contents of the bin directory?

Perhaps the Unix permissions docs would be helpful:

UNIX® Users, Groups and Permissions

Also, can you try using "ccontrol stop" rather than calling cstop directly?

0