/media/atlassian-data 文件系统已 100% 满
Posted
技术标签:
【中文标题】/media/atlassian-data 文件系统已 100% 满【英文标题】:/media/atlassian-data filesystem is 100% full 【发布时间】:2021-11-03 02:12:26 【问题描述】:当我尝试使用竹子运行构建时,出现以下错误:
error 03-Nov-2021 01:54:20 write .docker_temp_258181997: no space left on device
simple 03-Nov-2021 01:54:20 Failing task since return code of [/usr/bin/docker save --output=app.tar pl-app-prod:latest] was 1 while expected 0
error 03-Nov-2021 01:54:20 Error occurred while running Task 'Build Container(6)' of type com.atlassian.bamboo.plugins.bamboo-docker-plugin:task.docker.cli.
error 03-Nov-2021 01:54:20 com.atlassian.bamboo.task.TaskException: Failed to execute task
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:57)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.tasks.cli.DockerCliTask.execute(DockerCliTask.java:70)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.lambda$executeTasks$3(TaskExecutorImpl.java:319)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTaskWithPrePostActions(TaskExecutorImpl.java:252)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.executeTasks(TaskExecutorImpl.java:319)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.task.TaskExecutorImpl.execute(TaskExecutorImpl.java:112)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.build.pipeline.tasks.ExecuteBuildTask.call(ExecuteBuildTask.java:73)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.executeBuildPhase(DefaultBuildAgent.java:204)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent.build(DefaultBuildAgent.java:176)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.lambda$waitAndPerformBuild$0(BuildAgentControllerImpl.java:131)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.variable.CustomVariableContextImpl.withVariableSubstitutor(CustomVariableContextImpl.java:185)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.BuildAgentControllerImpl.waitAndPerformBuild(BuildAgentControllerImpl.java:125)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.v2.build.agent.DefaultBuildAgent$1.run(DefaultBuildAgent.java:127)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.utils.BambooRunnables$1.run(BambooRunnables.java:48)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper.runWith(ImpersonationHelper.java:26)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper.runWithSystemAuthority(ImpersonationHelper.java:17)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.security.ImpersonationHelper$1.run(ImpersonationHelper.java:41)
error 03-Nov-2021 01:54:20 at java.lang.Thread.run(Thread.java:748)
error 03-Nov-2021 01:54:20 Caused by: com.atlassian.bamboo.docker.DockerException: Error running Docker save command
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.save(DockerCmd.java:126)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.service.BuildService.execute(BuildService.java:50)
error 03-Nov-2021 01:54:20 ... 17 more
error 03-Nov-2021 01:54:20 Caused by: com.atlassian.utils.process.ProcessException: Error executing /usr/bin/docker save --output=app.tar pl-app-prod:latest
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.process.DockerTaskProcessService.execute(DockerTaskProcessService.java:64)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.plugins.docker.client.DockerCmd.save(DockerCmd.java:124)
error 03-Nov-2021 01:54:20 ... 18 more
当我运行df
时,我看到的是:
Filesystem 1K-blocks Used Available Use% Mounted on
udev 4079032 0 4079032 0% /dev
tmpfs 817384 8940 808444 2% /run
/dev/xvda1 8065444 5112196 2936864 64% /
tmpfs 4086920 4 4086916 1% /dev/shm
tmpfs 5120 0 5120 0% /run/lock
tmpfs 4086920 0 4086920 0% /sys/fs/cgroup
/dev/xvdf 2096128000 2094223308 1904692 100% /media/atlassian-data
tmpfs 817384 0 817384 0% /run/user/15000
tmpfs 817384 0 817384 0% /run/user/1000
所以/media/atlassian-data
100% 已满。凉爽的。我可以删除哪些文件来腾出空间?
我不想随意删除东西,因为我不想破坏 Bamboo。就像我很酷地删除每个项目的最新版本,但不知道文件系统上的版本在哪里。我的意思是,如果我必须删除 所有 版本,那也很酷,但同样,我想知道我会去哪里这样做,我不想只是随意删除东西,因为我真的不想重建 Bamboo 和所有的构建计划,什么不是从头开始。
【问题讨论】:
【参考方案1】:我能够使用https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html 的说明配置全局到期以删除超过 90 天的构建:
-
点击 Bamboo 标题中的 图标并选择概览。
点击左侧导航面板中的到期(在“计划”下)。
从那里开始,其余部分非常直观。
【讨论】:
以上是关于/media/atlassian-data 文件系统已 100% 满的主要内容,如果未能解决你的问题,请参考以下文章