# H2 update not working

**URL:** <https://forum.liquibase.org/t/h2-update-not-working/132>\
**Category:** General Discussion\
**Created:** [July 15, 2009, 8:47pm UTC](https://forum.liquibase.org/t/h2-update-not-working/132 "2009-07-15T20:47:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jdoklovic](https://avatars.discourse-cdn.com/v4/letter/j/71e660/32.png) [@jdoklovic](https://forum.liquibase.org/u/jdoklovic)\
**Post date:** [July 15, 2009, 8:47pm UTC](https://forum.liquibase.org/t/h2-update-not-working/132/1 "2009-07-15T20:47:00Z")

</div>

Hi,

I’m trying to create a very simple test db using H2.  
I’ve created a changelog and have all the connection settings correct.  
I’m just letting H2 generate the db from the request and am currently telling liquibase to use the ‘public’ schema.

Everytime I try to run the update I get:

... lots of stack trace ... Caused by: org.h2.jdbc.JdbcSQLException: Table DATABASECHANGELOGLOCK already exists; SQL statement: CREATE TABLE public.DATABASECHANGELOGLOCK ...

My changelog is setup like this:  
main.xml  
&nbsp; --\> 1.0.0-dev1/releasechanges.xml  
&nbsp; --\> 1.0.0-dev1/2009-07-15-CFREF-1.xml

the 2009-07-15-CFREF-1.xml contains the only “real” changeset:

http://www.liquibase.org/xml/ns/dbchangelog/1.9" xmlns:xsi="[http://www.w3.org/2001/XMLSchema-instance"](http://www.w3.org/2001/XMLSchema-instance%22) xsi:schemaLocation="[http://www.liquibase.org/xml/ns/dbchangelog/1.9](http://www.liquibase.org/xml/ns/dbchangelog/1.9)[http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd"\>](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-1.9.xsd%22>) &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; 

And here ar my connection settings:

liquibase.db.schema=public liquibase.db.url=jdbc:h2:${build.dir}/war/h2db/testh2db;MODE=MySQL liquibase.db.user=admin liquibase.db.pass=admin liquibase.db.driver=org.h2.Driver liquibase.contexts=test liquibase.prompt.non.local=false

Anyone have any idea what’s going on with this??

---

<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:** [July 15, 2009, 8:47pm UTC](https://forum.liquibase.org/t/h2-update-not-working/132/2 "2009-07-15T20:47:00Z")

</div>

It looks like it should work.&nbsp; What version of liquibase are you running?&nbsp; Could you post the whole stacktrace?

Nathan

---

<div class="post-metadata">

**Author:** ![tlberglund](https://avatars.discourse-cdn.com/v4/letter/t/6a8cbe/32.png) [@tlberglund](https://forum.liquibase.org/u/tlberglund)\
**Post date:** [July 15, 2009, 8:47pm UTC](https://forum.liquibase.org/t/h2-update-not-working/132/3 "2009-07-15T20:47:00Z")

</div>

Two years later, some input: I just saw this same thing happen, and fixed it by bouncing the H2 database server. (The H2 server process was running, and I killed and restarted it.) Everything looks good from here.
