【bug fixed】hexo d的时候Spawn failed

在执行hexo d部署的时候,遇到报错:

bash 复制代码
% hexo d
INFO  Validating config
INFO  Deploying: git
INFO  Clearing .deploy_git folder...
INFO  Copying files from public folder...
INFO  Copying files from extend dirs...
[main 8e89088] Site updated: 2024-09-27 16:41:34
 4 files changed, 27 insertions(+), 27 deletions(-)
Enumerating objects: 733, done.
Counting objects: 100% (733/733), done.
Delta compression using up to 8 threads
Compressing objects: 100% (415/415), done.
error: RPC failed; HTTP 400 curl 22 The requested URL returned error: 400
send-pack: unexpected disconnect while reading sideband packet
Writing objects: 100% (733/733), 60.61 MiB | 23.52 MiB/s, done.
Total 733 (delta 185), reused 0 (delta 0), pack-reused 0
fatal: the remote end hung up unexpectedly
Everything up-to-date
FATAL Something's wrong. Maybe you can find the solution here: https://hexo.io/docs/troubleshooting.html
Error: Spawn failed
    at ChildProcess.<anonymous> (/Users/zhaodongyu/Documents/Blog/node_modules/hexo-util/lib/spawn.js:51:21)
    at ChildProcess.emit (node:events:520:28)
    at ChildProcess._handle.onexit (node:internal/child_process:294:12)

看信息与 Hexo 的部署到 Git 仓库过程中发生的 RPC failed 错误有关。

错误信息中显示有 60.61 MiB 的数据,这会超过 GitHub 或其他 Git 服务器的默认传输大小限制。

我通过增加 Git 的 HTTP 传输缓冲区大小来解决:

git config --global http.postBuffer 524288000

这会将 Git 的 HTTP 缓冲区增加到 500MB(默认是 1MB)。

问题解决。


如果这样还是不能解决,在hexo的官网中也有相关讨论:

相关推荐
易水寒陈2 天前
8字节内存对齐引发的bug
bug
Soari3 天前
【紧急发布】Claude Code v2.1.148 :修复 Bash 127 瘫痪 Bug,/simplify 升级为 AI 代码评审
人工智能·bug·bash·claudecode
ABILI .4 天前
FineReport网络报表bug
bug·finereport·帆软
小陶来咯4 天前
机器人坐下后拍触摸板站起行动指令无效 — Bug 分析
机器人·bug
萤萤七悬4 天前
【AI精彩BUG汇总】一、yolo图像训练截图蓝色变橙色
人工智能·yolo·bug
小雨青年4 天前
Git Bisect 实战:用二分法快速找到引入 Bug 的提交
git·bug
淘矿人5 天前
Claude辅助DevOps实践
java·大数据·运维·人工智能·算法·bug·devops
哥本哈士奇5 天前
LangChain Deepagent 版本0.6.1中间件一个bug
中间件·langchain·bug
java修仙传5 天前
Java 实习日记:断面状态筛选 Bug 修复与对比案例日期过滤优化
java·bug·实习
CeshirenTester5 天前
当其他人回复您的帖子时是否接收实时通知? “线上Bug排查3小时,CTO当场发火”:一套让测试人“硬气”起来的质量保障体系
bug