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

Non-existing or expired scroll identifier when exporting collection / index from Kourou #161

Closed
tdislay opened this issue Oct 3, 2022 · 3 comments

Comments

@tdislay
Copy link

tdislay commented Oct 3, 2022

Expected Behavior

kourou index:export tenant-[group]-[name]
Should be able to dump collections with more than 2000 documents.
Same thing with kourou collection:export tenant-[group]-[name] [my-collection].

Current Behavior

I get the following error while dumping a collection with 13398 documents:

[X] Error stack: 
KuzzleError: Non-existing or expired scroll identifier.
       at WebSocketProtocol.query (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/kuzzle-sdk/src/protocols/abstract/Base.js:109:23)
       at Kuzzle._timeoutRequest (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/kuzzle-sdk/src/Kuzzle.js:742:34)
       at Kuzzle.query (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/kuzzle-sdk/src/Kuzzle.js:575:21)
       at DocumentSearchResult.next (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/kuzzle-sdk/src/core/searchResult/SearchResultBase.js:41:33)
       at JSONLDumper.dump (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/lib/support/dump-collection.js:105:43)
       at processTicksAndRejections (node:internal/process/task_queues:96:5)
       at async CollectionExport.runSafe (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/lib/commands/collection/export.js:30:9)
       at async CollectionExport.run (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/lib/common.js:98:17)
       at async CollectionExport._run (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/@oclif/command/lib/command.js:43:20)
       at async Config.runCommand (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/@oclif/config/lib/config.js:173:24)
       at async Main.run (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/@oclif/command/lib/main.js:27:9)
       at async Main._run (/home/skymer/.nvm/versions/node/v16.16.0/lib/node_modules/kourou/node_modules/@oclif/command/lib/command.js:43:20)
Error status: 404
Error id: services.storage.unknown_scroll_id (https://docs.kuzzle.io/core/2/api/errors/error-codes/services)
 [X] undefined

(I've tried with node 14 & updating kourou & using batch-size, but it has a limit)

Steps to Reproduce

  1. Import a collection with more than 2000 documents (see documents.jsonl.txt and mappings.json.txt) into your kuzzle: kourou collection:import [../../]
  2. Export the collection kourou collection:export tenant-[group]-[name] [collection]

Context (Environment)

Trying to export a collection in order to backup data
NodeJS 14 / 16
Kuzzle: 2.19.5
Kourou : kourou/0.24.2 linux-x64 node-v14.20.1

@Aschen
Copy link
Contributor

Aschen commented Oct 3, 2022

Seems related to #159, can you try extending the scroll duration with scrollTTL parameter?

@tdislay
Copy link
Author

tdislay commented Oct 3, 2022

My connection is too slow, that's the problem

@tdislay tdislay closed this as completed Oct 3, 2022
@Aschen
Copy link
Contributor

Aschen commented Oct 3, 2022

Then you should increase the scroll TTL so it won't timeout

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