Reputation: 66
I'm trying to start the CB from console with this config:
contextBroker -port 1026 -logDir /var/log/contextBroker -pidpath /var/run/contextBroker/contextBroker.pid -dbhost mi_db_host -db orion -multiservice -t 0-255 -logLevel DEBUG
The CB is not started and this message is returned by console:
terminate called after throwing an instance of 'mongo::MsgAssertionException'
what(): wrong type for field ( 0 ) 3 != 2
Upvotes: 1
Views: 49
Reputation: 12294
This is typically due to the migration procedure for Orion 1.3.0 has not been done. Please, have a look to this piece of documentation.
As mentioned in Orion 1.3.0 release notes:
Important note: the DB model has changes regarding the previous version. Thus, a migration procedure on existing data has to be applied (or DB has to be dropped), see details here [it referst to the link in the first paragraph of this answer]. Not applying this procedure could make CB to crash.
Another solution is just to drop the orion DB... although doing so you will lost existing data, of course.
Upvotes: 1