rethinkdb-python icon indicating copy to clipboard operation
rethinkdb-python copied to clipboard

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

Open harsha448 opened this issue 3 years ago • 5 comments

/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'

harsha448 avatar Sep 30 '22 17:09 harsha448

Are you using a fresh install of rethinkdb?

Some context would be helpful....

lsabi avatar Sep 30 '22 19:09 lsabi

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

harsha448 avatar Oct 06 '22 05:10 harsha448

And do your tables have the needed columns?

Do also the "internal" tables have those columns?

lsabi avatar Oct 06 '22 20:10 lsabi

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

harsha448 avatar Oct 10 '22 06:10 harsha448

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

lsabi avatar Oct 12 '22 20:10 lsabi