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
Updated by mdepaulo@redhat.com over 3 years ago
- Related to Issue #8925: psycopg2 2.9 is causing pulp_installer source installs to fail added
Updated by daviddavis over 3 years ago
- Status changed from NEW to ASSIGNED
- Assignee set to daviddavis
- Sprint set to Sprint 99
Updated by pulpbot over 3 years ago
- Status changed from ASSIGNED to POST
Added by daviddavis over 3 years ago
Updated by daviddavis over 3 years ago
- Status changed from POST to MODIFIED
Applied in changeset pulpcore|a756179a499c02bf38247a069280c88622da414c.
Updated by pulpbot over 3 years ago
- Status changed from MODIFIED to CLOSED - CURRENTRELEASE
Actions
Pin psycopg2 to < 2.9
More info:
https://github.com/django/django/commit/837ffcfa681d0f65f444d881ee3d69aec23770be
https://github.com/psycopg/psycopg2/issues/1293
fixes #8926