-
Notifications
You must be signed in to change notification settings - Fork 1.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
liquibase.exception.ChangeLogParseException: 301 Moved Permanently #2448
Comments
Standing in the same line again. This is the second or third time we are facing similar issues in recent times... Please provide a permanent fix for this! We are facing a lot of downtime due to this issue
|
Any fix would be greatly appreciated, all our application builds that use Liquibase are failing. It appears that the URL http://www.liquibase.org/xml/ns/dbchangelog is being 301 redirected to http://www.liquibase.org/xml/ns/dbchangelog/ which may be the cause of the isssue |
@KarlJohnsonIntrepid, upgrading to the liquibase-core:4.3.5 solved this issue for me. |
I changed ulr address in head XML from http to https |
thanks @bbr88 upgrading to liquibase-core:4.3.5 solved it for me aswell |
Hey, we're experiencing the same issue on multiple projects. We can't quickly upgrade liquibase and redeploy hundreds of services, is there any workaround for this (other than disabling migrations) for the time being? Thanks for a great product no matter what :)
|
A workaround for the issue is to update the new location (from http to https) in the XML files (in our case we're using v 3.6, you should keep the same version you are currently using) from, xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd" to xsi:schemaLocation="http://www.liquibase.org/xml/ns/dbchangelog-ext https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-ext.xsd http://www.liquibase.org/xml/ns/dbchangelog https://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-3.6.xsd" Note: You are only updating every other URL to https (the url before is the namespace and this is unchanged). |
I've been told there is a liquibase.prefer.internal.xsd property that can be used as well (only available in 3.10.* onwards). I've not tried this myself though. |
I am attaching an exact change that needs to be done to resolve the issue.
I tried this for my prod version and it worked smoothly. |
Thanks everyone for the details. We are looking into this and will get back to you all soon. Promise. :) Thanks again for being such a great Community! |
another approach - using localy xsd schema |
#2449 (same issue, folks can also follow there) |
Hi @gmanwadkar @mohnishanjaria @KarlJohnsonIntrepid @bbr88 @AleksanderGrzybowski @BEllis @abhirathod This issue has been fixed. |
Sure, I'll plan the update. The version is in the first line of stacktrace I posted before. Thanks for your support! |
Closing since this has been resolved. |
Hi folks, My root changelog has the following (as you can see, I've even tried setting the urls to https):
but now my service fails to start up, with
FWIW, I've been able to work around this by downgrading the maven dependency to 4.7.1 (and setting the xsd version to 4.7). |
… release * commit '01492377ac83147afd80c38a916f4e32d7c86964': feat: remove escape character + add sequence transfer_status + set to 150000 history monitoring feat: add catch clauses in order to get the IOExceptions during transfer/transferOther for the monitoring and rethrow them fix: unit test because of renaming fwdDescription feat: add export functionality for monitoring view feat: downgrade liquibase to 4.3.5 because of liquibase/liquibase#2448 feat: add property in test application.yml feat: temporary deactivate feat: add automatic cleaning of monitoring history depending on a size limit
…ster * commit '25993e58830d703a9ae980d7c098265277c05cab': (70 commits) feat: - modify vesrion weasis-dicom-tools in order to fix "Go Away" exceptions - add in predestroy reset transfer in progress for destinations - handle 409 http exception in order to not rethrow exception = means file is already in the destination - set HTTP2 to HTTP1_1 feat: implement project key history => clean secret entity, remove unused column + add unit tests feat: implement project key history feat: implement project key history feat: modify docker-compose.yml new docker registry feat: modify docker-compose.yml new docker registry feat: modify docker-compose.yml new docker registry feat: modify docker-compose.yml new docker registry feat: remove escape character + add sequence transfer_status + set to 150000 history monitoring feat: add catch clauses in order to get the IOExceptions during transfer/transferOther for the monitoring and rethrow them fix: unit test because of renaming fwdDescription feat: add export functionality for monitoring view feat: downgrade liquibase to 4.3.5 because of liquibase/liquibase#2448 feat: add property in test application.yml feat: temporary deactivate feat: add automatic cleaning of monitoring history depending on a size limit fix forward node button save and delete destination feat: refresh multiple instances gateway setup feat: temporary deactivate feat: refresh multiple instances gateway setup ...
Environment
Liquibase Version: dbchangelog-4.0.xsd
Liquibase Integration & Version: <Pick one: CLI, maven, gradle, spring boot, servlet, etc.>
Liquibase Extension(s) & Version:
Database Vendor & Version:
Operating System Type & Version:
Description
Error while starting the server. XSD file http://www.liquibase.org/xml/ns/dbchangelog/dbchangelog-4.0.xsd
liquibase.exception.ChangeLogParseException: Error parsing line 2 column 35 of db/rt/mws_changelog.xml: s4s-elt-character: Non-whitespace characters are not allowed in schema elements other than 'xs:appinfo' and 'xs:documentation'. Saw '301 Moved Permanently'.
Steps To Reproduce
Actual Behavior
Error starting an application
Expected/Desired Behavior
No exception
Screenshots (if appropriate)
If applicable, add screenshots to help explain your problem.
Additional Context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: