Actions
Issue #8926
closedpsycopg2 2.9 is causing database migrations to fial
Start date:
Due date:
Estimated time:
Severity:
2. Medium
Version:
Platform Release:
OS:
Triaged:
Yes
Groomed:
Yes
Sprint Candidate:
No
Tags:
Sprint:
Sprint 99
Quarter:
Description
During database migrations:
File "/usr/local/lib/pulp/lib/python3.7/site-packages/django/db/backends/postgresql/utils.py", line 6, in utc_tzinfo_factory
raise AssertionError("database connection isn't set to UTC")
AssertionError: database connection isn't set to UTC
https://github.com/psycopg/psycopg2/issues/1293
It happens with 2.9 and 2.9.1.
Presumably 2.9.2 will fix it, many projects are affected.
pulp_installer is affected, but only on source (master branch) installs.
I have worked around it in the installer itself with #8925.
Related issues
Actions
Pin psycopg2 to < 2.9
More info:
https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
https://github.com/psycopg/psycopg2/issues/1293
fixes #8926