Git,错误:远程解压缩失败:无法创建临时对象目录-通过创建新分支 [英] Git, error: remote unpack failed: unable to create temporary object directory - By creating new Branch

查看:1513
本文介绍了Git,错误:远程解压缩失败:无法创建临时对象目录-通过创建新分支的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

美好的一天.

我试图在我的仓库中创建一个新的分支.

I Try to create a new Branch in my Repo.

我做到了:

Git分支事件

Git branch events

Git Checkout事件

Git Checkout events

那行得通.所以我更改了一些文件并制作了

That worked. So I changed some files and made

Git状态

Git Status

Git添加--all

Git add --all

Git Commit -m提交"

Git Commit -m "Commit"

效果很好,但我尝试将其推开,但效果不佳:

That worked well but I tried to push it and that didn't work:

Git push -u起源事件

Git push -u origin events

这是错误:

枚举对象:9个,已完成.
计数对象:已完成100%(9/9).
最多可使用4个线程进行Delta压缩.
压缩对象:已完成100%(5/5).
写入对象:100%(5/5),716字节|已完成716.00 KiB/s.
总计5(增量4),已重用0(增量0)
错误:远程解压缩失败:无法创建临时对象目录
http://git.int.censoredlink/scm/freeb/freebrep.git
! [远程拒绝]事件->事件(拆包错误)
错误:无法将某些引用推送到' http://stsu@git.int. censoredlink/scm/freeb/freebrep.git '

Enumerating objects: 9, done.
Counting objects: 100% (9/9), done.
Delta compression using up to 4 threads.
Compressing objects: 100% (5/5), done.
Writing objects: 100% (5/5), 716 bytes | 716.00 KiB/s, done.
Total 5 (delta 4), reused 0 (delta 0)
error: remote unpack failed: unable to create temporary object directory
To http://git.int.censoredlink/scm/freeb/freebrep.git
! [remote rejected] events -> events (unpacker error)
error: failed to push some refs to 'http://stsu@git.int.censoredlink/scm/freeb/freebrep.git'

我不知道为什么它不起作用.

I don't know why it don't work.

我对存储库具有管理员权限.我审查了该回购的链接,因为它的带私人链接的实习生回购"希望还可以.

I have Admin rights on the Repo. I censored the link to the repo because its a Intern Repo with Private link hope thats ok.

希望有人可以帮助我.

推荐答案

此错误消息:

error: remote unpack failed: unable to create temporary object directory

表示服务器上的Git存储库(不是您的Git)空间不足,或遇到类似的服务器问题, 1 或安装不正确.也就是说,给定:

indicates that the Git repository at the server (not your Git) is out of space, or running into similar server problems,1 or installed incorrectly. That is, given:

To: http://git.int.censoredlink/scm/freeb/freebrep.git

您将必须在git.int.censoredlink登录到提供HTTP流量的计算机,然后转到scm/freeb/freebrep.git目录,然后在此处更正安装.这很可能是权限问题:接收方的Git必须能够在对象区域中创建名为incoming-XXXXXX的目录,并用唯一标识符替换X s,然后在该目录中创建pack子目录

you will have to log in to the machine that serves HTTP traffic at git.int.censoredlink, walk down to the scm/freeb/freebrep.git directory, and correct the installation there. It's most likely a permissions issue: the receiving Git must be able to create, in the objects area, a directory named incoming-XXXXXX with the Xs replaced by a unique identifier, and then create within that directory a pack subdirectory.

所有进入的对象和包文件都以一种隔离过程的方式放置在这些目录中,直到服务器端Git挂钩对引用名称更新请求感到满意为止.如果推送失败,则仅删除隔离目录.如果推送成功,则隔离的对象和/或文件包文件将被迁移(并调整了瘦文件包)到常规对象存储区域中.请注意,即使隔离过程成功,迁移也可能失败.但是,如果这样做,则会向客户端报告一个不同错误. (此错误也必须在服务器上更正.)

All incoming objects and pack files are placed in these directories, in a sort of quarantine procedure, until the server-side Git hooks are satisfied with the reference name update requests. If the push fails, the quarantine directory is simply removed. If the push succeeds, the quarantined objects and/or pack files are migrated (and thin packs adjusted) into the normal object storage area. Note that the migration can fail even if the quarantine process succeeds; but if it does so, you get a different error reported to the client. (This error must also be corrected on the server.)

注意:推送到http://而不是https://ssh:// URL是非常不寻常的.检查您的服务器配置,查看谁将拥有由此创建的各种文件,以及Web服务器将拥有哪些权限.

Note: it's rather unusual to push to http:// rather than https:// or ssh:// URLs. Inspect your server configuration to see who will own the various files thus created, and what permissions the web server will have.

1 如果硬盘驱动器发生故障,Linux有时会将该驱动器和/或其文件系统标记为只读.或者,即使您有磁盘空间,也可能用尽了inode.许多不同的根本原因都将导致在客户端上观察到相同的行为.如果您是Linux管理员,正在检查服务器,请查找系统日志消息,并考虑dfdf -i输出.

1If a hard drive fails, Linux will sometimes mark the drive and/or its file systems read only. Or, even if you have disk space, you can run out of inodes. A number of different root causes will all lead to the same observed behavior on your client end. If you are a Linux admin checking on a server, look for system log messages, and consider both df and df -i output.

这篇关于Git,错误:远程解压缩失败:无法创建临时对象目录-通过创建新分支的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆