[Django] #32422: Error occurs when migrate db: relation is not existed.

21 views
Skip to first unread message

Django

unread,
Feb 4, 2021, 8:54:48 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
--------------------------------------+----------------------------------
Reporter: guhaibing | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 2.0
Severity: Normal | Keywords: migrate relation
Triage Stage: Unreviewed | Has patch: 0
Needs documentation: 0 | Needs tests: 0
Patch needs improvement: 0 | Easy pickings: 0
UI/UX: 0 |
--------------------------------------+----------------------------------
We migrated db when the docker container start,but database closed
connection before migrate finished becasue of some known issues。
Then we try aganin, and django report error: relation is not existed。
I think there was some data lost when the database error,and want to know
how to avoid this error。
Can we add database transaction althrough the migrate proccess? All
success or All fail.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.

Django

unread,
Feb 4, 2021, 9:54:11 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------

Reporter: guhaibing | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 2.0
Severity: Normal | Resolution:

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by Chris Jerdonek):

This looks like a copy-paste of #32415, and by the same person.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:1>

Django

unread,
Feb 4, 2021, 9:56:42 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------

Reporter: guhaibing | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 2.0
Severity: Normal | Resolution:

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by guhaibing):

That was closed by someone.

Replying to [comment:1 Chris Jerdonek]:


> This looks like a copy-paste of #32415, and by the same person.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:2>

Django

unread,
Feb 4, 2021, 10:06:13 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------

Reporter: guhaibing | Owner: nobody
Type: Bug | Status: new
Component: Migrations | Version: 2.0
Severity: Normal | Resolution:

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by Chris Jerdonek):

> That was closed by someone.

It was. Did you read the reason why? If someone closes your issue, you
shouldn't recreate it. If you disagree with them, you should reply in the
original issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:3>

Django

unread,
Feb 4, 2021, 10:08:51 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------
Reporter: guhaibing | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by Chris Jerdonek):

* status: new => closed
* resolution: => invalid


Comment:

See #32415 for why this is invalid.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:4>

Django

unread,
Feb 4, 2021, 10:11:05 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------
Reporter: guhaibing | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by guhaibing):

He only said don't, but no how.
English is hard to me, I spend 2 days to find the entry of trace report,
but no result.
Can you give the entry?Thanks.

Replying to [comment:3 Chris Jerdonek]:


> > That was closed by someone.
>
> It was. Did you read the reason why? If someone closes your issue, you
shouldn't recreate it. If you disagree with them, you should reply in the
original issue.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:5>

Django

unread,
Feb 4, 2021, 10:14:52 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------
Reporter: guhaibing | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 2.0
Severity: Normal | Resolution: invalid

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------

Comment (by Chris Jerdonek):

He said if you need help, this isn't the place to ask. He said you should
read this page if you need help:
https://code.djangoproject.com/wiki/TicketClosingReasons/UseSupportChannels
It has a link at the end.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:6>

Django

unread,
Feb 4, 2021, 11:25:09 PM2/4/21
to django-...@googlegroups.com
#32422: Error occurs when migrate db: relation is not existed.
----------------------------------+--------------------------------------
Reporter: guhaibing | Owner: nobody
Type: Bug | Status: closed
Component: Migrations | Version: 2.0
Severity: Normal | Resolution: duplicate

Keywords: migrate relation | Triage Stage: Unreviewed
Has patch: 0 | Needs documentation: 0
Needs tests: 0 | Patch needs improvement: 0
Easy pickings: 0 | UI/UX: 0
----------------------------------+--------------------------------------
Changes (by Mariusz Felisiak):

* resolution: invalid => duplicate


Comment:

Duplicate of #32415.

--
Ticket URL: <https://code.djangoproject.com/ticket/32422#comment:7>

Reply all
Reply to author
Forward
0 new messages