Atos-Research-and-Innovation / IoTagent-LoRaWAN

FIWARE IoT Agent for LoRaWAN protocol (with CayenneLpp and CBOR data models)
https://fiware-lorawan.readthedocs.io/en/latest/
Other
34 stars 40 forks source link

Empty reply from server #92

Open IoTopenTech opened 4 years ago

IoTopenTech commented 4 years ago

Hi, I have installed this agent using the recommeded docker-compose.yml.

It seems to be installed properly:

imagen

But if I issue this command: curl -v http://localhost:4061/iot/about

The result is:

imagen

How could I solve this. Kind regards

IoTopenTech commented 4 years ago

After updating node and npm to the latest versions, and replacing the docker-compose.yml with this one (https://stackoverflow.com/questions/57944790/fiware-ttn-iot-agent) it is working properly. `version: "3.1"

services: iot-agent: image: fiware/iotagent-lorawan:1.2.2 hostname: iot-agent container_name: fiware-iot-agent depends_on:

volumes: mongo-db: ~`

jfernandz commented 4 years ago

I'm having the same issue and I guess @IoTopenTech wants to mean this one docker-compose.yml file

version: "3.1"

services:
    iot-agent:
        image: fiware/iotagent-lorawan:1.2.2
        hostname: iot-agent
        container_name: fiware-iot-agent
        depends_on:
            - mongo-db
        expose:
            - "4041"
        ports:
            - "4041:4041"
        environment:
            - "IOTA_CB_HOST=orion"
            - "IOTA_CB_PORT=1026"
            - "IOTA_NORTH_PORT=4041"
            - "IOTA_REGISTRY_TYPE=mongodb"
            - "IOTA_MONGO_HOST=mongo-db"
            - "IOTA_MONGO_PORT=27017"
            - "IOTA_MONGO_DB=iotagent-lorawan"
            - "IOTA_PROVIDER_URL=http://iot-agent:4041"
            - IOTA_LOG_LEVEL=DEBUG # The log level of the IoT Agent

    mongo-db:
        image: mongo:3.6
        hostname: mongo-db
        container_name: db-mongo
        expose:
            - "27017"
        ports:
            - "27017:27017"
        command: --bind_ip_all --smallfiles
        volumes:
            - mongo-db:/data

    orion:
        image: fiware/orion
        hostname: orion
        container_name: fiware-orion
        depends_on:
            - mongo-db
        expose:
            - "1026"
        ports:
            - "1026:1026"
        command: -dbhost mongo-db

volumes:
    mongo-db: ~

Just to clarify. I'm going to try it.

jfernandz commented 4 years ago

Well, I would like to remark a few things.

In conclusion,

Finally, this is my suggestion for a newer and fixed docker-compose.yml

version: "3.1"                                                                                                                                                                                                                                                                  

services:                                                                                                                                                                                                                                                                       
    iot-agent:                                                                                                                                                                                                                                                                  
        image: ioeari/iotagent-lora                                                                                                                                                                                                                                             
        hostname: iot-agent                                                                                                                                                                                                                                                     
        container_name: fiware-iot-agent      
        depends_on:                                    
            - mongo-db                                 
        expose:                                                     
            - "4061"                                                
        ports:                                                      
            - "4061:4061"                                           
        environment:                                                
            - "IOTA_CB_HOST=orion"                                  
            - "IOTA_CB_PORT=1026"                                   
            - "IOTA_NORTH_PORT=4061"                                
            - "IOTA_REGISTRY_TYPE=mongodb"                          
            - "IOTA_MONGO_HOST=mongo-db"                            
            - "IOTA_MONGO_PORT=27017"                               
            - "IOTA_MONGO_DB=iotagent-lorawan"                      
            - "IOTA_PROVIDER_URL=http://iot-agent:4061"             

    mongo-db:             
        image: mongo:3.6  
        hostname: mongo-db
        container_name: db-mongo
        ports:
            - "27017:27017"
        command: --bind_ip_all --smallfiles
        volumes:
            - mongo-db:/data

    orion:
        image: fiware/orion
        hostname: orion
        container_name: fiware-orion
        depends_on:
            - mongo-db
        expose:
            - "1026"
        ports:
            - "1026:1026"
        command: -dbhost mongo-db

volumes:
    mongo-db: ~
thilko commented 3 years ago

I had the same issue. Any progress on updating the doc?