eclipse-basyx / basyx-java-server-sdk

MIT License
55 stars 45 forks source link

Problem with Adding DataBridge to Docker-Compose File #326

Open CanAraz22 opened 3 months ago

CanAraz22 commented 3 months ago

Hello,

I was trying out the examples (https://github.com/eclipse-basyx/basyx-java-server-sdk/tree/main/examples) provided before the most recent released update and was looking to add the DataBridge as an off-the-shelf component to the provided Docker-Compse file.

My goal is to retrieve the data from a datasource (HTTP endpoint) and push it via DataBridge into the SubmodelElements.

I have encountered some difficulties and am hoping you can help me with them.

"Datasource": The datasource (value_generator) is a Python script that generates new values with each GET request. value_generator.txt start_value_generator.txt

"AAS Server": docker-compose.txt mosquitto.conf.txt aas-env-porperties.txt sm-registry.txt aas-registry.txt

".AASX" AAS.zip

"Databridge-Config.": aasserver.txt httpconsumer.txt routes.txt timerconsumer.txt start_databridge.txt

The problem that I am encountering is as follows:

Part 1: problem_1

Part 2: problem_2

Thank you in advance.

FriedJannik commented 3 months ago

Hi @CanAraz22, Thank you for raising an issue, we will take a look at it and get back to you.

aaronzi commented 3 months ago

Hello @CanAraz22,

looking at the error you get it seems like your python server can't be reached by the DataBridge. The DataBridge receives a connection-refused when accessing the server. Please check if your python program works as expected. Also make sure that if the python server runs in a container that localhost won't work. Please check if the port you are trying to use is not already occupied.

CanAraz22 commented 3 months ago

Hello @aaronzi,

thank you for the quick response. I managed to resolve my previous issue, but I am now facing a new problem. The DataBridge successfully retrieves data from the datasource and sends it to the specified endpoint. However, the data is not being processed correctly:

"the working DataBridge": Error

"final result": Output

While the value keeps changing with each new GET request, the output '{' stays the same. I hope that you can help me further.

Thank you in advance.

aaronzi commented 3 months ago

Is the DataBridge configuration still the same? It would be helpful if you could send the entire project as a .zip file containing a docker-compose.yml file. This way I can just download and execute it.

CanAraz22 commented 2 months ago

Hello @aaronzi,

thank you for the quick response. Here is the entire project: aas_basyx_project.zip