ContextBroker不在localhost上运行

时间:2015-03-04 11:43:11

标签: fiware-orion

我尝试在localhost中使用centosbroker,并且服务启动,但是在30秒内,服务停止automaticall,没有错误,我尝试使用rest客户端连接并收到错误0。

[alex@alex ~]$ contextBroker --version
0.19.0   
Copyright 2013 Telefonica Investigacion y Desarrollo, S.A.U Orion Context Broker is free software: you can redistribute it and/or modify it under the terms of the GNU Affero General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.    
Orion Context Broker is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Affero General Public License for more details.    
Telefonica I+D

[root@alex alex]# contextBroker -fg -t 0-255
DEBUG@15:18:25 paConfig.cpp[892]: setting trace levels to '0-255'
DEBUG@15:18:25 paConfig.cpp[893]: Leaving function paConfigActions
DEBUG@15:18:25 contextBroker.cpp[1341]: dbName: 'orion'
INFO@15:18:25 contextBroker.cpp[1348]: Orion Context Broker is running
DEBUG@15:18:25 contextBroker.cpp[1144]: dbName: 'orion'
DEBUG@15:18:25 MongoGlobal.cpp[101]: dbName: 'orion'    
DEBUG@15:18:25 sem.cpp[107]: mongoConnect taking the 'mongo' semaphore for 'connecting to mongo'    
DEBUG@15:18:25 sem.cpp[109]: mongoConnect has the 'mongo' semaphore  
ERROR@15:18:25 MongoGlobal.cpp[123]: Database Startup Error (cannot connect to mongo - doing 100 retries with a 1000 microsecond interval)

1 个答案:

答案 0 :(得分:1)

错误跟踪:

Database Startup Error (cannot connect to mongo - doing 100 retries with a 1000 microsecond interval)

表示Orion Context Broker在启动时无法连接到MongoDB。请检查您是否正确安装了MongoDB(默认情况下在localhost中,如果您想更改此设置,请查看this section in the Orion Administration Manual)。