Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Wirecloud Mashup: Error creating subscription in the context broker server: Connection Error #31

Open
arilwan opened this issue May 3, 2019 · 3 comments

Comments

@arilwan
Copy link

arilwan commented May 3, 2019

I am creating a wirecloud mashup using my own deployed Orion CB instance. On the wiring, I added an NGSI Source and an NGSI Entity to PoI.

In the NGSI Source settings I added the following configurations:

NGSI Source: http://193.136.xx.xx:1026/
NGSI Entity to PoI: https://ngsiproxy.lab.fiware.org
Use the FIWARE credentials of the user: Unchecked
Use the FIWARE credentials of the workspace owner: Unchecked
FIWARE-Service: environment
FIWARE-ServicePath: /basic
NGSI entity types: WeatherObserved, AirQualityObserved, NoiseLevelObserved
Id pattern: Empty
Monitored NGSI Attributes: location, temperature, relativeHumidity, illuminance, name, measurand, sonometerClass, particles, O3

NB: my orion CB in hosted on server IP 193.136.xx.xx Fiware-service, servicepath, entities and attributes are all defined and available with the Orion CB.

However, I keep receiving the following error in the NGSI Source logs.
a few seconds ago Error creating subscription in the context broker server: Connection Error
What is the problem here?

@aarranz
Copy link
Member

aarranz commented May 8, 2019

This means that ngsi-source cannot stablish a connection to http://193.136.xx.xx:1026/. Currently, this connection is stablished using WireCloud as proxy. So it seems that the connection cannot be stablished from the WireCloud container, you can check this by using the following command on the WireCloud container:

curl -v http://193.136.xx.xx:1026/version

@arilwan
Copy link
Author

arilwan commented May 8, 2019

Hi @aarranz

Thank you for the guide, I understand the issue now. port 1026 externally mapped to 53154.

Akil$curl -v http://193.136.xx.xx:53154/version
*   Trying 193.136.29.17...
* TCP_NODELAY set
* Connected to 193.136.xx.xx (193.136.xx.xx) port 53154 (#0)
> GET /version HTTP/1.1
> Host: 193.136.xx.xx:53154
> User-Agent: curl/7.63.0
> Accept: */*
> 
< HTTP/1.1 200 OK
< Connection: Keep-Alive
< Content-Length: 346
< Content-Type: application/json
< Fiware-Correlator: aabead72-717e-11e9-aee4-0242ac160007
< Date: Wed, 08 May 2019 10:47:25 GMT
< 
{
"orion" : {
  "version" : "2.1.0-next",
  "uptime" : "1 d, 18 h, 4 m, 18 s",
  "git_hash" : "7ae8c69b97cd875236b952322a6bd503debbd13d",
  "compile_time" : "Tue Feb 12 10:51:10 UTC 2019",
  "compiled_by" : "root",
  "compiled_in" : "4f8128ac7b5b",
  "release_date" : "Tue Feb 12 10:51:10 UTC 2019",
  "doc" : "https://fiware-orion.rtfd.io/"
}
}
* Connection #0 to host 193.136.xx.xx left intact

@arilwan arilwan closed this as completed May 8, 2019
@arilwan arilwan reopened this May 8, 2019
@arilwan
Copy link
Author

arilwan commented May 8, 2019

@aarranz

But the error still emerge after changing port in the NGSI source operator:
Error creating subscription in the context broker server: Connection Error

Noticed also that while I can execute curl http://193.136.xx.xx:53154/version via the terminal, this doesn't work via Postmann. Could this be permission error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants