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

Trivy running out of disk space on /tmp #784

Open
jiridanek opened this issue Nov 26, 2024 · 4 comments
Open

Trivy running out of disk space on /tmp #784

jiridanek opened this issue Nov 26, 2024 · 4 comments
Labels
kind/bug Something isn't working

Comments

@jiridanek
Copy link
Member

https://github.com/opendatahub-io/notebooks/actions/runs/12022937291/job/33517619579#step:17:50

2024-11-26T04:30:54Z	FATAL	Fatal error	image scan error: scan error: scan failed: failed analysis: unable to get the image's config file: unable to populate: unable to open: failed to copy the image: write /tmp/fanal-4011662631: no space left on device

There should be a config option to direct it to use a more voluminous volume.

In the printout at the end of job, shows we still do have space around, just not in /tmp

0s
Run df -h
Filesystem                   Size  Used Avail Use% Mounted on
/dev/root                     73G   72G  [1](https://github.com/opendatahub-io/notebooks/actions/runs/12022937291/job/33517619579#step:20:1).2G  99% /
tmpfs                        7.9G  172K  7.9G   1% /dev/shm
tmpfs                        3.2G  1.2M  3.2G   1% /run
tmpfs                        5.0M     0  5.0M   0% /run/lock
/dev/sdb[15](https://github.com/opendatahub-io/notebooks/actions/runs/12022937291/job/33517619579#step:20:16)                   105M  6.1M   99M   6% /boot/efi
/dev/sda1                     74G   70G  100M 100% /mnt
tmpfs                        1.6G   48K  1.6G   1% /run/user/1001
/dev/mapper/buildvg-buildlv  108G   38G   70G  36% /home/runner/.local/share/containers
@jiridanek jiridanek added the kind/bug Something isn't working label Nov 26, 2024
@github-project-automation github-project-automation bot moved this to 📋 Backlog in ODH IDE Planning Nov 26, 2024
@jiridanek
Copy link
Member Author

Issue is still there

2024-11-27T08:39:08Z	FATAL	Fatal error	image scan error: scan error: scan failed: failed analysis: unable to get the image's config file: unable to populate: unable to open: failed to copy the image: write /tmp/fanal-3285028759: no space left on device

https://github.com/opendatahub-io/notebooks/actions/runs/12046258640/job/33586403944?pr=761#step:18:52

@jiridanek
Copy link
Member Author

This is /tmp inside the container, if I understand it correctly, not the /tmp on the host system. Too bad, because looks like our rocm images are again too big to scan, in that case. Some space saving measures need to be found.

@jiridanek
Copy link
Member Author

Possibly mount /tmp as a compressed volume ;P

@jiridanek
Copy link
Member Author

Related to

Initial work about disk space issues with Trivy.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working
Projects
Status: 📋 Backlog
Development

No branches or pull requests

1 participant