Docker Won't Start PostgreSQL on Ubuntu 22.04

  • Is this your first time deploying Airbyte?: Yes
  • OS Version / Instance: Ubuntu 22.04
  • Memory / Disk: 8G / 200G
  • Deployment: Docker
  • Airbyte Version: What version are you using now?
  • Description: Upon following the instructions to launch the docker on a fresh install of Ubuntu, the server perpetually says this and postgres never loads:

airbyte-temporal | Waiting for PostgreSQL to startup.
airbyte-temporal | + nc -z db 5432
airbyte-temporal | + echo ‘Waiting for PostgreSQL to startup.’
airbyte-temporal | + sleep 1

I am doing exactly this on a fresh server install:

The logs come up empty for this:
docker logs airbyte-server | grep ERROR

2022-08-18 19:18:33 WARN i.a.d.c.DatabaseAvailabilityCheck(check):38 - Waiting for database to become available…

Well, lol, I ended up fixing this one… I think the ultimate solution was removing the snap version of docker and installing the apt version or something along those lines. It seems like it defaulted to snap and maybe app armor was causing issues? I don’t really know, but removing/reinstalling snap and removing/reinstalling the docker-compose with ‘apt-get install docker-compose’, then redoing the ‘docker-compose up’ seemed to do the trick!