prakhar1989 / FoodTrucks

:truck: San Francisco's finger-licking street food now at your fingertips.
431 stars 421 forks source link

Problem with docker compose #40

Open johnfung95 opened 3 years ago

johnfung95 commented 3 years ago

When I use docker-compose up command, there is a problem with foodtrucks_web_1 and I don't know why. web_1 | /usr/local/lib/python3.6/dist-packages/requests/__init__.py:91: RequestsDependencyWarning: urllib3 (1.26.6) or chardet (3.0.4) doesn't match a supported version! web_1 | RequestsDependencyWarning) web_1 | Unable to connect to ES. Retrying in 5 secs... web_1 | Unable to connect to ES. Retrying in 5 secs... web_1 | Unable to connect to ES. Retrying in 5 secs... web_1 | Out of retries. Bailing out... foodtrucks_web_1 exited with code 1 It just fails to create a container for FoodTrucks for me.

I am using Ubuntu vm in VirtualBox of a Windows 10 Environment. Please help, thank you.

ngonam2403 commented 3 years ago

I have the same problem, and a hotfix is adding time.sleep(15) or time.sleep(20) in flask-app/app.py to wait for complete loading of elasticsearch. image