Sylwia0506 / Projekt_IoT

1 stars 0 forks source link

Backend doesn't start #37

Closed sborys00 closed 1 year ago

sborys00 commented 1 year ago

I run both docker-compose files at once. Simulator seems to work fine image

But the backend is in a boot loop image

It fails at line #140 https://github.com/Sylwia0506/Projekt_IoT/blob/11ceccaace4647e31eb689f8a74112037fb8396d/taxi-backend/taxi_backend/settings.py#L138-L143

It looks like the backend can't connect to mqtt broker. Can someone confirm if this is a bug or is it just mine local env that is misconfigured? Can we update the README?

sborys00 commented 1 year ago

@Sylwia0506 @Roger1121 Can you check this? You were editing these lines recently, maybe you'll now better.

sborys00 commented 1 year ago

I tried using a shared network between two docker-compose files and it seems this could be the fix image

At least the error is different now image It fails later in the code execution so I guess the connection works now