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

nautobot-server dumpdata ; Unable to serialize database #1037

Closed
jifox opened this issue Oct 29, 2021 · 3 comments · Fixed by #1046
Closed

nautobot-server dumpdata ; Unable to serialize database #1037

jifox opened this issue Oct 29, 2021 · 3 comments · Fixed by #1046
Assignees
Labels
type: documentation Improvements or additions to documentation

Comments

@jifox
Copy link
Contributor

jifox commented Oct 29, 2021

Environment

  • Python version: 3.8.10
  • Nautobot version: v1.1.4

Steps to Reproduce

  1. start "nautobot-server dumpdata > output.txt

Expected Behavior

All data is dumped

Observed Behavior

CommandError: Unable to serialize database: cursor "_django_curs_140149812463424_sync_97" does not exist

@glennmatthews
Copy link
Contributor

Thanks for the report! Due to details of Nautobot's database model, there are several tables you presently need to exclude from the dump and several others you may wish to exclude as well. Specifically, at a minimum you will need --exclude extras.job.

See https://nautobot.readthedocs.io/en/latest/installation/migrating-from-postgresql/#export-data-from-postgresql for a recommended complete dumpdata command. I recognize that this page in the docs is not easily discoverable at the moment - if there are other doc pages where it would be helpful to link to this from, a documentation update pull request would be more than welcome!

@glennmatthews glennmatthews added the type: documentation Improvements or additions to documentation label Oct 29, 2021
@jifox
Copy link
Contributor Author

jifox commented Oct 29, 2021

Thanks @glennmatthews

Following the description the export / import was successful

@jifox
Copy link
Contributor Author

jifox commented Oct 29, 2021

I think the The Nautobot Server Command page will be a good place for referencing the dumpdata and loaddata command

https://nautobot.readthedocs.io/en/latest/administration/nautobot-server/#the-nautobot-server-command

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 5, 2022
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
type: documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants