git - ftp错误,同时推送文件到生产服务器 [英] git - ftp error while pushing files to production server

查看:212
本文介绍了git - ftp错误,同时推送文件到生产服务器的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我尝试使用git ftp将我的文件推送到我的生产服务器时,出现以下错误。



这是我在没有-v选项的情况下得到的错误

  C:\程序文件(x86)\Git\bin\git-ftp:408行:/ bin / curl:错误的文件编号
致命:无法上传文件,退出...

这是使用-v选项产生的详细错误

  Wed Apr 9 15:00:04 IST 2014:上传... 
0 [main] bash 5880 open_stackdumpfile:将堆栈跟踪转储到bash.exe.sta
ckdump
C:\程序文件(x86)\Git\bin\git-ftp:第400行:5880分段错误
Wed Apr 9 15:00:08 IST 2014:fatal:无法上传文件,退出...

我第一次推送这些更改,并且使用 git ftp init 命令。



我检查了整个配置是否正确。事实上,如果我尝试推送少量的文件,它的工作原理。但是,当我尝试上传大小约为45 MB的库文件夹时,出现上述错误。



任何人都可以帮忙吗?

解决方案

似乎git ftp有一个bug,并且它不适用于大量的文件。



所以我没有按照以下的方法去除错误。



我正在使用Zend Framework。我手动将我的库/ Zend文件夹上传到服务器,然后使用.git-ftp-ignore忽略它。这减少了git ftp必须处理的文件数量,现在它工作正常。

这个解决方案对我很有用,因为我很少改变library / Zend文件夹。

>

我报告了这个错误

git ftp bug

希望这有助于其他人。


I am getting following error when I try to push my files to my production server using git ftp.

This is the error I get without the -v option

C:\Program Files (x86)\Git\bin\git-ftp: line 408: /bin/curl: Bad file number
fatal: Could not upload files., exiting...

This is the detailed error generated using -v option

Wed Apr  9 15:00:04 IST 2014: Uploading ...
      0 [main] bash 5880 open_stackdumpfile: Dumping stack trace to bash.exe.sta
ckdump
C:\Program Files (x86)\Git\bin\git-ftp: line 400:  5880 Segmentation fault
(core dumped) curl "${CURL_ARGS[@]}"
Wed Apr  9 15:00:08 IST 2014: fatal: Could not upload files., exiting...

I am pushing these changes for the first time and I am using git ftp init command.

I have checked and the whole configuration is correct. In fact if I try to push a small number of files it works. But when I try to upload my library folder which is around 45 MB in size I get the above error.

Can any one please help with this?

解决方案

It seems that git ftp has a bug and it won't work with a larger number of files.

So I did following to remove the error.

I am using Zend Framework. I uploaded my library/Zend folder manually to server and then ignored it using .git-ftp-ignore. This reduce the number of files that git ftp has to handle and now it works fine.

This solution worked for me because I rarely change library/Zend folder.

I have reported this bug

git ftp bug

Hope this helps others.

这篇关于git - ftp错误,同时推送文件到生产服务器的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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