UVicMartletplace / martletplace

Recreating FB Marketplace for Students - UVic SENG499 Capstone Project
1 stars 0 forks source link

PGSync Dying on build #271

Open GDeane opened 2 days ago

GDeane commented 2 days ago

Describe the bug

Sometimes, when attempting to build the app with docker-compose up --build, PGSync fails to index 2000 or so listings and exits with code 1. It looks as follows:

Image

Sometimes it works, sometimes it doesn't. When it works, it works like a dream (search works with filtering, pagination, etc. and recommender tunes based on the search results all on the frontend):

Image

When it works, I was able to add a listing on the frontend, and it immediately showed up in my searches afterwards, confirming that pagination was working.

To Reproduce

Steps to reproduce the behaviour:

  1. Run docker-compose down
  2. Run docker-compose up --build
  3. Look for the following in the logs (this marks a failure):

Image

May require a few tries to reproduce, and may depend on your computer.

Expected behaviour

This issue doesn't ever happen, or there is a retry mechanism to ensure it eventually works in a few tries

GDeane commented 1 day ago

Ideas (before all of them, nuke/remove all stopped containers)