Creating Store in GeoServer using ImageMosaic Plugin gives Error?

Check the file system permissions for your data directory.

Your servlet container like Tomcat or jetty needs to be able to read AND write files in the directory.

I had the same error using linux bu after correcting the permissions for that specific directory (chown -R tomcat7:tomcat ) everything was fine.


Try to put your geotiffs in a directory like this:

...\webapps\geoserver\data\data\myGeoTiffs

Much more, when creating you store, put this in the Connection Parameters URL:

file:data/myGeoTiffs

I've tried also to reproduce your error on my systems but I wasn't able to do it. (In my case everything works well even when I load the tiffs from anywhere outside the GeoServer data directory).

I think there could be another two possible causes:

1) Something wrong with your data:

Therefore, is it possible for you to upload on dropbox.com a zip with your data to be tested outside your computer? If it loads ok on mine computer then your ImageMosaic Plugin could be incompatible with your GeoServer version.

2) If the error appears again, then maybe the GeoTiffs wasn't properly produced:

In this case:

a) You could use gdal_translate, which could clean up the errors in the GeoTiffs headers.

b) Another approach would be to produce a vrt for your tiles. I've upload already such a mosaic here, for you, to test it.


Also, there is possible to see important hints about the error, when you try to create the store, if you check the GeoServer log.