Netlify/git LFS 退出状态 128

问题描述 投票:0回答:2

因此,在我的 netlify 网站上,我尝试上传一个超过 300mb(12 分钟长)的视频并将其发布到页面上。我必须使用 Git LFS 将我的 mp4 文件推送到 github。现在,当我去部署我的站点时,我得到退出状态 128 并在我的部署日志中这样说

4:54:27 PM: Error checking out branch: Downloading public/Videos/PythonCalc.mp4 (368 MB)
Error downloading object: public/Videos/PythonCalc.mp4 (adfdf37): Smudge error: Error downloading public/Videos/PythonCalc.mp4 (adfdf371e863741df3af4755413fae738891f5c794f28fd5564879b2a7ddb35b): batch request: missing protocol: ""


Errors logged to /opt/build/repo/.git/lfs/logs/20220121T005427.736137478.log
Use `git lfs logs last` to view the log.
error: external filter 'git-lfs filter-process' failed
fatal: public/Videos/PythonCalc.mp4: smudge filter lfs failed
4:54:27 PM: Creating deploy upload records
4:54:27 PM: Failing build: Failed to prepare repo
4:54:27 PM: Failed during stage 'preparing repo': exit status 128
4:54:28 PM: Finished processing build request in 8.446701277s

我刚刚弄清楚如何使用 LFS,当我开始调查错误时,它说 netlify 没有权限?感谢您的帮助。

reactjs git frontend netlify git-lfs
2个回答
2
投票

您需要通过运行来设置 netlify 以支持大媒体

netlify lm:setup
。它将验证并安装您需要的所有内容并生成一个
.lfsconfig
文件。

请参阅 Netlify 大型媒体文档


0
投票

我使用另一个无权访问 LFS 的 github 帐户登录。我从 VSCode Github 插件注销,并使用正确的 Github 凭据登录。

其他症状是:

batch response: Not Found
error: failed to fetch some objects from 'https://github.com/phzfi/myproject.git/info/lfs'

第二次尝试

$ git-lfs pull
Error updating the git index:
exit status 128
最新问题
© www.soinside.com 2019 - 2025. All rights reserved.