Note that there are some explanatory texts on larger screens.

plurals
  1. POGrails application gets stuck on startup because DATABASECHANGELOG table is locked
    primarykey
    data
    text
    <p>I have a Grails application hosted on Heroku that uses the database migration plugin. From time to time when the application is restarted it get stucked on startup without any helping messages:</p> <pre><code>2012-11-12T11:21:06+00:00 app[web.1]: Configuring Spring Security Core ... 2012-11-12T11:21:06+00:00 app[web.1]: ... finished configuring Spring Security Core 2012-11-12T11:21:06+00:00 app[web.1]: 2012-11-12T11:21:22+00:00 heroku[web.1]: Stopping process with SIGKILL 2012-11-12T11:21:22+00:00 heroku[web.1]: Error R10 (Boot timeout) -&gt; Web process failed to bind to $PORT within 60 seconds of launch 2012-11-12T11:21:24+00:00 heroku[web.1]: Process exited with status 137 2012-11-12T11:21:34+00:00 heroku[router]: Error H20 (App boot timeout) -&gt; GET abc.herokuapp.com/ dyno= queue= wait=75000ms service= status=503 bytes= 2012-11-12T11:22:34+00:00 heroku[router]: Error H20 (App boot timeout) -&gt; GET abc.herokuapp.com/ dyno= queue= wait=75000ms service= status=503 bytes= 2012-11-12T11:25:10+00:00 heroku[router]: Error H10 (App crashed) -&gt; GET abc.herokuapp.com/ dyno= queue= wait= service= status=503 bytes= </code></pre> <p>After some investigation, I discovered that this was happening because there was a record on the DATABASECHANGELOGLOCK table with the column LOCKED=TRUE. When I manually set the LOCKED value to FALSE and restart the application, the startup process completes without problems.</p> <p>My questions are:</p> <ol> <li>How can I find what's leaving the database changelogs locked and how can I avoid it.</li> <li>If it's not possible to avoid the lock, there is any way to clear the lock on the application startup process before it gets stucked?</li> </ol>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload