ImageMosaic storing NetCDF index on GeoServer Repository fails to harvest new granules

Description

I set up a NetCDF image mosaic using the store-based auxiliary index (StoreName config)

The first granules harvest, on store creation, works: I have correct main and auxiliary indexes in the PostGis tables.

When trying to harvest a new mosaic granule via REST, the operation fails.

Example:
curl -v -u admin:geoserver -H "Content-type: text/plain" -d "file:/full/path/to/netcdf_file.nc" "http://localhost:9080/geoserver/rest/workspaces/test_workspace_name/coveragestores/test_store_name/external.imagemosaic"

GeoServer log as follows:

Environment

None

Status

Assignee

Daniele Romagnoli

Reporter

Gnafu

Triage

None

Fix versions

Affects versions

2.14-RC

Components

Priority

Medium
Configure