Skip to content

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

@harsha448

Description

@harsha448

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions