Resolution
Adjust the Repository Retention for the Octopus built-in feed in order to automatically remove unused packages from the feed. By default, this is set to remove any packages not used in a release or in a runbook run within the past 30 days. Adjusting this setting for fewer days and running the Apply retention policies system task will remove the unused packages and free up enough disk space to upload new packages.
Symptom
This issue typically occurs when you receive an error from your Octopus Cloud instance while attempting to upload a package to the built-in feed, either through the Octopus UI or from an external tool such as a CI pipeline.
Octopus Server returned an error: No space left on device
Scope: when this is the right article
- You are running an Octopus Cloud instance.
- You receive an error uploading a new package to the built-in feed from a CI system, external tool, or Octopus UI.
- Alternatively, you may see packages uploaded with 0B size in the built-in feed.
Cause
The Octopus Cloud instance has run out of available disk space. By default, each instance is configured with 1 TB of available storage.
Diagnosis and fix
Diagnose:
- View the available disk space in the instance Control Center to verify that the resource limit has been hit.
Fix:
-
Check the built-in feed Repository Retention settings in the Octopus UI.
-
Lower the number of days unused packages are kept.
-
Once the built-in repository retention is updated, you can rerun the latest
Apply retention policiessystem task. -
On the
Tasksscreen, use theTask typefilter to selectApply retention policies. - Click into the last run system task.
-
On the next screen, choose the
Re-runoption from the kebab menu.
-
If necessary, review and adjust your release retention policies to ensure there are unused packages to delete.
-
For more information, see the Tightening Retention Policy Settings KB and our retention policy documentation.
Verify
Check the resource usage in the instance Control Center again to verify if there is storage space available. Once there is you can attempt to upload the new package to your instance's built-in feed again.