Uploaded image for project: 'GeoServer'
  1. GEOS-8366

Cannot add a Geopackage as a data store from within the data directory

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Medium
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.12.3, 2.13-beta
    • Component/s: None
    • Labels:
      None

      Description

      When adding a new datastore containing a Geopackage, which is located inside the data directory, I'm getting the following exception: Error creating data store, check the parameters. Error message: Unable to obtain connection: Cannot create PoolableConnectionFactory (path to 'data/mossel.gpkg': '/usr/local/tomcat/data' does not exist).

      As you can see, my geopackage file (mossel.gpkg) is located in a subdir called data in the GEOSERVER_DATA_DIR.

      On another host, with a different setup, the error message is a bit different: Error creating data store, check the parameters. Error message: Unable to obtain connection: Cannot create PoolableConnectionFactory (path to 'data/mossel.gpkg': '/data' does not exist)

      It seems there is an issue when a relative path is used to add a new Geopackage datastore. I'm able to apply a workaround by creating a symlink (ln -s) in the appropriate place.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              frank Frank Steggink
            • Votes:
              1 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: