GitHub user leniervm closed a discussion: Problem starting a MQTT adapter

Hello,

I have high expectations for the integration of StreamPipes into my project, 
but I am encountering a particularly frustrating issue. I am utilizing Apache 
StreamPipes version 0.95.1 in a Docker-based setup, employing the minimal 
compose file which runs the backend, UI, CouchDB, InfluxDB, and 
extensions-iiot-minimal containers. However, whenever I attempt to start the 
MQTT connector with a correct and validated schema, the adapter displays a 
"Read timeout" error. I have verified the connection using a test broker, but 
the issue appears to be related to reaching the subnet at container ip:8090.

Adapter creation:

![Captura de pantalla 2024-07-15 
095955](https://github.com/user-attachments/assets/10690c65-d7b3-4b23-81cb-7e8d81ac8b3d)

Adapter list:

![image](https://github.com/user-attachments/assets/7d79d14a-9e5d-47d9-b1b3-b991143d13cb)

Error:

![image](https://github.com/user-attachments/assets/951042cb-5a04-4f86-ad22-e310f7368d48)

Full detail:

![image](https://github.com/user-attachments/assets/8c2a58a8-f7e7-4f53-8b69-5c1acdb9ec84)

Transcription: 
`org.apache.streampipes.commons.exceptions.connect.AdapterException: Adapter 
was not started successfully with url 
http://172.31.0.4:8090/api/v1/worker/stream/invoke`

Env file config with subnet default value:

![image](https://github.com/user-attachments/assets/ca4856c5-41a0-4583-bd1d-59a6d7ba43c6)

To check the Docker subnet, I used the command docker `inspect 
streampipes_spnet` and obtained the following information:

![image](https://github.com/user-attachments/assets/e2a4bf5b-d434-41bc-af04-1f7570dd0dd9)

The subnet IP 172.31.0.4 corresponds to the extensions-iiot-minimal container 
or any container replacing it, such as extensions-all-jvm. I have tested both 
configurations with the same result: the adapter attempts to reach the 
container IP at port 8090 via its API but times out. As I have not found any 
topics related to this issue, I am requesting your support to resolve this 
problem and ensure the application runs correctly. 

When I run `docker compose down`, the extensions-iiot-minimal container 
continues to run for an unexplained reason, and I must stop it manually:

![image](https://github.com/user-attachments/assets/cec53eb3-d67c-45e6-b0a6-94033b14bfc0)

Thank you very much.       




GitHub link: https://github.com/apache/streampipes/discussions/3030

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

Reply via email to