Reputation: 352
Good, I changed the access port to mongodb and now the contextBroker does not load me mongo since I understand that by default this is 27017
How can I change the port of the mongo contextBroker to new?
Error:
{
"error": "InternalServerError",
"description": "Database Error (collection: orion.entities - count (): {_id.id: & quot; ARMpalmerillas07 & quot ;, _id.type: & quot; GreenHouse & quot ;, _id.servicePath: {$ in: [/ ^ / ARMpalmerillas $ /]}} - exception: socket exception [CONNECT_ERROR] for localhost: 27017 (127.0.0.1) failed) "
}
a greeting
Upvotes: 2
Views: 110
Reputation: 1709
I never tried to change default port of Mongo, but I can see in the official documentation of Orion Context Broker that there is a property called BROKER_DATABASE_HOST that you could change to point to specific Mongo running instance. Then use your Mongo host and port instead of default values localhost and 27017.
I would try to change the value of this property with something like this:
BROKER_DATABASE_HOST=x.x.x.x:my_port
Also if you are running Orion Context Broker from source code I think that you could pass your values as arguments to the binary like this:
sudo contextBroker -db orion -dbhost localhost:my_port -dbuser user -dbpwd password
Let me know if it works for you.
Regards!
Upvotes: 1