Git Deploy - “文件写入错误(设备上没有剩余空间)”

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/4329730/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-09-19 04:47:54  来源:igfitidea点击:

Git Deploy - "file write error (No space left on device)"

git

提问by yexela

[Wed, 01 Dec 2010 12:17:07 -0800] DEBUG: STDERR: error: file write error (No space left on device) fatal: unable to write sha1 file fatal: unpack-objects failed

[2010 年 12 月 1 日星期三 12:17:07 -0800] 调试:STDERR:错误:文件写入错误(设备上没有剩余空间)致命:无法写入 sha1 文件致命:解包对象失败

I have seen a couple of discussions on this but haven't found a fix. I have two apps on my instance and never had this problem before. My recent commit was not very large either (database migration and controller addition). Any advice on what to do here? The volumes on my instance are not out-of-space.

我已经看到了一些关于这个的讨论,但还没有找到解决办法。我的实例上有两个应用程序,以前从未遇到过这个问题。我最近的提交也不是很大(数据库迁移和控制器添加)。关于在这里做什么的任何建议?我的实例上的卷没有空间不足。

回答by michas

Git was trying to unpack some objects, but was not able to do so. As the error suggests this might be because of a just "no space left on device", which might also mean "no inodes left on device".

Git 试图解压一些对象,但无法解压。正如错误所暗示的那样,这可能是因为“设备上没有剩余空间”,这也可能意味着“设备上没有剩余 inode”。

Please check with df -hand df -hi. (Assuming gnu-coreutils are present, as in any good linux system.)

请用df -h和 确认df -hi。(假设存在 gnu-coreutils,就像在任何好的 linux 系统中一样。)

You did not say what command you ran and where you found that error. The command might interact with another server, hence it might not be obvious what "device" is talked about.

您没有说明您运行了什么命令以及在哪里发现该错误。该命令可能会与另一台服务器交互,因此谈论“设备”可能并不明显。

The error message looks like copied from a log file, in this case it is likely the "device" is on the same host as the log file.

错误消息看起来像是从日志文件中复制的,在这种情况下,“设备”很可能与日志文件位于同一主机上。