------------------------------------------------------------------------------
To reply, visit https://hellosplat.com/s/beanbag/tickets/4920/
------------------------------------------------------------------------------
New ticket #4920 by mblythe
For Beanbag, Inc. > Review Board
Status: New
Tags: Priority:Medium, Type:Defect
------------------------------------------------------------------------------
Crash while running 'rb-site manage <path> dumpdb'
==============================================================================
# What version are you running?
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> dumpdb'
# What is the expected output? What do you see instead?
I expect the command to progress to 100% and exit successfully. Instead, it
errors out at about 43%.
Output (filepaths changed because reasons):
Traceback (most recent call last):
File "/foobar/python3_user_packages/bin/rb-site", line 8, in <module>
sys.exit(main())
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/reviewboard/cmdline/rbsite.py",
line 2706, in main
command.run(site, options)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/reviewboard/cmdline/rbsite.py",
line 2476, in run
site.run_manage_command(manage_command, manage_args)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/reviewboard/cmdline/rbsite.py",
line 1047, in run_manage_command
manage_util.execute()
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/management/__init__.py",
line 356, in execute
self.fetch_command(subcommand).run_from_argv(self.argv)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/management/base.py",
line 283, in run_from_argv
self.execute(*args, **cmd_options)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/management/base.py",
line 330, in execute
output = self.handle(*args, **options)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/reviewboard/admin/management/commands/dumpdb.py",
line 52, in handle
value = serializer.serialize([obj])
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/serializers/base.py",
line 97, in serialize
self.end_object(obj)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/serializers/json.py",
line 64, in end_object
json.dump(self.get_dump_object(obj), self.stream, **self.json_kwargs)
File "/foobar/lib/python3.9/json/__init__.py", line 179, in dump
for chunk in iterable:
File "/foobar/lib/python3.9/json/encoder.py", line 431, in _iterencode
yield from _iterencode_dict(o, _current_indent_level)
File "/foobar/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/foobar/lib/python3.9/json/encoder.py", line 405, in _iterencode_dict
yield from chunks
File "/foobar/lib/python3.9/json/encoder.py", line 438, in _iterencode
o = _default(o)
File
"/foobar/python3_user_packages/lib/python3.9/site-packages/django/core/serializers/json.py",
line 124, in default
return super(DjangoJSONEncoder, self).default(o)
File "/foobar/lib/python3.9/json/encoder.py", line 179, in default
raise TypeError(f'Object of type {o.__class__.__name__} '
TypeError: Object of type bytes is not JSON serializable
# What operating system are you using? What browser?
Red Hat Enterprise Linux 7
# Please provide any additional information below.
Using a postgresql 11.5 DB backend. Using python 3.9.1. Attempted the dump
immediately after updating from ReviewBoard 3.0.20
------------------------------------------------------------------------------
--
You received this message because you are subscribed to the Google Groups
"reviewboard-issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/reviewboard-issues/20210407181350.14748.80847%40ip-10-1-54-209.ec2.internal.