/media/atlassian-data 文件系统已 100% 满
/media/atlassian-data filesystem is 100% full
当我尝试 运行 使用 bamboo 构建时,出现以下错误:
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(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[=11=](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.run(DefaultBuildAgent.java:127)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.utils.BambooRunnables.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.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% 满。凉爽的。我可以删除哪些文件来清理 space?
我不想随意删除东西,因为我不想破坏 Bamboo。就像我很高兴删除每个项目的最新版本以外的所有版本,但我不知道版本在文件系统上的位置。我的意思是,如果我必须删除 所有 的发布,那也很酷,但是同样,我知道我会去哪里做,我不想只是去删除东西随机的,因为我真的不想重建 Bamboo 和所有的构建计划,而不是从头开始。
我能够使用 https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html 中的说明配置全局过期以删除超过 90 天的构建:
从那里开始,剩下的就很直观了。
当我尝试 运行 使用 bamboo 构建时,出现以下错误:
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(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[=11=](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.run(DefaultBuildAgent.java:127)
error 03-Nov-2021 01:54:20 at com.atlassian.bamboo.utils.BambooRunnables.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.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% 满。凉爽的。我可以删除哪些文件来清理 space?
我不想随意删除东西,因为我不想破坏 Bamboo。就像我很高兴删除每个项目的最新版本以外的所有版本,但我不知道版本在文件系统上的位置。我的意思是,如果我必须删除 所有 的发布,那也很酷,但是同样,我知道我会去哪里做,我不想只是去删除东西随机的,因为我真的不想重建 Bamboo 和所有的构建计划,而不是从头开始。
我能够使用 https://confluence.atlassian.com/bamboo/configuring-global-expiry-289277253.html 中的说明配置全局过期以删除超过 90 天的构建:
从那里开始,剩下的就很直观了。