Skip to content

Bug Report: Permission error when using db example #96

@hphu3

Description

@hphu3

Describe the bug
We've configured the database according to the postgres testing example in the docs: https://circleci.com/docs/databases/#postgresql-database-testing-example

when running the image step, there is a
could not change directory to "/home/circleci/project": Permission denied
and
Build was canceled

To Reproduce
Clone the example config from the docs and create a new repo.

Expected behavior
Expected the image to load without any errors

Workarounds
The tests still seem to run, can this message be safely ignored?

Screenshots and Build Links
Screen Shot 2023-06-30 at 2 35 03 PM

Here's our test repo: https://github.com/inventables/psql-test and the build: https://app.circleci.com/pipelines/github/inventables/psql-test/1/workflows/cba69c18-14c4-4627-a095-17007117e2b2/jobs/1

Additional context
Add any other context about the problem here.
The image has a WORKDIR /home/circleci/project command. I'm not sure what the reasoning is for it or if it's needed.
https://hub.docker.com/layers/cimg/postgres/13.11/images/sha256-dd0031cb27d079e6bcfdbc3c73363246ace95ddad007257887d91c2cefe11a4d?context=explore

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions