codecov / self-hosted

Example of how to setup Codecov with docker compose
Other
409 stars 32 forks source link

Timeseries_dataset does not exist #23

Closed A-Helberg closed 8 months ago

A-Helberg commented 8 months ago

When using the docker-compose setup, once a coverage report has been uploaded

This error occurs (repeatedly) on the api container

File "/usr/local/lib/python3.9/site-packages/django/db/backends/utils.py", line 89, in _execute
    return self.cursor.execute(sql, params)\npsycopg2.errors.UndefinedTable: relation "timeseries_dataset" does not exist
cospotato commented 8 months ago

Same issue here

cospotato commented 8 months ago

Hi @chadwhitacre , please take a look

sondt-1245 commented 8 months ago

I saw the timeseries's migrations was applied but there are no tables created.

1mini2 commented 8 months ago

same issue here 🥲

eriksobolt commented 8 months ago

getting the same error on a fresh deploy

chadwhitacre commented 8 months ago

Can you help with this @eliatcodecov @trent-codecov?

thereallukl commented 8 months ago

Exec into codecov-api container and run python manage.py migrate --database timeseries

For some reason django automatically only executes migrations on default db (even though it says that all migrations were executed)

eliatcodecov commented 8 months ago

ah. Thanks @thereallukl ! It might be worth including this in our Run Codecov section of the docs, @trent-codecov . wdyt?

eliatcodecov commented 8 months ago

I've updated the Codecov documentation to point to this error and its solution posted by @thereallukl. I believe this issue can now be closed.