denshoproject / ddr-local

Web UI used for interacting with DDR collections and entities on a local machine.
Other
3 stars 0 forks source link

collection creation error #269

Closed pkikawa closed 4 years ago

pkikawa commented 4 years ago

clicking on new collection throws this failure message, though the collection is successfully created and is listed in thew webui. collection_creation.zip

4.0.0-rc1 entiat

pkikawa commented 4 years ago

getting the same message when editing collection

gjost commented 4 years ago

See https://github.com/densho/ddr-local/issues/268

This happens when using the current DDR with an old Elasticsearch server e.g. 2.4. I can't fix having the wrong server but ddr-local commit 9d16e3d for package ddrlocal-rc_4.0.0-rc3~deb9 should catch the RequestErrors so the program doesn't crash. Records in the local Elasticsearch will not be updated of course.

pkikawa commented 4 years ago

error when creating collection RequestError(400, u'invalid_type_name_exception', {u'status': 400, u'error': {u'rootcause': [{u'reason': u"Document mapping type name can't start with ''", u'type': u'invalid_type_name_exception'}], u'type': u'invalid_type_nameexception', u'reason': u"Document mapping type name can't start with ''"}})

pkikawa commented 4 years ago

rc3

gjost commented 4 years ago

rc3

What does this mean?

sarabeckman commented 4 years ago

We're seeing this error in ddrlocal-rc_4.0.0-rc3~deb9 package

gjost commented 4 years ago

I set up a fresh Debian 9 VM, installed ddrlocal-rc_4.0.0-rc3~deb9_amd64.deb on it, pointed it at another VM that's running Elasticsearch 7, and was able to successfully create a collection. NOTE: DDR no longer works with Elasticsearch 2.4 NOTE: You need to set up an Elasticsearch 7.4 server, then edit /etc/ddr/ddrlocal-local.cfg on the VM, setting [local] docstore_host to point to the new ES7.

GeoffFroh commented 4 years ago

Turns out to be configuration issue.