Skip to content

Commit

Permalink
Merge pull request #101 from chmeliik/workspace-size
Browse files Browse the repository at this point in the history
Add Troubleshooting docs
  • Loading branch information
arewm authored Jul 31, 2024
2 parents c369aeb + 9413d3f commit f00d0f7
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 0 deletions.
1 change: 1 addition & 0 deletions docs/antora.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ nav:
- modules/ROOT/pages/getting-started/_nav.adoc
- modules/ROOT/pages/how-tos/_nav.adoc
- modules/ROOT/pages/advanced-how-tos/_nav.adoc
- modules/ROOT/pages/troubleshooting/_nav.adoc
- modules/ROOT/pages/glossary/_nav.adoc
- modules/ROOT/pages/contribute/_nav.adoc

Expand Down
1 change: 1 addition & 0 deletions docs/modules/ROOT/pages/troubleshooting/_nav.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* xref:troubleshooting/index.adoc[Troubleshooting]
33 changes: 33 additions & 0 deletions docs/modules/ROOT/pages/troubleshooting/index.adoc
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
= Troubleshooting

== No space left on device

Tasks may fail with an error message mentioning `No space left on device` as the underlying error.
This likely means your build pipeline wrote more data than expected into a shared volume.

Typically seen in the `clone-repository` or `prefetch-dependencies` task in a build pipeline.

For the clone task, the error message may look similar to:

[source,text]
----
[clone] {"level":"error","ts":1721904304.0047252,"caller":"git/git.go:53","msg":"Error running git [checkout -f FETCH_HEAD]: exit status 128\nerror: unable to write file ...: No space left on device\n"
----

The device that's running out of space is most likely the workspace declared in your `PipelineRun`
YAML files. *The solution is to request more disk space.* In the `.spec.workspaces` section in
all the relevant PipelineRun files, increase the storage request.

[source,yaml]
----
spec:
# ...
workspaces:
# ...
- name: workspace
volumeClaimTemplate:
spec:
resources:
requests:
storage: 1Gi # increase accordingly
----

0 comments on commit f00d0f7

Please sign in to comment.