# Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd'

**URL:** <https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716>\
**Category:** General Discussion\
**Created:** [February 13, 2019, 7:36pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716 "2019-02-13T19:36:00Z")\
**Posts on this page:** 19\
**Page:** 1

<div class="post-metadata">

**Author:** ![un1382561729492r88id](https://avatars.discourse-cdn.com/v4/letter/u/c4cdca/32.png) [@un1382561729492r88id](https://forum.liquibase.org/u/un1382561729492r88id)\
**Post date:** [February 13, 2019, 7:36pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/1 "2019-02-13T19:36:00Z")

</div>

Looks like it might have been something transient - I am able to see the xsd file fine from here. Try opening that link in a browser - you should see a valid xsd file (which is also an xml file).

Steve Donie  
Principal Software Engineer  
Datical, Inc. [http://www.datical.com/](http://www.datical.com/)

---

<div class="post-metadata">

**Author:** ![kunalkombe](https://avatars.discourse-cdn.com/v4/letter/k/b487fb/32.png) [@kunalkombe](https://forum.liquibase.org/u/kunalkombe)\
**Post date:** [February 13, 2019, 7:36pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/2 "2019-02-13T19:36:00Z")

</div>

hi&nbsp;

&nbsp;we are getting the " Failed to read schema document ‘\<a href=‘http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd’,’ target=’\_blank’ rel=‘noreferrer’\>http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd’, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema." error&nbsp; while running the application.

not able to create database schema.

previously it was working, suddenly it start giving error.

i have attach the change log file.

please suggest some solution to sort out this issue

thanks&nbsp;&nbsp;

---

<div class="post-metadata">

**Author:** ![finco](https://avatars.discourse-cdn.com/v4/letter/f/e95f7d/32.png) [@finco](https://forum.liquibase.org/u/finco)\
**Post date:** [January 7, 2022, 10:09am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/3 "2022-01-07T10:09:17Z")

</div>

Hi,

I also have same issue today.  
The XSD is using over 1 year but today suddenly failed.  
Does have any changes on the XSD today?

LiquibaseAutoConfiguration$LiquibaseConfiguration.class]: Invocation of init method failed; nested exception is liquibase.exception.ChangeLogParseException: Error parsing line 5 column 70 of classpath:/db/changelog/changelog\_original.xml: schema\_reference.4: Failed to read schema document ‘[http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd)’,

---

<div class="post-metadata">

**Author:** ![nay](https://avatars.discourse-cdn.com/v4/letter/n/8e7dd6/32.png) [@nay](https://forum.liquibase.org/u/nay)\
**Post date:** [January 7, 2022, 1:34pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/4 "2022-01-07T13:34:50Z")

</div>

Seems like liquibase now redirects all traffic from https with a 301 redirect, and thus fails to start.

By updating the XML definitions (e.g xsi:schemaLocation) in the changelog files to use **https://** instead of **http://** solved it for me.

```xml
 xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.4.xsd

```

---

<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:** [January 7, 2022, 1:54pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/5 "2022-01-07T13:54:47Z")

</div>

Sorry for the problems.

The is is that a “require https” setting somehow got enabled for those XSD urls. We’re shifting our website hosting provider and despite the fact that we explicitly tested for this requirement on staging, something seems different in their new production settings. We’re actively working with them to resolve the problem.

In general, Liquibase should read the xsd files bundled in the jar rather than try to download them but there have been a few versions over the years which had a bug that caused them to pull them from the network.

Upgrading to the current 4.6.2 version will address it from whatever versions have the “download the xsd” bug. Switching the XSD URL in your file to https instead of http will work too. Otherwise, we should hopefully have the redirecting issue fixed on our our side soon.

Nathan

---

<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:** [January 7, 2022, 2:37pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/6 "2022-01-07T14:37:30Z")

</div>

The server config should be fixed up now. Let us know if you’re still seeing problems.

Thanks,  
Nathan

---

<div class="post-metadata">

**Author:** ![pc8818](https://avatars.discourse-cdn.com/v4/letter/p/b3f665/32.png) [@pc8818](https://forum.liquibase.org/u/pc8818)\
**Post date:** [January 7, 2022, 3:26pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/7 "2022-01-07T15:26:23Z")

</div>

Now I’m getting the following:

Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: [http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd)

---

<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:** [January 7, 2022, 3:32pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/8 "2022-01-07T15:32:06Z")

</div>

It looks like there’s a separate issue with it blocking user-agent=java requests now too…

The fun of infrastructure changes. We’re working on getting it resolved.

Nathan

---

<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:** [January 7, 2022, 4:50pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/9 "2022-01-07T16:50:07Z")

</div>

The user-agent block has been resolved now as well, so everything should be fixed up now.

Let me know if you still have issues.

Nathan

---

<div class="post-metadata">

**Author:** ![OptionWay](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@OptionWay](https://forum.liquibase.org/u/OptionWay)\
**Post date:** [August 19, 2022, 8:37am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/10 "2022-08-19T08:37:45Z")

</div>

Hello,

[https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd](https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd) → failed

It seems that today we have the problem in the other side. I changed all the http to https and it fixed the issue.  
Note that the issue was not present yesterday (18-08-2022).  
No it does not work anymore with https but it is ok with http.  
It is an urgent issue for us because we cannot start our application.  
Thanks in advance  
Regards

---

<div class="post-metadata">

**Author:** ![felipes](https://avatars.discourse-cdn.com/v4/letter/f/977dab/32.png) [@felipes](https://forum.liquibase.org/u/felipes)\
**Post date:** [August 19, 2022, 9:38am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/11 "2022-08-19T09:38:17Z")

</div>

Hi all,

We’re current facing this issue with our applications that use liquibase,  
The problem is impacting all of our deployments.

`Unexpected error running Liquibase: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.`

---

<div class="post-metadata">

**Author:** ![Gabriel](https://avatars.discourse-cdn.com/v4/letter/g/9de0a6/32.png) [@Gabriel](https://forum.liquibase.org/u/Gabriel)\
**Post date:** [August 19, 2022, 10:37am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/12 "2022-08-19T10:37:28Z")

</div>

Hi, all!  
We´re the same problem!  
Caused by: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 139; schema\_reference.4: Failed to read schema document ‘[http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd)’, because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not xsd:schema.

our deployment can´t start.

---

<div class="post-metadata">

**Author:** ![felipes](https://avatars.discourse-cdn.com/v4/letter/f/977dab/32.png) [@felipes](https://forum.liquibase.org/u/felipes)\
**Post date:** [August 19, 2022, 10:42am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/13 "2022-08-19T10:42:54Z")

</div>

Hi Gabriel,

We tried to upgraded to 4.15 and our changesets were not compatible.  
Updating the liquibase to 3.10.2 worked for us, at least as a work around for the moment.

---

<div class="post-metadata">

**Author:** ![Koustuv](https://avatars.discourse-cdn.com/v4/letter/k/e99b99/32.png) [@Koustuv](https://forum.liquibase.org/u/Koustuv)\
**Post date:** [August 19, 2022, 10:47am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/14 "2022-08-19T10:47:37Z")

</div>

Hello,  
As it has been mentioned by @OptionWay , this can be solved by

1. moving [https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd](https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd) to [http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.5.xsd) .

2. Using xsd version which is present in the liquibase-core jar liquibase.parser.core.xml package.  
Example:  
In case your liquibase-core version is 3.5.5 make sure to use xsd of 3.5 version. Using xsd of higher then 3.5 will cause this issue as it is not available in the jar.

Hope it helps…

Cheers!!

---

<div class="post-metadata">

**Author:** ![seanc](https://avatars.discourse-cdn.com/v4/letter/s/ad7895/32.png) [@seanc](https://forum.liquibase.org/u/seanc)\
**Post date:** [August 19, 2022, 11:56am UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/15 "2022-08-19T11:56:00Z")

</div>

Hi,  
Unfortunately we were using http URL when the issue occurred and moved to https to the same result as that was the previous fix in January. We tested with the files locally also but received Non-whitespace characters are not allowed in schema elements other than ‘xs:appinfo’ and ‘xs:documentation’.

Updating the liquibase to 3.10.2 was the only solution to get the new deployments working for the moment but all old deployments will still be affected.

---

<div class="post-metadata">

**Author:** ![OptionWay](https://avatars.discourse-cdn.com/v4/letter/o/f17d59/32.png) [@OptionWay](https://forum.liquibase.org/u/OptionWay)\
**Post date:** [August 19, 2022, 12:18pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/16 "2022-08-19T12:18:45Z")

</div>

Actually it is a huge impact for all our applications on production. If we have to restart, it will fail if we do not change https to http.  
Is it possible to have an urgent fix to have https working again?  
If it is not possible, how can I be sure that http will still work in the future? Last January I had to change to https.  
Thanks in advance

---

<div class="post-metadata">

**Author:** ![PeachySeeman](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/peachyseeman/32/837_2.png) [@PeachySeeman](https://forum.liquibase.org/u/PeachySeeman)\
**Post date:** [August 19, 2022, 1:24pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/17 "2022-08-19T13:24:56Z")

</div>

> In case you liquibase-core version is 3.5.5 make sure to use xsd of 3.5 version

⬆ This was the important bit for us, because then liquibase could use the schema bundled with the dependency.

Our schema was incorrectly declared as [http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd](http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.8.xsd), but neither the http or https schema location would work.

Possibly, there’s some other issue that has come up (again?), like:

> separate issue with it blocking user-agent=java requests

---

<div class="post-metadata">

**Author:** ![jorgen\_finn](https://avatars.discourse-cdn.com/v4/letter/j/96bed5/32.png) [@jorgen\_finn](https://forum.liquibase.org/u/jorgen_finn)\
**Post date:** [August 19, 2022, 2:12pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/18 "2022-08-19T14:12:03Z")

</div>

We got a very simallar error that suddenly happened on our build server today, and not yesterday.

```auto
Caused by: org.xml.sax.SAXParseException: schema_reference.4: Failed to read schema document 'http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not <xsd:schema>.
... 
Caused by: java.io.IOException: Server returned HTTP response code: 403 for URL: http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.1.xsd

```

Our dependencies are a bit old unfortunately with Spring 4.3.5, Spring Boot 1.5.22 and liquibase-core 3.10.3. Tried switching from http to https in the xsd urls that the log mentioned, but the in the end the solution was to was other have mentioned to reference a xsd version that matches one of the files included in the jar file of liquibase-core.

---

<div class="post-metadata">

**Author:** ![ktaggart](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.liquibase.org/ktaggart/32/596_2.png) [@ktaggart](https://forum.liquibase.org/u/ktaggart)\
**Post date:** [August 22, 2022, 1:29pm UTC](https://forum.liquibase.org/t/failed-to-read-schema-document-http-www-liquibase-org-xml-ns-dbchangelog-dbchangelog-3-5-xsd/3716/19 "2022-08-22T13:29:28Z")

</div>

Are folks running these older versions of the software okay now with the XSD? We highly recommend upgrading as newer versions of the software a.) have security fixes and b.) will find the XSD locally.

> <https://github.com/liquibase/liquibase/issues/3183>
>
> Hi,
> 
> All our instances using liquibase is failing to run suddenly in the past …24 hours with the below error. There are no changes done on our side
> 
> Error parsing line 4 column 301 of classpath:db.changelog/db.changelog-master.xml: schema\_reference.4: Failed to read schema document 'https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd', because 1) could not find the document; 2) the document could not be read; 3) the root element of the document is not .
> 
> We faced a similar issue couple of months back and it was fixed on Liquibase end.
> 
> Please assist
