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

Encountering primary key error while running rethinkdb restore for rethinkdb 2.4 version #281

Open
harsha448 opened this issue Sep 30, 2022 · 5 comments

Comments

@harsha448
Copy link

/usr/bin/rethinkdb restore backup.tar.gz -c "server_ip" --password-file ./password.txt --no-secondary-indexes --force
Extracting archive file...
Done (2 seconds)
Importing from directory...
Traceback (most recent call last):
File "/usr/local/bin/rethinkdb-restore", line 8, in
sys.exit(main())
File "/usr/local/lib/python3.7/site-packages/rethinkdb/_restore.py", line 339, in main
do_restore(options)
File "/usr/local/lib/python3.7/site-packages/rethinkdb/_restore.py", line 315, in do_restore
_import.import_tables(options, sources)
File "/usr/local/lib/python3.7/site-packages/rethinkdb/_import.py", line 1315, in import_tables
.pluck(["db", "name", "primary_key"]),
File "/usr/local/lib/python3.7/site-packages/rethinkdb/_import.py", line 1311, in
for x in options.retryQuery(
KeyError: 'primary_key'

@lsabi
Copy link
Contributor

lsabi commented Sep 30, 2022

Are you using a fresh install of rethinkdb?

Some context would be helpful....

@harsha448
Copy link
Author

Below is the rethinkdb version which we are using right now..
rethinkdb 2.4.2 (GCC 4.8.5)

We are encountering same error whether i try to use restore command or after extracting the backup dump file and running import command

@lsabi
Copy link
Contributor

lsabi commented Oct 6, 2022

And do your tables have the needed columns?

Do also the "internal" tables have those columns?

@harsha448
Copy link
Author

Yes we do have primary key for the table..Even when i tried with import command ,passing the primary key facing the same error.

@lsabi
Copy link
Contributor

lsabi commented Oct 12, 2022

Does the problem occur even with https://github.com/BOOMfinity/GoThink ?

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

2 participants