Support #17934
closedProvide a GRSF enviroment on preproduction to test the publishing of GRSF records by grsf-services
100%
Description
The GRSF-PRE catalogue provided for testing is https://ckan-grsf.pre.d4science.org (accessible only to a list of public IP, the public access is denied). The catalogue is reachable by preproduction gateway at https://pre.d4science.org/group/dorne/data-catalogue (the VRE is /pred4s/preprod/Dorne
).
We have already generated a user (the grsf.publisher
) and a token (ddfda8a9-8594-4344-MASKED-TOKEN
) that have to be used for testing by grsf-services
of preproduction available at http://smart-grsf-d-d4s.d4science.org.
The FORTH (by @marketak@ics.forth.gr) has notified the following error:
2019-11-06 10:24:39 DEBUG GrsfPublisher:84 - publishing URL: https://smart-grsf-d-d4s.d4science.org/grsf-publisher-ws/rest/firms/stock/publish-product?gcube-token=MASKED-TOKEN 2019-11-06 10:24:39 DEBUG GrsfPublisher:88 - publishing content: {"stock_name":"Mackerel icefish - South Georgia","license_id":"CC-BY-SA-4.0","version":1.0,"d...."} 2019-11-06 10:24:39 ERROR GrsfPublisher:99 - Method failed: HTTP/1.1 500 Internal Server Error; Response body: {"id":null,"knowledge_base_id":null,"product_url":null,"error":"Error while performing GET. Request url was: https://ckan-grsf.pre.d4science.org//api/3/action/organization_show?id=firms&include_datasets=false&include_users=true CkanResponse{error=Ckan error of type: Not Found Error message:Not found Other fields:{}, success=false, help=https://ckan-grsf.pre.d4science.org/api/3/action/help_show?name=organization_show} CkanClient{catalogURL=https://ckan-grsf.pre.d4science.org, ckanToken=*****MASKED_TOKEN*******}"} 2019-11-06 10:24:39 ERROR GrsfPublisher:111 - Fatal transport error: java.lang.Exception: Method failed: HTTP/1.1 500 Internal Server Error; Response body: {"id":null,"knowledge_base_id":null,"product_url":null,"error":"Error while performing GET. Request url was: https://ckan-grsf.pre.d4science.org//api/3/action/organization_show?id=firms&include_datasets=false&include_users=true CkanResponse{error=Ckan error of type: Not Found Error message:Not found Other fields:{}, success=false, help=https://ckan-grsf.pre.d4science.org/api/3/action/help_show?name=organization_show} CkanClient{catalogURL=https://ckan-grsf.pre.d4science.org, ckanToken=*****MASKED_TOKEN*******}"}
The reported issue is on the CKAN-side. I believe that is due to the missing organizations (at the moment) on the GRSF-PRE catalogue, the forth is trying to publish into FIRMS
organization (that does not exist).
I'm going to create the list of GRSF organizations needed for publishing (like the GRF-ADMIN organizations, see at http://ckan-grsf-admin.d4science.org/api/action/organization_list)
Files