| | 1 | = OpenSpecimen Gotchas liquibase: Waiting for changelog lock |
| | 2 | |
| | 3 | Tags: [[OpenSpecimen Summary]] [[Gotchas_Category]] |
| | 4 | |
| | 5 | == Diagnosis |
| | 6 | |
| | 7 | 1. OpenSpecimen will not start. |
| | 8 | 2. Check the {{{catalina.out}}} file in the error - usually in {{{/local/{Open Specimen Directory}/app/logs/}}}. |
| | 9 | 3. If you see lots of lines saying `liquibase: Waiting for changelog lock....`. |
| | 10 | |
| | 11 | == Resolution |
| | 12 | |
| | 13 | 1. Log onto the database in MySQL |
| | 14 | 2. `SELECT * FROM DATABASECHANGELOGLOCK;` - there should be one row with a value of 1 for the `locked` column and the details of the lock. |
| | 15 | 3. To clear the lock run `UPDATE DATABASECHANGELOGLOCK SET LOCKED=FALSE, LOCKGRANTED=null, LOCKEDBY=null where ID=1;` |
| | 16 | |
| | 17 | [[BackLinks]] |