[Geoserver-users] Ingestion file problem in GeoServer

I’m in trouble about managing the flow from GeoBatch to GeoServer.

When I give an input tif file to GeoBatch, it starts the process to serve it to GeoServer, but it stops at 30%. So I noticed the lock and I deleted the image. Then, the process starts again (it fails, of course) and at the end in GeoServer is created an empty store.This is the error:

INFO FileBasedEventGenerator$GBEventListener - Event: FILE_ADDED /cartella/prova/immagine.tif

INFO LoggingProgressListener - Started

INFO LoggingProgressListener - Progressing 10.0% – Managing events

INFO LoggingProgressListener - Progressing 20.0% – Creating backup dir

INFO FileBasedEventConsumer - [pool-2-thread-5]: new element retrieved from the MailBox.

INFO LoggingProgressListener - Progressing 30.0% – Preprocessing event immagine.tif

At this point the process is stopped. When I delete the image, it starts again:

INFO LoggingProgressListener - Progressing 40.0% – Creating backup files

INFO FileBasedEventConsumer - [pool-2-thread-3]: accepted file /cartella/prova/immagine.tif

INFO FileBasedEventConsumer - [pool-2-thread-3]: new element processed.

INFO LoggingProgressListener - Progressing 50.0% – Running actions

INFO LoggingProgressListener - Progressing 0.0% – Running GEOBATCH Script(1/1)

INFO ScriptingAction - Runtime class-loading from moduleFolder → /cartella/prova/config/jars

INFO ScriptingAction - Adding script property: geoserverPWD : password

INFO ScriptingAction - Adding script property: geoserverUID : userid

INFO ScriptingAction - Adding script property: defaultNamespace : default

INFO ScriptingAction - Adding script property: restGeoserverURL : http://localhost:8181/geoserver

INFO ScriptingAction - Adding script property: maxNumberCoverage : 290

INFO Logger$info -

-------------------------------- GEOBATCH SCRIPT

INFO Logger$info - ***GeoServerRestReader------> it.geosolutions.geoserver.rest.GeoServerRESTReader@anonymised.com

INFO Logger$info - ***GeoServerRestPublisher------> it.geosolutions.geoserver.rest.GeoServerRESTPublisher@anonymised.com

INFO Logger$info - Filename input:immagine

INFO Logger$info - Check convention filename

INFO Logger$info - File is valid for convention

INFO Logger$info -

— 1. ACTION WORKSPACE

INFO Logger$info - WS inputFileName: workspace

INFO Logger$info - Retrieve ws from the geoserver…

INFO GeoServerRESTReader - Loading from REST path /rest/workspaces.xml

INFO Logger$info - lista dei workspaces.… it.geosolutions.geoserver.rest.decoder.RESTWorkspaceList@anonymised.com

INFO GeoServerRESTReader - Loading from REST path /rest/workspaces.xml

INFO Logger$info - WS workspace exists and applied.

INFO Logger$info -

— 2. ACTION STYLE

INFO Logger$info - Style inputFileName: style

INFO Logger$info - Retrieve styles from the geoserver…

INFO GeoServerRESTReader - Loading from REST path /rest/styles.xml

INFO Logger$info - STYLE style exists and applied.

INFO Logger$info -

— 3. ACTION DATE CHECK LAYER

INFO Logger$info - Check layer date :layer

INFO Logger$info - Retrieve layer with prefix :::immagine

INFO GeoServerRESTReader - Loading from REST path /rest/layers.xml

INFO Logger$info - MAX NUMBER COVERAGES:290

INFO Logger$info - NUMBER SAME COVERAGES LOADED:0

INFO Logger$info - NEW DATE arrived: date

INFO Logger$info -

— 4. PUBLISHED

INFO HTTPUtils - HTTP Created:

INFO GeoServerRESTPublisher - Store successfully created using ( file: /cartella/prova/immagine.tif)

WARN HTTPUtils - Bad response: code[500] msg[Internal Server Error] url[http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/immagine/coverages.xml] method[PostMethod]: :Failed to create reader from file:/cartella/prova//immagine.geotiff and hints Hints:

FORCE_AXIS_ORDER_HONORING = http

GRID_COVERAGE_FACTORY = GridCoverageFactory

TILE_ENCODING = null

EXECUTOR_SERVICE = java.util.concurrent.ThreadPoolExecutor@anonymised.com[Running, pool size = 3, active threads = 0, queued tasks = 0, completed tasks = 3]

LENIENT_DATUM_SHIFT = true

STYLE_FACTORY = StyleFactoryImpl

FORCE_LONGITUDE_FIRST_AXIS_ORDER = true

COMPARISON_TOLERANCE = 1.0E-9

FEATURE_FACTORY = org.geotools.feature.LenientFeatureFactoryImpl@anonymised.com

FILTER_FACTORY = FilterFactoryImpl

ERROR GeoServerRESTPublisher - Error creating coverage workspace:store:layer (null)

ERROR GeoServerRESTPublisher - Unable to create a coverage store for coverage: /cartella/prova/immagine.tif

INFO Logger$info -

— 5. ACTION INTERPOLATION

INFO Logger$info - Interpolation inputFileName: BL

WARN HTTPUtils - Bad response: code[404] msg[Not Found] url[http://localhost:8181/geoserver/rest/workspaces/workspace/coveragestores/store/coverages/store] method[PutMethod]: No such coverage: workspace,store,layer

INFO Logger$info - Interpolation update to BILINEAR

INFO Logger$info -

— 6. ACTION SET LAST_LOADED

INFO Logger$info - ---->class org.postgresql.Driver<----

INFO Logger$info - Split Name File to product Id properly Started…

INFO Logger$info - ---->[workspace, style, interpolation, srs, immagine, data]<----

INFO Logger$info - Id product identified is: immagine

INFO Logger$info - Connection Established…!!!

INFO Logger$info - SQL update for last_loaded Started…!!!

INFO Logger$info - SQL update Executed…!!!

INFO Logger$info - Last_loaded updated is: immagine

INFO Logger$info - Connection Properly Closed…!!!

INFO Logger$info - -------------------------------- DONE!!!

INFO BaseEventConsumer - There are 1 events left in the queue after last action (GEOBATCH Script)

INFO LoggingProgressListener - Progressing 100.0% – Running actions

INFO FileBasedEventConsumer - pool-2-thread-3 DONE!

INFO LoggingProgressListener - Completed