fides icon indicating copy to clipboard operation
fides copied to clipboard

Fides push fails randomly with database query failed error

Open sanders41 opened this issue 3 years ago • 0 comments

Bug Description

Sometimes when running fides push demo_resources/ it will fail with an error.

Loading config from: /fides/.fides/fides.toml
Loading resource manifests from: demo_resources/
Taxonomy successfully created.
----------
Processing data_use resource(s)...
{'detail': {'error': 'a database query failed'}}

Re-running the same command with no other changes seems to fix the issue. See this issue for context.

In my testing I was able to reproduce this error, also on my first run. Then on a second run of the command it worked without error. Before starting the test I ran docker system prune -f --all --volumes to be sure I was starting fresh.

After the initial test I pruned the system and tried again. This time fides push demo_resources/ worked on the first try without error.

Steps to Reproduce

  1. Follow the quick start guide in the README to step 3.
  2. Sometimes this step will error, and sometimes it will work.

Expected behavior

Command should run without error.

Screenshots

If applicable, add screenshots to help explain your problem.

Environment

  • Version:
  • OS:
  • Python Version:
  • Docker Version:

Additional context

The error {'detail': {'error': 'a database query failed'}} provides enough to know it is an issue interacting with the database, but doesn't contain enough to know what the problem is.

sanders41 avatar Oct 13 '22 14:10 sanders41