geonetwork / core-geonetwork

GeoNetwork is a catalog application to manage spatially referenced resources. It provides powerful metadata editing and search functions as well as an interactive web map viewer. It is currently used in numerous Spatial Data Infrastructure initiatives across the world.
http://geonetwork-opensource.org/
GNU General Public License v2.0
404 stars 481 forks source link

v4 on sql server - migration experience #5846

Open pvgenuchten opened 2 years ago

pvgenuchten commented 2 years ago

Today we deployed a v4 on windows with sql server db, some experiences:

do you have suggestions on where to fix/document these aspects?

ianwallen commented 2 years ago

@pvgenuchten Regarding "No migration from 3.10 to 4.0.5 is available"

It seems like it is coded to perform 2 migrations. - One for before JPA (3.0.2?) and one after. Versions between 3.0.2 and 3.0.6 are mixed between both migrations - not sure why.

https://github.com/geonetwork/core-geonetwork/blob/c4f1ddde66efbda7a87df223459a9d8641656fe0/web/src/main/webResources/WEB-INF/config-db/database_migration.xml#L33-L40

You don't show the rest of your logs - but I believe the error you are seeing is a result of the first migration because there is no migration path for 4 because it stops at 3.0.6. There should be a second migration section which upgrades your 3.10 to 4.0.5 and that is the one you want to check for errors.

I do agree that this is odd and may cause confusion. Maybe some better messages would help...

ianwallen commented 2 years ago

5866 may help resolve part of this issue.