构建 yocto 时 Gitlab 磁盘空间监视器错误

问题描述 投票:0回答:1

我是一名免费的 GitLab 用户,正在尝试探索 GitLab CI/CD。 我尝试使用“bitbake core-image-minimal”和 GitLab CI 管道构建 Yocto 图像。 每次我收到磁盘空间错误时。如何增加管道中的磁盘空间或仅为高级或专业客户增加磁盘空间? 请找出下面所附的错误

NOTE: recipe libice-1_1.0.10-r0: task do_configure: Started
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/tmp (/dev/sda1) is running low (0.994GB left)
ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/downloads (/dev/sda1) is running low (0.994GB left)
ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/sstate-cache (/dev/sda1) is running low (0.994GB left)
ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!
NOTE: recipe libice-1_1.0.10-r0: task do_configure: Succeeded
WARNING: The free space of /tmp (overlay) is running low (0.089GB left)
ERROR: No new tasks can be executed since the disk space monitor action is "STOPTASKS"!
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/tmp (/dev/sda1) is running low (0.089GB left)
ERROR: Immediately abort since the disk space monitor action is "ABORT"!
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/downloads (/dev/sda1) is running low (0.089GB left)
WARNING: The free space of /builds/ganeshredcobra/rcc_rpi/yocto/poky/build-qemuarm/sstate-cache (/dev/sda1) is running low (0.089GB left)
ERROR: Immediately abort since the disk space monitor action is "ABORT"!
ERROR: Immediately abort since the disk space monitor action is "ABORT"!
NOTE: Sending SIGTERM to remaining 1 tasks
NOTE: Sending SIGTERM to remaining 1 tasks
NOTE: Sending SIGTERM to remaining 1 tasks
NOTE: Tasks Summary: Attempted 944 tasks of which 0 didn't need to be rerun and all succeeded.
Summary: There were 9 WARNING messages shown.
Summary: There were 7 ERROR messages shown, returning a non-zero exit code.
gitlab gitlab-ci yocto bitbake
1个回答
0
投票

您可以通过在作业上使用标签来更改共享 SaaS 运行器上用于作业的硬件。

对于 linux 运行器,默认情况下(在撰写本文时),使用

saas-linux-small-amd64
运行器,其存储空间为 25GB。在免费套餐中,您可以使用标签
saas-linux-medium-amd64
来使用中型实例,这会将磁盘空间增加到 50GB。具有订阅计划的用户可以使用更大的实例,如链接中所述。

您可以像这样添加标签:

myjob:
  tags:
    - saas-linux-medium-amd64
  # ...

如果您需要更多磁盘空间,您需要托管自己的运行器或获取 gitlab 订阅。

请注意,体型较大的跑步者会以更高的速度消耗您的可用 CI 分钟。


另请注意,您似乎也耗尽了 tempfs 空间(“/tmp(覆盖)的可用空间不足”),这与您的作业工作区所在的常规文件系统中的可用空间不同(与完整 25GB 或 50GB)。

您可以设置

TEMPDIR
环境变量来更改临时文件/目录的创建位置。默认情况下,这是
/tmp
。如果您想避免使用通常空间有限的 tmpfs,也许您会这样做:

myjob:
  before_script:
    - mkdir ./temp
    - export TEMPDIR="$(pwd)/temp"
© www.soinside.com 2019 - 2024. All rights reserved.