openneuro: CLI upload PushRejectedError
What went wrong?
I tried to upload a new MRS dataset addition to an already-existent dataset.
Expected behavior
Expected an error-free upload since it validated without errors.
How to reproduce
cdto my dataset update’s directory- execute
deno run --reload -A jsr:@openneuro/cli upload -d ds005917 .
Desktop
N/A
Phone
N/A
Additional information
This is the ending of stdout:
Summary: Available Tasks: Available Modalities:
211 Files, 5.04 GB mrs
30 - Subjects 5 - Sessions
If you have any questions, please post on https://neurostars.org/tags/bids.
Validation complete, preparing upload.
Detected 210 changes.
Transferring annexed files 100.00% 203.1s 105/105
Pushing changes...
error: Uncaught (in worker "") (in promise) PushRejectedError: Push rejected because it was not a simple fast-forward. Use "force: true" to override.
at _push (file:///home/earlea/.cache/deno/npm/registry.npmjs.org/isomorphic-git/1.27.1/index.js:12551:15)
at eventLoopTick (ext:core/01_core.js:177:7)
at async Object.push (file:///home/earlea/.cache/deno/npm/registry.npmjs.org/isomorphic-git/1.27.1/index.js:12701:12)
at async push (https://jsr.io/@openneuro/cli/4.33.1/src/worker/git.ts:415:3)
at async PromiseQueue.processQueue (https://jsr.io/@openneuro/cli/4.33.1/src/worker/queue.ts:17:24)
error: Uncaught (in promise) null
And when I tried to execute the same command a second time I got this at the end of stdout:
Summary: Available Tasks: Available Modalities:
211 Files, 5.04 GB mrs
30 - Subjects 5 - Sessions
If you have any questions, please post on https://neurostars.org/tags/bids.
Validation complete, preparing upload.
No changes found, not uploading.
Pushing changes...
error: Uncaught (in worker "") (in promise) PushRejectedError: Push rejected because it was not a simple fast-forward. Use "force: true" to override.
at _push (file:///home/earlea/.cache/deno/npm/registry.npmjs.org/isomorphic-git/1.27.1/index.js:12551:15)
at eventLoopTick (ext:core/01_core.js:177:7)
at async Object.push (file:///home/earlea/.cache/deno/npm/registry.npmjs.org/isomorphic-git/1.27.1/index.js:12701:12)
at async push (https://jsr.io/@openneuro/cli/4.33.1/src/worker/git.ts:415:3)
at async PromiseQueue.processQueue (https://jsr.io/@openneuro/cli/4.33.1/src/worker/queue.ts:17:24)
error: Uncaught (in promise) null
Very reproducible. Do I maybe need to CLI download my dataset, insert these new data into that, and THEN try to upload?
About this issue
- Original URL
- State: open
- Created 2 years ago
- Comments: 17 (6 by maintainers)
The CA cert is not new. Here’s the chain (you should be able to inspect it from your browser as well):
Could you try running this (for either error case) with debugging enabled? I haven’t seen unpacker error but that implies the push itself was corrupted somehow. The CLI generating a non fast forward error would be a different issue, in either case the debug log should help narrow it down.
https://docs.openneuro.org/packages/openneuro-cli.html#debugging-issues
In the meantime you could use datalad without the CLI for transfer, there doesn’t seem to be any issues with the server side copy of the dataset so this is likely a CLI bug.