4921: Cannot load DB dump

mblythe
chipx86
chipx86

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

chipx86
#1 chipx86

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.

  • -New
    +Confirmed
  • +Release-4.0
  • +Component:RB-Site
  • +chipx86
chipx86
#2 chipx86

This tool has been removed in 4.0.

  • -Confirmed
    +WontFix