I have many rasters in a geopackage:

enter image description here

I want to publish all as one layer in GeoServer so I try to add a new GeoPackage (mosaic):

enter image description here

But I get the error enter image description here

The coverage store could not be saved. Failure message: Error persisting CoverageStoreInfoImpl[Orto] to workspaces/sdfsdfsdf/Orto/coveragestore.xml

How can I fix it?

  • Is the data directory writable by the user running the GeoServer process? Also, what is the nature of the rasters? GeoServer only supports RGB(A) images, does not support raster grids of the geophisical type, e.g., DEMs ) Jun 24, 2021 at 12:16
  • You need to turn up the logging level to developer in the global settings page, and then make the request again. Then edit your question with the relevant part of the log file.
    – Ian Turton
    Jun 24, 2021 at 12:18
  • @AndreaAime the directory wasnt writeable. I changed it and it works now. You can add that as an answer if you want to
    – BERA
    Jun 24, 2021 at 12:26
  • Does any of you know if it is possible to create an ImageMosaic from many rasters in one geopackage? I can only find examples using separate for example tif files
    – BERA
    Jun 24, 2021 at 12:34
  • 1
    Nope, that is not possible, nor in the short term plans. If you have the ability to code it, contact us on the developer list, if you have funding for it, contact the commercial support providers listed at geserver.org) Jun 24, 2021 at 15:16

1 Answer 1


The error seems to suggest your data directory is not writable. Try to change permissions on it.

  • (I set the environmental variable GEOSERVER_DATA_DIR to a folder where I have write permission)
    – BERA
    Jun 24, 2021 at 17:13

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.