< All Topics

Admin Console Server not coming up due to database lock

Behavior and Error messages

Admin Console not starting up and the error log have below errors. To get the error log, check HERE

Invocation of init method failed;
LockException: Could not acquire change log lock.  Currently locked by 

Cause

This happens when the server is restarted or shut down manually during the schema initialization is in progress. This is a rare scenario that occurs when the database is in a locked condition.

Solution

  • SSH to Linux terminal where NirvaShare is installed, create a file with the below path and filename. Make sure you login as root user. In case if you already have this file in that location, please edit the same to add the entry.
/var/nirvashare/config.properties
  • Add the below entry in to the file and save it.
ns_reset_db_lock=true
  • Restart Admin Console service using below command
docker restart nirvashare_admin
  • After Admin Console starts successfully, please delete the entry in the file and once again restart the Admin Console.
Table of Contents