GitHub user leniervm added a comment to the discussion: Problem starting a MQTT 
adapter

Successful result, @dominikriemer. The issue was that I had commented out the 
NATS service in the docker-compose.minimal.yml file with a # before 
understanding the internal flow of the application. Additionally, I believe 
there is an error in how the backend service is called:

`# StreamPipes services
  backend:
    image: "${SP_DOCKER_REGISTRY}/backend-nats:${SP_VERSION}"
    depends_on:
      - couchdb
    environment:
      - SP_PRIORITIZED_PROTOCOL=nats
    volumes:
      - backend:/root/.streampipes
    logging: *default-logging
    restart: unless-stopped
    networks:
      spnet:`

Specifically, the $SP_VERSION in the .env files is set to 0.95.1, but on Docker 
Hub, it appears as apachestreampipes/backend-nats:0.95.0-SNAPSHOT. We need to 
manually modify this to apachestreampipes/backend:0.95.1. Also, in the 
extensions-iiotminimal file, there is a `depends-on` attribute without a list, 
which we need to correct. Because We can run the compose file.

`extensions-iiot-minimal:
    image: "${SP_DOCKER_REGISTRY}/extensions-iiot-minimal:${SP_VERSION}"
    depends_on:
    logging: *default-logging
    restart: unless-stopped
    networks:
      spnet:`

Lastly, as you mentioned, changing - SP_PRIORITIZED_PROTOCOL=nats is the best 
choice for me due to the lightweight nature of the internal communication 
broker.

![image](https://github.com/user-attachments/assets/8b37c21c-d1fa-4d56-af5e-5dfa303e7e87)

Thanks a lot for your support, have a great day!


GitHub link: 
https://github.com/apache/streampipes/discussions/3030#discussioncomment-10067710

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to