Skip to content

Migration guide needs some more information on database upgrades #12262

Description

@aseques

Description

I am upgrading a testing server from version 2025.01.00 to current 2026.01.00, in that system the database is postgres. That database was created using the version of the script from Feb 6th 205 (geosolutions-it/geostore@257d342)

How to reproduce

Deploy the war for version 2026.01.00 into tomcat

Expected Result

Mapstore autoupgrading the database schema or giving an information about the procedure to do so, also having a note in https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/mapstore-migration-guide/ indicating the update procedure would ok (currently says that if you're in a version below or equal to 2025.02 you don't need to do anything

Current Result

I get an error about missing table gs_ip_range (geostore.gs_ip_range)

15-Apr-2026 11:24:31.336 SEVERE [http-nio-127.0.0.1-8080-exec-1] org.apache.catalina.core.StandardContext.listenerStart Exception sending context initialized event to listener instance of class [org.spring
framework.web.context.ContextLoaderListener]
org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'geostoreEntityManagerFactory' defined in URL [jar:file:/var/lib/tomcat9/webapps/mapstore/WEB-INF/lib/geostore
-persistence-2.5.0.jar!/applicationContext-geostoreDatasource.xml]: Invocation of init method failed; nested exception is javax.persistence.PersistenceException: [PersistenceUnit: geostore] Unable to build
Hibernate SessionFactory; nested exception is org.hibernate.tool.schema.spi.SchemaManagementException: Schema-validation: missing table [geostore.gs_ip_range]

  • Not browser related

Other useful information

Activity

  1. aseques commented on Apr 15, 2026

    @aseques
    ContributorAuthor

    I applied in order the updates manually and the issue was fixed in my case (still it would be nice to have a bit more information about this on the upgrade procedure)

    • postgresql-migration-from-v.2.1.0-to-v2.3.0.sql
    • postgresql-migration-from-v.2.3.0-to-v2.4.0.sql
    • postgresql-migration-from-v.2.4.0-to-v2.4.1.sql
  2. tdipisa commented on Apr 15, 2026

    @tdipisa
    Member

    @aseques thank you for reporting.

    indicating the update procedure would ok (currently says that if you're in a version below or equal to 2025.02 you don't need to do anything

    Typically, to automate this process, you need to have the jpaPropertyMap[hibernate.hbm2ddl.auto] set to update.

    Anyway, we will specify it better in the migration guidelines.

  3. added this to the 2026.02.00 milestone on Apr 15, 2026
  4. added theissue type on Apr 15, 2026
  5. modified the milestones: 2026.02.00, 2026.01.01 on Apr 15, 2026
  6. aseques commented on Apr 15, 2026

    @aseques
    ContributorAuthor

    HI @tdipisa about the setting you comment, I read about it this morning here https://docs.mapstore.geosolutionsgroup.com/en/latest/developer-guide/database-setup/#database-creation-mode, but according to the documentation is discouraged to use so I left it untouched, if it's generally safe I will change the value

  7. tdipisa commented on Apr 15, 2026

    @tdipisa
    Member

    @aseques

    but according to the documentation is discouraged to use so I left it untouched, if it's generally safe I will change the value

    You're right to be cautious, especially when touching production environments. Running this directly in production without testing it in a QA/Dev environment first is generally not recommended.
    However, while it requires a controlled environment, this option is definitely helpful to streamline the DB update process and avoid doing everything manually.
    I usually suggest trying it in a local or staging environment first; once verified, it can save you a lot of manual work (depending on the update, of course).

  8. added a commit that references this issue on Apr 24, 2026
    19dcf21
  9. added a commit that references this issue on Apr 24, 2026
    96a97a4
  10. self-assigned this
    on Apr 24, 2026
  11. added a commit that references this issue on May 31, 2026
    0f5b4e6
  12. added a commit that references this issue on Jun 1, 2026
    96d6e15
  13. added a commit that references this issue on Jun 19, 2026
    acb4f07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Type

Projects

No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions