8000 15.1 database export recursion depth exceeded · Issue #1285 · tendenci/tendenci · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

15.1 database export recursion depth exceeded #1285

Open
CraigeHales opened this issue May 29, 2024 · 0 comments
Open

15.1 database export recursion depth exceeded #1285

CraigeHales opened this issue May 29, 2024 · 0 comments

Comments

@CraigeHales
Copy link
Contributor
CraigeHales commented May 29, 2024

apps->admin->database export->data export->generate
the file never becomes available, message in console says
CommandError: Unable to serialize database: maximum recursion depth exceeded in comparison

here's my notes

Using tendenci 15.1
below: a long traceback in a recursive plunge from attempting a database export. I'm pretty sure it has something to do with
the last line of tendenci/apps/events/models.py Event init

def init(self, *args, **kwargs):
super(Event, self).init(*args, **kwargs)
self.private_slug = self.private_slug or Event.make_slug() <<<< or maybe this one
self._original_repeat_of = self.repeat_of <<<<<<<< I'm guessing this is the trigger

eventually it crashes doing something with events.Organizer:
CommandError: Unable to serialize database: maximum recursion depth exceeded in comparison

the 19-line recursive loop is marked with ----

I found a breakpoint 8000 here to be useful, after hitting events.py#2409 init : db, init_list, row[model_fields_start:model_fields_end]

__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:123)   
----
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
get_instance_value_for_fields (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:772)
get_local_related_value (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:750)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py:220)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2606) 
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2605)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
----
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
get_instance_value_for_fields (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:772)
get_local_related_value (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:750)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py:220)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2606)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2605)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)

... long plunge

__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
get_instance_value_for_fields (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:772)
get_local_related_value (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:750)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py:220)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2606)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2605)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
----
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
get_instance_value_for_fields (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:772)
get_local_related_value (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related.py:750)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/fields/related_descriptors.py:220)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2606)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
_fetch_all (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:1881)
__len__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:380)
get (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:633)
refresh_from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:724)
__get__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query_utils.py:178)
__init__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/events/models.py:2605)
from_db (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/base.py:582)
__iter__ (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:122)
----
_iterator (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/db/models/query.py:516)
<listcomp> (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/serializers/python.py:93)
handle_m2m_field (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/serializers/python.py:93)
serialize (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/serializers/base.py:167)
serialize (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/serializers/__init__.py:134)
handle (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/commands/dumpdata.py:269)
execute (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/base.py:458)
call_command (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/__init__.py:194)
handle (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/tendenci/apps/explorer_extensions/management/commands/create_database_dump.py:72)
execute (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/base.py:458)
run_from_argv (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/base.py:412)
execute (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/__init__.py:436)
execute_from_command_line (/home/c/srv/venv_thinkc/lib/python3.10/site-packages/django/core/management/__init__.py:442)
<module> (/var/www/thinkc/manage.py:19)
_run_code (/usr/lib/python3.10/runpy.py:86)
_run_module_as_main (/usr/lib/python3.10/runpy.py:196)

It does this from both a manage.py command and the internally generated dump at http://thinkc.local:8000/explorer/export_database/

python manage.py create_database_dump 2 json 35

edit: formatting

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant
0