【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的官网中也有相关讨论:

相关推荐
tobybo13 小时前
【BUG调查日记】用于压测的机器人进程内存压不住且脱离分配器的管理
服务器·bug·压力测试
spencer_tseng1 天前
Lombok.jar bug
bug·jar·lombok
海蓝可知天湛2 天前
Ubuntu24.10禁用该源...+vmware无法复制黏贴“天坑闭环”——从 DNS 诡异解析到 Ubuntu EOL 引发的 apt 404排除折腾记
linux·服务器·安全·ubuntu·aigc·bug
程序员小远3 天前
快速定位bug,编写测试用例
自动化测试·软件测试·python·测试工具·职场和发展·测试用例·bug
老友@3 天前
一次由 PageHelper 分页污染引发的 Bug 排查实录
java·数据库·bug·mybatis·pagehelper·分页污染
黄昏恋慕黎明3 天前
测试之bug篇
bug
LXY_BUAA3 天前
《计算机操作系统》_并发 bug 和应对 (死锁/数据竞争/原子性违反;防御性编程和动态分析)20251106
bug
没有韭菜的饺子3 天前
记录一个IDEA的神奇bug
bug
LilySesy4 天前
ABAP+WHERE字段长度不一致报错解决
java·前端·javascript·bug·sap·abap·alv
万粉变现经纪人4 天前
如何解决 pip install 安装报错 [WinError 32] 文件被占用(杀毒/占用进程)问题
python·pycharm·flask·beautifulsoup·bug·pandas·pip