Welcome to the Linux Foundation Forum!

Chapter 11: ./e2e.sh is failing

cziaul
cziaul Posts: 39
edited October 2020 in LFS261 Class Forum

Looks like postgres is exiting out. Please suggest

Comments

  • In such cases, to debug, check the logs for the service which is failing i.e. postgres.

    docker-compose logs db

    Root Cause:

    The docker image for db is been updated in the repository by the authors of this docker image. Since then, its expecting you to either provide a password, or enable trust authentication ( Which is disabled by default).

    To fix this, you would have to add POSTGRES_HOST_AUTH_METHOD var and set it to trust.

      db: 
        image: postgres:9.4
        volumes: 
          - db-data:/var/lib/postgresql/data
        environment: 
          POSTGRES_HOST_AUTH_METHOD: trust
    
    

    This should fix failing postgres db container.

Categories

Upcoming Training