Message Server not getting the initialized message (CAMS0001I) - /KahaDB/lock is locked by another server.

book

Article ID: 193247

calendar_today

Updated On:

Products

CA Common Services for z/OS CA Database Management Solutions for DB2 for z/OS CA Mainframe Connector for Linux on System z CA Web Administrator for Top Secret MF - MISC OLD CODES CA Output Management Web Viewer CA OPS/MVS Event Management & Automation

Issue/Introduction

New installation.

Starting up the CA Common Services Message Server (ZMSSTART) for the first time , but not getting the CAMS0001I message after waiting at least 10 minutes.

Do see this is the ../logs/server.log :

INFO  [2020-06-16 15:39:15.726] [Message Service Server] - [com.ca.messagingservice.library.brokerservice.EmbeddedBroker:startBroker:285] [main] - Starting the broker
INFO  [2020-06-16 15:39:15.784] [Message Service Server] - [com.ca.messagingservice.library.brokerservice.EmbeddedBroker:init:164] [main] - Initializing the embeddedBrokerService
INFO  [2020-06-16 15:39:15.792] [Message Service Server] - [com.ca.messagingservice.library.brokerservice.EmbeddedBroker:init:180] [main] - Adding the connector: vm://4c86780f-7c34-4d69-83e5-71b1b82813a0
INFO  [2020-06-16 15:39:15.825] [Message Service Server] - [org.apache.activemq.broker.BrokerService:doStartPersistenceAdapter:683] [main] - Using Persistence Adapter: KahaDBPersistenceAdapter[/usr/lpp/CADeploy/ccs150/cfgb/instance/messageService/brokerData/embeddedMaasBroker-85aab742-e3d0-4ef5-817c-cc1d1f27cf30/embeddedMaasBroker-85aab742-e3d0-4ef5-817c-cc1d1f27cf30/KahaDB]
INFO  [2020-06-16 15:39:15.830] [Message Service Server] - [org.apache.activemq.store.SharedFileLocker:doStart:70] [main] - Database /usr/lpp/CADeploy/ccs150/cfgb/instance/messageService/brokerData/embeddedMaasBroker-85aab742-e3d0-4ef5-817c-cc1d1f27cf30/embeddedMaasBroker-85aab742-e3d0-4ef5-817c-cc1d1f27cf30/KahaDB/lock is locked by another server. This broker is now in slave mode waiting a lock to be acquired

Cause

Unable to update ../messageService/BrokerData directory

Environment

Release : 15.0
Component : CCS MESSAGE SERVICE

Resolution

Allow read/write access to ../instance/messageService and subdirectories, including the ./brokerData directory

Check the userid that the ZMSSTART task is running under to ensure proper group access is permitted.

Additional Information

Review Configure Message Service Server for z/OS