# Release databasechangeloglock via liquibase api

**URL:** <https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370>\
**Category:** General Discussion\
**Created:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370 "2009-12-02T11:03:00Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![mwflipper](https://avatars.discourse-cdn.com/v4/letter/m/edb3f5/32.png) [@mwflipper](https://forum.liquibase.org/u/mwflipper)\
**Post date:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370/1 "2009-12-02T11:03:00Z")

</div>

Hello,  
I have a problem, that the lock in databasechangeloglock table was not release, so I got the error “Waiting for changelog lock…” when I try to start liquibase.  
In other threads I found the solution to delete the entry in the database. This is not possible in my use case, because our customer may have a derby database or we have no access to the customer database.  
Does an possibilty exist to release such an lock via the liquibase api?  
Thanks a lot  
mwflipper

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370/2 "2009-12-02T11:03:00Z")

</div>

If you have a reference to the liquibase.Liquibase object, there is a forceReleaseLocks() method on there.&nbsp;

Will that work for you, or what API are you working with?

Nathan

---

<div class="post-metadata">

**Author:** ![alwyn\_schoeman](https://avatars.discourse-cdn.com/v4/letter/a/e79b87/32.png) [@alwyn\_schoeman](https://forum.liquibase.org/u/alwyn_schoeman)\
**Post date:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370/3 "2009-12-02T11:03:00Z")

</div>

Would it be safe to call this method after an abort situation?

---

<div class="post-metadata">

**Author:** ![nvoxland](https://avatars.discourse-cdn.com/v4/letter/n/87869e/32.png) [@nvoxland](https://forum.liquibase.org/u/nvoxland)\
**Post date:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370/4 "2009-12-02T11:03:00Z")

</div>

Yes, it should be safe anytime.

Nathan

---

<div class="post-metadata">

**Author:** ![Guest](https://avatars.discourse-cdn.com/v4/letter/g/8dc957/32.png) [@Guest](https://forum.liquibase.org/u/Guest)\
**Post date:** [December 2, 2009, 11:03am UTC](https://forum.liquibase.org/t/release-databasechangeloglock-via-liquibase-api/370/5 "2009-12-02T11:03:00Z")

</div>

Thanks, this worked ok for stale locks.
