r-geoflow / geoflow

Tools to Orchestrate Geospatial (Meta)Data Management Workflows and Manage FAIR Services
https://github.com/r-geoflow/geoflow/wiki
Other
41 stars 14 forks source link

Error 500 while uploading to new workspace / store #275

Closed kikislater closed 2 years ago

kikislater commented 2 years ago

Uploading to new workspace create the following output :

-> PUT /geoserver/rest/workspaces/G2OIbc/datastores/sen2chain/file.shp?configure=none&update=overwrite HTTP/1.1
-> Host: gs.marbec-tools.ird.fr
-> Accept-Encoding: deflate, gzip, br, zstd
-> Cookie: TS015539af=01db6379078c1b8e33f89ca121028783fd9a40b337199ab18b8b48d600ac1f1f5c2d46aca2c1cd9931ae2ae3da44e0e84ce8ef91f2f733071318418cf0829c3bc070b01efd; JSESSIONID=5BB8CEB99B1675443358784228DE1541; TS0174aab3=01db6379070bee0cfb41ece6d9cb12e0d9024539e1199ab18b8b48d600ac1f1f5c2d46aca2357a155b4cf2e5ba4fda9e5aaeff52fa24088a00347a4e6e5fcbbba8e46554aa
-> Accept: application/json, text/xml, application/xml, */*
-> User-Agent: geosapi-0.6.3
-> Authorization: Basic YWRtaW46b25leWU=
-> Content-Type: application/zip
-> Content-Length: 13300
-> 
>> PK
<- HTTP/1.1 500 
<- Date: Fri, 22 Jul 2022 14:40:57 GMT
<- Content-Type: text/plain
<- Connection: keep-alive
<- X-Frame-Options: SAMEORIGIN
<- Access-Control-Allow-Origin: *
<- Access-Control-Expose-Headers: Access-Control-Allow-Origin,Access-Control-Allow-Credentials
<- Content-Encoding: gzip
<- Transfer-Encoding: chunked
<- 
No encoding supplied: defaulting to UTF-8.
Error in self$fun(self, entity, config) : 
  Error during Geoserver file upload. Aborting 'geosapi' action!
De plus : Messages d'avis :
1: Dans asMethod(object) : NAs introduits lors de la conversion automatique
2: Dans asMethod(object) : NAs introduits lors de la conversion automatique
3: Dans super$initialize(xml = xml, id = private$xmlElement, value = value,  :
  No ISO 'MD_ProgressCode' codelist entry for value ''
Erreur dans withVisible(...elt(i)) :
Workflow 'espace-dev-shp-workflow' failed, check logs at: /home/sylvain/Documents/IRD/geoflow/EspaceDev/jobs/20220722184050/job-logs.txt
kikislater commented 2 years ago

Before modifications, manually changes the patch allow successfull upload to Geoserver using Geoflow

Created by Geoflow :

image

Modified by hand :

image

Documentation from Geoserver show file: without // https://docs.geoserver.org/stable/en/user/data/webadmin/stores.html#edit-a-store

eblondel commented 2 years ago

Indeed! , Just checked and actually i realized i didnt had pushed the very same fix when i tried last time.. thanks for this!!

juldebar commented 2 years ago

@wheintz it might explain some issues we discuss since long time now....

wheintz commented 2 years ago

Great! Many thanks to mister Slater :-)