freme-project / freme-ner

Apache License 2.0
6 stars 1 forks source link

Create dataset fails on freme-live #157

Closed jnehring closed 7 years ago

jnehring commented 7 years ago

The API request to create a dataset on freme-live fails.

curl -X POST -H "Content-Type: text/turtle" -H "X-Auth-Token: {{token}}" -H "Cache-Control: no-cache" -H "Postman-Token: 012a116e-4250-c6d2-a291-07c8476d1733" -d '  <http://www.lib.ncsu.edu/ld/onld/00000326> <http://www.w3.org/2004/02/skos/core#prefLabel> "101 Communications" .
  <http://www.lib.ncsu.edu/ld/onld/00000326> <http://www.w3.org/2004/02/skos/core#altLabel> "101 Communications, Inc" .
  <http://www.lib.ncsu.edu/ld/onld/00000326> <http://www.w3.org/2004/02/skos/core#altLabel> "101 Communications, LLC" .
  <http://www.lib.ncsu.edu/ld/onld/00000326> <http://www.w3.org/2004/02/skos/core#altLabel> "101communications" .' "http://api.freme-project.eu/current/e-entity/freme-ner/datasets?language=en&name=arneTest&description=just%20for%20testing&token=XXXXX"

(admin token replaced)

produces

{
  "exception": "eu.freme.common.exception.FREMEHttpException",
  "path": "/e-entity/freme-ner/datasets",
  "message": "Error from server at http://rv2622.1blu.de/solrlive: /opt/solr/server/solr/elinker/data/index/_9fv2_Lucene50_0.pos",
  "error": "Internal Server Error",
  "status": 500,
  "timestamp": 1476087071659
}

Please fix this asap because we want to demo this next week on the frankfurt book fair.

jnehring commented 7 years ago

Happens also when a dataset is deleted on freme live. Both work on freme-dev

sandroacoelho commented 7 years ago

Hi @jnehring

Could you please try again? Seems that our FREME-LIVE index was corrupted. I fixed it using our backup.

jnehring commented 7 years ago

It works. Thank you!

One question: How can the index be corrupted?