Accessing VIDM UI in a browser returns a HTTP 404, or 502, or 503 “Bad Gateway” or red error banner.
The Following error can be seen on Horizon.log,
ERROR (localhost-startStop-1) [;;] org.springframework.web.context.ContextLoader - Context initialization failedorg.springframework.beans.factory.BeanCreationException: Error creating bean with name 'liquibase' defined in class path resource [spring/datastore-wireup.xml]: Invocation of init method failed; nested exception is liquibase.exception.LockException: Could not acquire change log lock. Currently locked by <ipAddressHoldingLock> (<ipAddressHoldingLock>)
Authentication to applications through WS1 VIDM fails
VMware Identity Manager 3.3.x
When performing a database migration performing a database migration, or if the application experiences an ungraceful shutdown, or if there are network disruptions between nodes and VIDM, it can result in a stale database lock record in the saas.databasechangeloglock.
The following steps can be taken to manually remove the lock on the VIDM Database:
# service horizon-workspace stop
export PGPASSWORD=`cat /usr/local/horizon/conf/db.pwd`
/opt/vmware/vpostgres/current/bin/psql -U postgres saas
saas# SELECT * FROM saas.DATABASECHANGELOGLOCK;
If database locked will show t for true, the following steps can be taken to release the lock manually
id | locked | lockgranted | lockedby
----+--------+-------------+----------
1 | t | xxxxxxxxx | xxxxxxx
UPDATE saas.DATABASECHANGELOGLOCK set locked=FALSE, lockgranted=NULL, lockedby=NULL where id=1;
# service horizon-workspace start
horizon.log
until the application initialization is complete, without logging further deadlock warnings or change log lock.Verify new migrations have been recorded
SELECT * FROM databasechangelog ORDER BY orderexecuted DESC LIMIT 1;
service horizon-frontend start