Project

Profile

Help

Issue #8926

closed

psycopg2 2.9 is causing database migrations to fial

Added by mdepaulo@redhat.com almost 3 years ago. Updated over 2 years ago.

Status:
CLOSED - CURRENTRELEASE
Priority:
Normal
Assignee:
Category:
-
Sprint/Milestone:
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

Related to Pulp - Issue #8925: psycopg2 2.9 is causing pulp_installer source installs to failMODIFIEDmdepaulo@redhat.comActions

Also available in: Atom PDF