Orange-OpenSource / fiware-cepheus

FIWARE Cepheus - CEP for NGSI IoT gateways
GNU General Public License v2.0
17 stars 21 forks source link

change remote.url in docker container #62

Closed khanbaba closed 6 years ago

khanbaba commented 6 years ago

Hi, I used the below code to run my docker cepheus image: docker run -d --name cepheus1 -p 8080:8080 -p 8081:8081 orangeopensource/fiware-cepheus And my orion context broker is on 1026 port How can i change remote broker default value to forward updated to orion ?

thanks

marcc-orange commented 6 years ago

It is not clear to me if you want to use cepheus-cep or cepheus-broker, or both.

When using the fiware-cepheus docker image, both cepheus-cep and cepheus-broker are run using supervisord (this is more intended for demo purpose). You can modify the docker/supervisord.conf file to change the remote broker for Cepheus-Broker.

I would however recommend that you use the two Docker images dedicated to each component, for more info check fiware-cep/docker and fiware-broker/docker.

To configure the cepheus-broker, using the --remote-url=http://orion-server:port/path options (see Configuration section of the manual).

For the cepheus-cep, things are a bit diffrent as the remote broker can be configured for each statement (see Brokers and Providers fields in configuration).

khanbaba commented 6 years ago

Thanks Marc.

khanbaba commented 6 years ago

as the docs tell, the remote.url default value is: localhost:8082. so i changed my Orion to listen on port 8082, but still there is no message from cepheus broker to orion. what is wrong ? I think that any /v1/updateContext messages to cepheus broker must be forwarded to Orion automatically, is this true ?

marcc-orange commented 6 years ago

Yes, fiware-broker will forward all updateContext messages to the remote.url which is http://localhost:8082 by default. Check the logs for any error.

khanbaba commented 6 years ago

Yes there is the following error message on cepheus-broker:

WARN 1 --- [pool-2-thread-1] c.o.c.broker.controller.NgsiController: UpdateContext failed for http://localhost:8082: Connection refused java.net.ConnectionException: Connection refused

marcc-orange commented 6 years ago

So it does not seem like the problem is comming from cepheus... it looks like Orion is not responding on port localhost:8082.

khanbaba commented 6 years ago

Thank you very much

DavidCorral94 commented 6 years ago

Hello, did anyone get an solution for this? I tried to create a link between my Cepheus container and my Orion container but I still get connection refused. What could be happening?