exadel-inc / CompreFace

Leading free and open-source face recognition system
https://exadel.com/accelerator-showcase/compreface/
Apache License 2.0
5.71k stars 775 forks source link

502 Bad Gateway error occurs when pushing any button on the CompreFace app page on Mac. #602

Closed Shuto-Kinoshita closed 3 years ago

Shuto-Kinoshita commented 3 years ago

Describe the bug I followed the readme to get started to step 5 on Mac, but I got a 502 Bad Gateway error.

To Reproduce Steps to reproduce the behavior:

  1. Install Docker and Docker Compose
  2. Download the archive from our latest release: https://github.com/exadel-inc/CompreFace/releases
  3. Unzip the archive
  4. Open the terminal in this folder and run this command: docker-compose up -d
  5. Open the service in your browser: http://localhost:8000/login
  6. Push any button and update the page, then I got a 502 Bad Gateway error.

Expected behavior The next page will be displayed, successfully.

Screenshots スクリーンショット 2021-09-28 12 17 24

Desktop (please complete the following information):

Additional context None

Shuto-Kinoshita commented 3 years ago

From docker resources, I set the memory allocation to 4GB and the size of the swap to 2GB, and the error no longer occurs.

pospielov commented 3 years ago

there is a possibility that the servers didn't start when you open the browser. UI starts faster than the backend. Probably we need to add some loader for this case

Shuto-Kinoshita commented 3 years ago

there is a possibility that the servers didn't start when you open the browser. UI starts faster than the backend. Probably we need to add some loader for this case

Thank you very much. This time, we solved the problem by changing the resource. I'd like to try that method as well.