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

no space left on device #191

Closed
matrix3d opened this issue Jan 6, 2021 · 8 comments
Closed

no space left on device #191

matrix3d opened this issue Jan 6, 2021 · 8 comments
Labels
bug Something isn't working

Comments

@matrix3d
Copy link

matrix3d commented Jan 6, 2021

Run webbertakken/unity-builder@v2.0-aplha-5
  with:
    projectPath: cs2019/cs2019_pc
    unityVersion: 2020.2.1f1
    targetPlatform: Android
    allowDirtyBuild: true
    kubeContainerMemory: 800M
    kubeContainerCPU: 0.25
    kubeVolumeSize: 5Gi
    versioning: Semantic
    androidAppBundle: false
  env:
    UNITY_LICENSE: ***
Warning: From https://github.com/matrix3d/unitystudy
 * [new branch]        add-license-1 -> origin/add-license-1

/bin/sh
0
0

230

Generated version 0.0.230 (no version tags found).
Using android versionCode 230
/usr/bin/docker build /home/runner/work/_actions/webbertakken/unity-builder/v2.0-aplha-5/action --file /home/runner/work/_actions/webbertakken/unity-builder/v2.0-aplha-5/action/Dockerfile --build-arg IMAGE=unityci/editor:2020.2.1f1-android-0 --tag unity-builder:2020.2.1f1-android-0
Sending build context to Docker daemon  3.091MB

Step 1/15 : ARG IMAGE
Step 2/15 : FROM $IMAGE
2020.2.1f1-android-0: Pulling from unityci/editor
171857c49d0f: Pulling fs layer
419640447d26: Pulling fs layer
61e52f862619: Pulling fs layer
54b0b6b2ac17: Pulling fs layer
9a4c76c6cf03: Pulling fs layer
283e0ad30484: Pulling fs layer
c67e0f7a2191: Pulling fs layer
cf5987363121: Pulling fs layer
0dc2ae63c061: Pulling fs layer
c3e57c00b537: Pulling fs layer
54b0b6b2ac17: Waiting
9a4c76c6cf03: Waiting
283e0ad30484: Waiting
c67e0f7a2191: Waiting
cf5987363121: Waiting
0dc2ae63c061: Waiting
c3e57c00b537: Waiting
61e52f862619: Download complete
419640447d26: Verifying Checksum
419640447d26: Download complete
171857c49d0f: Verifying Checksum
171857c49d0f: Download complete
9a4c76c6cf03: Verifying Checksum
9a4c76c6cf03: Download complete
283e0ad30484: Verifying Checksum
283e0ad30484: Download complete
c67e0f7a2191: Verifying Checksum
c67e0f7a2191: Download complete
0dc2ae63c061: Verifying Checksum
0dc2ae63c061: Download complete
c3e57c00b537: Verifying Checksum
c3e57c00b537: Download complete
54b0b6b2ac17: Verifying Checksum
54b0b6b2ac17: Download complete
171857c49d0f: Pull complete
419640447d26: Pull complete
61e52f862619: Pull complete
54b0b6b2ac17: Pull complete
9a4c76c6cf03: Pull complete
283e0ad30484: Pull complete
c67e0f7a2191: Pull complete
cf5987363121: Verifying Checksum
cf5987363121: Download complete
failed to register layer: Error processing tar file(exit status 1): write /opt/unity/Editor/Data/Tools/libembree.so.2: no space left on device
Error: The process '/usr/bin/docker' failed with exit code 1

@matrix3d matrix3d added the bug Something isn't working label Jan 6, 2021
@davidmfinol
Copy link
Member

Running out of disk space is a fairly common issue with Android builds (maybe we should add it https://game.ci/docs/troubleshooting/common-issues).

I use a script like this to free up some additional space on my Android builds:

      - name: Free Disk Space for Android
        run: |
          sudo swapoff -a
          sudo rm -f /swapfile
          sudo apt clean
          docker rmi $(docker image ls -aq)
          df -h
      - name: Build Unity Project
        uses: game-ci/unity-builder@v2.0-aplha-5
        ...

If freeing disk space like this doesn't work for you, you may need to try using a self-hosted runner that has more disk space.

@webbertakken
Copy link
Member

Additional method here

Yea, we should probably make a quick script that serves as an example for cleaning up 20GB, 35GB or 75GB (more needed means it will take quite a bit longer).

I'm not sure if turning off swapfile is recommended or not.

@davidmfinol
Copy link
Member

@matrix3d Were you able to workaround this issue? I'm just curious as to what solution you used, for when others have the same issue.

@matrix3d
Copy link
Author

matrix3d commented Jan 19, 2021

https://github.com/matrix3d/buildu3d/blob/main/.github/workflows/android.yml

it is work

- name: Free Disk Space for Android
        run: |
          sudo swapoff -a
          sudo rm -f /swapfile
          sudo apt clean
          docker rmi $(docker image ls -aq)
          df -h

@AdamMcCurdy
Copy link

I tried this free disk space step today and received this error "no such image"

image

@AdamMcCurdy
Copy link

AdamMcCurdy commented Feb 22, 2021

replace the docker rmi line with this
docker rmi $(docker images -q)

So all together it looks like:

# Free up disk space
    - name: Free Disk Space for Android
      run: |
        sudo swapoff -a
        sudo rm -f /swapfile
        sudo apt clean
        docker rmi $(docker images -q)
        df -h

@matrix3d
Copy link
Author

@GabLeRoux
Copy link
Member

Adding a link here for reference as this might be helpful for others:
https://game.ci/docs/troubleshooting/common-issues/#no-space-left-on-device

jonny-jeahyunchoi added a commit to planetarium/NineChronicles that referenced this issue Jan 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

5 participants