Skip to content

Still fails on larger dataset #64

Closed

Description

@arnodelorme

It uploads 225 files and fails on the last 5. I think it is some kind of buffering issue.

Image
> nemar dataset upload ./ds002680 --name "My second NEMAR EEG Dataset ds002680 first"
• Prerequisites check passed
DataLad 1.2.3,
git-annex 10.20251029
GitHub SSH: arnodelorme
• GitHub CLI authenticated as arnodelorme
• Dataser 1s valla BIDS (34 warnıngs)
2713 metadata)
Dataset ID:
nm000149
Last attempt: 2026-01-21T05:34:18.449Z
Name: My second NEMAR EEG Dataset ds002680 first
Path: /Users/arno/GitHub/experiments/nemar_cli_test/ds002680
Files: 2943
Size:
1.94 GB
Data files:
230 (will be uploaded to S3)
Metadata files: 2713 (will be stored in git)
Parallel jobs:
Proceed with upload? Yes Resuming upload: nm000149
Already a collaborator on this repository
Datalad dataset initialized
Configuring GitHub remote...SSH test failed for nemar-arnodelorme-github: {
exitCode:|
255,
stderr:
stdout:
"ssh: Could not resolve hostname nemar-arnodelorme-github: nodename nor servname provided, or not known",
custom ssh nost nemar-arnodetorme gutnus not workinge ssncoutd not resorve nostname nemar-arnodetorme-gutnub: nodename nor servname provided, or not known
Pauling back co Mules auchentication win on cle coken...
• GitHub remote configured
* Failed to
upload some files (5 failed)
- derivatives/eegprep/sub-002/ses-02/eeg/sub-002_ses-02_task-gonogo_run-10_desc-cleaned#90fd849e_eeg.set: Upload failed: 503 <?xm] version="1.0" encoding="UTF-8"?>
<Error><Code>SlowDown</Code><Message>Please reduce your request rate.</Message><RequestId>YFY9HT3A1W84WY</RequestId><HostId>P16H1WcDkttTb/B0yMT3iMAogs/qc3H2Hee9CYW1BbeahbShUy0akLy+S7GZsoyru/84h5nbR100o5b3/wCuTyMT6h2PqI</HostId></Error
- derivatives/eegprep/sub-002/ses-02/eeg/sub-002_ses-02_task-gonogo_run-11_desc-cleaned#9b59f61e_eeg.set: Upload failed: 503 <?xml version="1.0" encoding="UTF-8"?>
<Error›<Code>S1owDown</Code><Message>Please reduce your request rate.</Message><RequestId>50ACZTT7A8FK7HJE</RequestId><HostId>rvHpwAunRbuH8nRjYsUpdtF5ky2YDjCIFWIk+6REdbGOnf7h410pRdQH+NyIIjudSAAHP7uff1UtbZ160HL6RSWGxRC/RzHF</HostId></Error
- derivatives/eegprep/sub-002/ses-01/eeg/sub-002_ses-01_task-gonogo_run-10_desc-cleaned#01916abb_eeg.set: Upload failed: 503 <?xm] version="1.0" encoding="UTF-8"?›
<Error><Code>SlowDown</Code><Message>Please
reduce your request rate.‹/Message><RequestId>486K5DFWCKWQKZTF</RequestId><HostId>dIgsu01UgX+CWkwA6UysnHdsIkDhOh170/nhduа9U0FRyЗKmØoY5wЗcsIwАЕK69dwСnKo4I5fFw=</HostId></Error>
- derivatives/eegprep/sub-082/ses-01/eeg/sub-082_ses-01_task-gonogo_run-10_desc-cleaned#f036dfa8_eeg.set: Upload failed: 503 <?xm] version="1.9" encoding="UTF-8"?>
<Error><Code>S1owDown</Code><Message>Please
reduce your request rate.‹/Message><RequestId>M1QSRVY1T9A94F04</RequestId><HostId>qx8dtcuM+cY/+4оBK9mIqеFQQ®IL5ХjpU0tРNdLt6mI8M4hz7Gj0iqqfОQ09Src2kg8aXV+di/s=</HostId></Error>
- derivatives/eegprep/sub-002/ses-01/eeg/sub-002_ses-01_task-gonogo_run-10_desc-picard#c70655cb_eeg.set: Upload failed: 503 <?xm| version="1.0" encoding="UTF-8"?›
<Error><Code>SlowDown</Code><Message>Please reduce your request rate.</Message><RequestId>RZJ7AMMBGJH2TT7Y</RequestId><HostId>r01yBGEoswb2kDBaXrCmLdVRwfSDbqB5FZmaAb+PFaIOVVvqh9pao27jWEGT6R0Zp1MZgA6Mn7A=</HostId></Errors

Activity

  1. added
    bug
    on Jan 22, 2026
  2. neuromechanist commented on Jan 22, 2026

    @neuromechanist
    Contributor

    thanks very much Arno, this is really valuable.

  3. arnodelorme commented on Jan 22, 2026

    @arnodelorme
    Author
  4. neuromechanist commented on Jan 22, 2026

    @neuromechanist
    Contributor

    Yes please, that would be really good because I can test with the user account that I have. If you can put in on GDrive, or on the projects, or the public sccn, I can fetch that.

  5. neuromechanist commented on Jan 22, 2026

    @neuromechanist
    Contributor

    Root Cause Analysis

    The 503 errors are S3 rate limiting (SlowDown: Please reduce your request rate). This happens because:

    1. No retry on 503: The upload function only retried on 403 AccessDenied (for IAM propagation delays). When S3 returned 503 SlowDown, it failed immediately without retry.
    2. High default parallelism: Default was 8 concurrent upload streams, which for 230 files can trigger S3 rate limiting toward the end of the upload.

    Fix (in progress on dev branch)

    • Added retry with exponential backoff (2s, 4s, 8s, 16s) for 503 SlowDown errors
    • Reduced default parallel jobs from 8 to 4
    • Users can still override with -j 8 if their connection/bucket supports it

    The BIDS validation passing is correct and expected; the issue is purely at the S3 upload layer.

  6. added a commit that references this issue on Jan 22, 2026
    2a307b4
  7. arnodelorme commented on Jan 22, 2026

    @arnodelorme
    Author
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions