FI Context Broker: Fatal error (error starting REST interface)

I have stopped a virtual machine where CentOS is starting a Context Broker instance. After restarting the system with a security tool, the latter gives a fatal error. See below log:

# contextBroker
INFO@13:18:32  contextBroker.cpp[1348]: Orion Context Broker is running
INFO@13:18:32  mongoGlobal.cpp[164]: Successful connection to database
INFO@13:18:32  contextBroker.cpp[1157]: Connected to mongo at localhost:orion
INFO@13:18:32  mongoGlobal.cpp[483]: Database Operation Successful ({ conditions.type: "ONTIMEINTERVAL" })
INFO@13:18:32  rest.cpp[901]: Fatal Error (error starting REST interface)

      

I am working on version 4.1.2 of Orion, CentOS 6, running in VirtualBox. Executed with su because I am getting permission denied on log file error. For information, I enabled bridging just before rebooting the VM.

Is it the fact that the broker was not closed correctly, that there is something blocking it from restarting? (PS. Yes, I know the admin manual has almost the same error message, but I don't see any solutions there)

Thank!

EDIT: One solution that works is to remove the contextBroker package and install it again. I wish there was a cleaner way!

EDIT: This issue is reproducible every time I kill the contextBroker app - then every time restarting doesn't help, reinstalling the package does.

+3


source to share


1 answer


Make sure there is no other broker instance (ps aux | grep contextBroker) using the same port. If there is another instance of the launching broker, the port will execute and the REST initialization will fail.



About running as root due to log file permissions ... Why not just change the owner of the log file?

0


source







All Articles