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

[ERR_FS_FILE_TOO_LARGE] on Push Package(s) to Octopus #324

Open
aguacongas opened this issue Jan 16, 2024 · 2 comments
Open

[ERR_FS_FILE_TOO_LARGE] on Push Package(s) to Octopus #324

aguacongas opened this issue Jan 16, 2024 · 2 comments

Comments

@aguacongas
Copy link

The Push Package(s) to Octopus step fail with error :

Starting: push_to_octopus
==============================================================================
Task         : Push Package(s) to Octopus
Description  : Push your NuGet or Zip package to your Octopus Deploy Server. **v6 of this step requires Octopus 2022.3+**
Version      : 6.0.599
Author       : Octopus Deploy
Help         : Version: 6.0.599. [More Information](https://g.octopushq.com/TFS-VSTS)
==============================================================================
Uploading package, WSO2.20240116.24.nupkg...
##[error]"Failed to execute push. RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2394962902) is greater than 2 GiB
Error: RangeError [ERR_FS_FILE_TOO_LARGE]: File size (2394962902) is greater than 2 GiB
    at e.<anonymous> (E:\TFS\Agents\DefaultAgent5\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.599\index.js:18:11434)
    at d (E:\TFS\Agents\DefaultAgent5\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.599\index.js:18:8997)
    at Object.next (E:\TFS\Agents\DefaultAgent5\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.599\index.js:18:8280)
    at p (E:\TFS\Agents\DefaultAgent5\_work\_tasks\OctopusPush_d05ad9a2-5d9e-4a1c-a887-14034334d6f2\6.0.599\index.js:18:7838)
Finishing: push_to_octopus

@benPearce1
Copy link
Contributor

@aguacongas this issue is due to a limitation in NodeJS which limits the size that the process can read into memory.

As a workaround, you can use the Octopus CLI to upload the package. You will need to add two new steps to your process.

First add a OctoInstaller@6 to install the cli on your agent, then add a script step.
The script will be: octopus package upload --space <space name> --package <package filename> --no-prompt
It will also require the following environment variables to be set: OCTOPUS_URL and OCTOPUS_API_KEY

@michelle-luana
Copy link

The Octopus engineering team has reviewed this issue.
After careful consideration, we’ve classed this low priority. This means we won’t work on it in the near future.
We prioritize issues based on the number of people affected, the impact type, and available workarounds.
If you’ve encountered this issue and haven’t informed our support team, please email [email protected]. Knowing how many people this issue affects helps us determine its priority.

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

3 participants