Aeronbroker / Aeron

Aeron is an Internet-of-Things middleware based on the OMA NGSI 9/10 standard.
Other
23 stars 9 forks source link

Running from docker queryContext internal Error #17

Closed Sypheos closed 7 years ago

Sypheos commented 7 years ago

Hi !

I just started running Aeron with docker. When I do queryContext after a updateContext on the same ID I receive nothing.

Docker cmd: docker run -t -p 8065:8065 -p 8060:8060 -p 5984:5984 fiware/iotbroker

Update:

http://localhost:8060/ngsi10/updateContext

Request

<?xml version="1.0" encoding="UTF-8"?>
<updateContextRequest>
    <contextElementList>
        <contextElement>
            <entityId type="Room" isPattern="false">
                <id>ConferenceRoom</id>
            </entityId>
            <contextAttributeList>
                <contextAttribute>
                    <name>temperature</name>
                    <type>degree</type>
                    <contextValue>20</contextValue>
                    <metadata>
                        <contextMetadata>
                            <name>ID</name>
                            <type>long</type>
                            <value>1</value>
                        </contextMetadata>
                    </metadata>
                </contextAttribute>
            </contextAttributeList>
        </contextElement>
    </contextElementList>
    <updateAction>UPDATE</updateAction>
</updateContextRequest>

Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<updateContextResponse>
    <errorCode>
        <code>200</code>
        <reasonPhrase>OK</reasonPhrase>
        <details></details>
    </errorCode>
</updateContextResponse>

Query:

http://localhost:8060/ngsi10/queryContext

Request

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryContextRequest>
    <entityIdList>
        <entityId isPattern="false" type="Room">
            <id>ConferenceRoom</id>
        </entityId>
    </entityIdList>
    <attributeList>
        <attribute>temperature</attribute>
    </attributeList>
</queryContextRequest>

Response

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<queryContextResponse>
    <contextResponseList/>
    <errorCode>
        <code>404</code>
        <reasonPhrase>CONTEXT ELEMENT NOT FOUND</reasonPhrase>
        <details>Discovery response: RECEIVER INTERNAL ERROR (details:  Connection Error - the URL: http://localhost:8075/ create an internal error!)</details>
    </errorCode>
</queryContextResponse>

Broker logs:

2017-04-13 15:14:45 INFO RestProviderController:371 - <--- NGSI-10 has received request for Context query resource ---> 2017-04-13 15:14:45 INFO RestProviderController:318 - ContentType: application/xml 2017-04-13 15:14:45 INFO RestProviderController:348 - Incoming request Valid:true 2017-04-13 15:14:45 INFO HttpConnectionClient:304 - IOException: Impossible to establish a connection with http://localhost:8075/:Connection refused 2017-04-13 15:14:45 INFO HttpConnectionClient:347 - Connection Closed! 2017-04-13 15:14:45 INFO Southbound:1011 - Response being parsed as JSON 2017-04-13 15:14:45 INFO IotBrokerCore:758 - 1 query Services found 2017-04-13 15:14:45 INFO CompositeEntityQueryService:57 - started composite entity query service 2017-04-13 15:14:45 INFO IotBrokerCore:884 - Result filter found and applied. 2017-04-13 15:14:45 INFO IotBrokerCore:903 - Trying to access Big Data repository

Is there something I should run before starting the broker ?

Best, Sylvain

Sypheos commented 7 years ago

Running : docker run -t -p 8065:8065 -p 8060:8060 -p 5984:5984 fiware/iotbroker:v5.4.3-standalone solve the problem.

Sorry for the issue