Orion refuses to start (location.coords_2dsphere index error) -


after upgrading orion 0.22.0 (applying the documented migration procedure), orion refuses start, existing following message:

info@10:51:50  contextbroker.cpp[1191]: connected mongo @ mongodb1:27017:orion  terminate called after throwing instance of 'mongo::operationexception'       what():  operationexception: { ok: 0.0, errmsg: "index name: location.coords_2dsphere exists different options", code: 85 } 

i'm using mongodb replica set database.

the solution issue (which have been observed in replica set environments) remove location.coords_2dsphere index, i.e. executing following command in mongo shell (connected primary node):

db.entities.dropindex({"location.coords": "2dsphere"}) 

in case of using orion in multiservice mode, have apply above command each 1 of tenant databases.

orion re-create index next time starts.


Comments

Popular posts from this blog

javascript - oscilloscope of speaker input stops rendering after a few seconds -

javascript - gulp-nodemon - nodejs restart after file change - Error: listen EADDRINUSE events.js:85 -

Fatal Python error: Py_Initialize: unable to load the file system codec. ImportError: No module named 'encodings' -