用hexo搭博客总是出现这样的错误

发布于 2022-09-11 14:32:25 字数 4009 浏览 43 评论 0

用hexo搭博客hexo s 在本地能看到网页
但是hexo d同步到github时总是卡住或者出错
请问这是什么问题?

$ hexo d
INFO Deploying: git
INFO Clearing .deploy_git folder...
INFO Copying files from public folder...
INFO Copying files from extend dirs...
warning: LF will be replaced by CRLF in 2018/07/29/hello-world/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2018/07/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/2018/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in archives/index.html.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/fonts/fontawesome-webfont.svg.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in css/style.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-buttons .js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-media.j s.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/helpers/jquery.fancybox-thumbs. js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.css.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in fancybox/jquery.fancybox.pack.js.
The file will have its original line endings in your working directory.
warning: LF will be replaced by CRLF in js/script.js.
The file will have its original line endings in your working directory.
On branch master
nothing to commit, working tree clean

Connection reset by 13.250.177.223 port 22
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly
FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troublesh...
Error: Connection reset by 13.250.177.223 port 22
fatal: The remote end hung up unexpectedly
fatal: The remote end hung up unexpectedly

at ChildProcess.<anonymous> (C:\Users\LLLLogan\Desktop\Blog\node_modules\hexo-util\lib\spawn.js:37:17)
at emitTwo (events.js:126:13)
at ChildProcess.emit (events.js:214:7)
at ChildProcess.cp.emit (C:\Users\LLLLogan\Desktop\Blog\node_modules\cross-spawn\lib\enoent.js:40:29)
at maybeClose (internal/child_process.js:925:16)
at Socket.stream.socket.on (internal/child_process.js:346:11)
at emitOne (events.js:116:13)
at Socket.emit (events.js:211:7)
at Pipe._handle.close [as _onclose] (net.js:557:12)

问题描述

用hexo搭博客hexo s 在本地能看到网页
但是hexo d同步到github时总是卡住或者出错
请问这是什么问题?

问题出现的平台版本及自己尝试过哪些方法

配置文件我确定没有配置错

相关代码

// 请把代码文本粘贴到下方(请勿用图片代替代码)

你期待的结果是什么?实际看到的错误信息又是什么?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(4

晨曦÷微暖 2022-09-18 14:32:25

我发现我是 切换了一下网络就上传上去了 很迷

╭ゆ眷念 2022-09-18 14:32:25

刚才也遇到了同样的问题:

  [master 852bb8c] Site updated: 2018-10-20 02:04:33
  67 files changed, 536 insertions(+), 536 deletions(-)
  Connection reset by 192.30.253.113 port 22
  fatal: sha1 file '<stdout>' write error: Broken pipe
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly
  FATAL Something's wrong. Maybe you can find the solution here: http://hexo.io/docs/troubleshooting.html
  Error: Connection reset by 192.30.253.113 port 22
  fatal: sha1 file '<stdout>' write error: Broken pipe
  fatal: The remote end hung up unexpectedly
  fatal: The remote end hung up unexpectedly

      at ChildProcess.<anonymous> (D:\blog\node_modules\hexo-util\lib\spawn.js:37:17)
      at emitTwo (events.js:126:13)
      at ChildProcess.emit (events.js:214:7)
      at ChildProcess.cp.emit (D:\blog\node_modules\cross-spawn\lib\enoent.js:40:29)
      at maybeClose (internal/child_process.js:925:16)
      at Process.ChildProcess._handle.onexit (internal/child_process.js:209:5)

  1、尝试过 ssh -o ServerAliveInterval=60 mzwua@192.30.253.112(只有一次有效,后面再遇到就挂了!)

  2、有网友说:删除.deploy_git文件后重新部署(我试了一下还是挂了!)

  3、改用手机热点(竟然可以了,Why??防火墙??)

月朦胧 2022-09-18 14:32:25

整两天我也遇见了,但是找不到解决方案,期待完美解决方案

戏剧牡丹亭 2022-09-18 14:32:25

执行下面语句后再发布看看

git config --global http.postBuffer 524288000
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文