git推送失败
我在我部门的 Sun Solaris 服务器上创建了集中式 git 存储库,
mkdir /var/git/myapp.git
cd /var/git/myapp.git
git --bare init
上周,
git remote add origin ssh://myserver.com/var/git/myapp.git
git push origin master
我为当前正在开发的 3 个应用程序执行了此操作,并将这些应用程序的主版本推送到该工作的服务器上,并创建了存储库,
本周 可以从它们中克隆/拉取我尝试创建一个测试应用程序和存储库,以便我可以使用 capistrano 进行测试来部署这些应用程序 我
在服务器上遵循相同的程序:
mkdir /var/git/testapp.git
cd /var/git/testapp.git
git --bare init
在本地:
cd /path/to/testapp
git remote add origin ssh://myserver.com/var/git/testapp.git
git push origin master
我
Counting objects: 64, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (56/56), done.
ld.so.1: git: fatal: relocation error: file /usr/local/bin/git: symbole deflateBound: referenced symbol not found
fatal: sha1 file '<stdout>' write error: Invalid argument
error: pack-objects died with strange error
error: failed to push some refs to 'ssh://myserver.com/var/git/myapp.git'
发现这是我的设置中的错误 我删除了 testapp.git 和 testapp在我的本地计算机上并从头开始 testapp 得到相同的结果,因此我尝试从现有应用程序之一进行推送,并且得到相同的结果,即使上周我可以推送到服务器。
有什么想法吗?
I created centralized git repositories on my department's sun solaris server using
mkdir /var/git/myapp.git
cd /var/git/myapp.git
git --bare init
last week i did this for 3 of our currently under development applications and pushed the master of these applications to the server
git remote add origin ssh://myserver.com/var/git/myapp.git
git push origin master
this worked and created the repositories and could clone/pull from them
this week I tried to create a test application and repository so I could test using capistrano to deploy these applications I followed the same precedure
on server:
mkdir /var/git/testapp.git
cd /var/git/testapp.git
git --bare init
on local:
cd /path/to/testapp
git remote add origin ssh://myserver.com/var/git/testapp.git
git push origin master
And I got
Counting objects: 64, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (56/56), done.
ld.so.1: git: fatal: relocation error: file /usr/local/bin/git: symbole deflateBound: referenced symbol not found
fatal: sha1 file '<stdout>' write error: Invalid argument
error: pack-objects died with strange error
error: failed to push some refs to 'ssh://myserver.com/var/git/myapp.git'
figuring it was an error on my setup I deleted the testapp.git and the testapp on my local machine and started testapp from scratch same result so I tried to push from one of the existing applications and i get the same result even though last week I could push to the server.
Any Ideas?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我想说你的服务器上的 git 安装不好。
它试图在那里执行 /usr/local/bin/git 并且缺少一些符号,我敢打赌你有一个库不匹配。
你的repo本身没有问题,它是git安装的,尝试在服务器中手动执行/usr/local/bin/git。
也许您在 shell 中使用的 git 二进制文件不是 /usr/local/bin/git 或某些所需 .so 库的权限失败。
I'd say your git installation in the server is not good.
It's trying to execute /usr/local/bin/git there and some symbol is missing, I'd bet you have a library mismatch.
There is nothing wrong with your repo itself, its the git installation, try executing /usr/local/bin/git manually in the server.
Maybe the git binary you are using in your shell is not /usr/local/bin/git or some failed permissions with required .so libraries.
我是通过 localhost 和 github 之间不稳定的无线互联网连接得到这个的;建议尝试使用可靠的连接,看看您是否仍然遇到相同的问题。
I was getting this with a spotty wireless internet connection between localhost and github; recommend trying with a reliable connection to see if you still have the same issues.