FIWARE / tutorials.IoT-over-MQTT

:orange_book: FIWARE 203: Provisioning Ultralight with an alternative transport: IoT over MQTT
https://fiware-iotagent-ul.rtfd.io
MIT License
62 stars 44 forks source link

Error Mosquitto Docker #24

Open IgnacioAnguita opened 3 years ago

IgnacioAnguita commented 3 years ago

Hi,

When running the ./services start command I get the following error on the Mosquitto Container. Is able to start the rest of the containers except the mosquitto one. No errors on services create.

$ ./services start Force removal of mqtt-subscriber mqtt-subscriber not running Stopping containers Stopping fiware-orion ... done Stopping db-mongo ... done Removing fiware-orion ... done Removing db-mongo ... done Removing mosquitto ... done Starting five containers Orion, IoT-Agent, Tutorial, Mosquitto MQTT broker and a MongoDB database.

jason-fox commented 3 years ago

This issue is due to mounting a Docker volume using windows. The relevant docker-compose line is here: https://github.com/FIWARE/tutorials.IoT-over-MQTT/blob/master/docker-compose.yml#L148

 volumes:      
      - ./mosquitto/mosquitto.conf:/mosquitto/config/mosquitto.conf

If the existing bash script isn't working with your specific O/S, you will need to change this statement to hard-code your volume location c:\FIWARE\tutorial_mqtt/tutorials.IoT-over-MQTT - try looking at How to Create (and Manage) Docker Volumes on Windows for inspiration.