Review Board Ticket #4921: Cannot load DB dump

6 views
Skip to first unread message

Matthew Blythe

unread,
Apr 7, 2021, 2:19:27 PM4/7/21
to Matthew Blythe, reviewboa...@googlegroups.com
To reply, visit https://hellosplat.com/s/beanbag/tickets/4921/

New ticket #4921 by mblythe

For Beanbag, Inc. Review Board

Cannot load DB dump

What version are you running?

ReviewBoard 4.0.0-rc1

What's the URL of the page containing the problem?

N/A

What steps will reproduce the problem?

rb-site manage <path> loaddb dumpfile.json

What is the expected output? What do you see instead?

I epxected it to attempt to load the DB dump. Instead, it errors out like this:

usage: rb-site manage /foobar/my_site loaddb [-h] [--version] [-v {0,1,2,3}] [--settings SETTINGS] [--pythonpath PYTHONPATH] [--traceback] [--no-color] rb-site manage /foobar/my_site loaddb: error: unrecognized arguments: dumpfile.json

What operating system are you using? What browser?

OS: Red Hat Enterprise Linux 7 Browser: N/A

Please provide any additional information below.

Using python 3.9.1

New Priority:Medium Type:Defect

Christian Hammond

unread,
Apr 7, 2021, 6:14:58 PM4/7/21
to Christian Hammond, Matthew Blythe, reviewboa...@googlegroups.com

New update by chipx86

For Beanbag, Inc. Review Board Ticket #4921

Thanks for the report! I see where this went wrong (Django changed how these management commands work, and it looks like this wasn't updated properly). We'll get this fixed for 4.0 final.

We are aiming to deprecate loaddb/dumpdb, as they just don't work well between releases of Django. Best bet in most situations is to use the database's native SQL dump/load tools for constructing a new database.

Status:
- New
+ Confirmed
Milestones:
+ Release-4.0
Tags:
+ Component:RB-Site
Assigned to:
+ chipx86
Reply all
Reply to author
Forward
0 new messages