Skip to content

Failing to upload very large (8 GiB+) raw components #37

@Windos

Description

@Windos

What You Are Seeing?

I often need to upload large Vagrant box files to Nexus Raw repos, and have used this module in the past to achieve this. The last time I used this module the box I was uploading was 7.43 GB.

Recently I rebuilt my images and they were (depending on the provider) between 7.73 GB and 8.21 GB (both being over 8,000,000 bytes) and when I try to upload them, this fails:

image

This happens after sending about 2 GB of data.

What is Expected?

The upload completes successfully.

How Did You Get This To Happen?

  1. Have a file over 8 GiB
  2. Authenticate against Nexus: Connect-NexusServer -Hostname example.com -Credential (Get-Credential) -UseSSL -Sslport 8443
  3. Upload the file: New-NexusRawComponent -RepositoryName 'vagrant-boxes' -Directory 'example/example-test-environment' -File C:\code\test-envirornment-vagrant-box\example-test-environment_1.1.1_hyperv.box -Verbose

On Windows PowerShell this fails at about the 2 GB mark.

On PWSH, this appears to just spin its wheels for hours and never fail (the system does appear to be sending data during this time, but if left long enough it totals way more than the actual file.)

System Details

  • Operating System: Windows Server 2019 (Also tested on Windows 11)
  • PowerShell version: Windows PowerShell 5.1

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions