Git在总计后挂在推上

问题描述 投票:3回答:1

我最近通过Vultr设置了VPS,并设置了一个远程git存储库以上传我的项目。

在将远程添加到本地项目并尝试对其进行第一次推送之后,它在显示“总计119(增量9),已重用0(增量0)”后挂起。

提供一些背景信息:

  • 服务器是Ubuntu 17.04 x64的全新设置
  • 我在本地有git版本2.14.1
  • 我之前已经在另一个使用Vultr(Ubuntu 16.04 x64)的VPS上执行了此操作,并且一切正常。>
  • 本地git项目已正确设置,因为我在BitBucket上有一个可以成功推送项目的遥控器
  • 我已经尝试过增加缓冲区的大小,如其他类似问题所建议的那样
  • 我正在尝试上传一个新的Laravel小项目-没有特殊文件或大文件(每个文件都小于1MB)
  • 我已根据其他类似问题的建议,将我的git版本更新为最新的可用版本(从2.12到2.14)
  • 我的SSH连接工作正常,我什至用Debug Level 3进行了设置,所以它非常冗长(我在下面有日志)
  • 远程存储库似乎设置正确(我尝试使用相同的SSH连接在同一服务器上创建一个额外的远程存储,指向一个不存在的存储库,并且从GIT那里得到一条正确的错误消息,它可以找不到存储库)
  • 我已经设置了带--shared和不带--shared的仓库,但结果是相同的
  • 我什至已经等了(超过8个小时),什么也没发生,没有错误消息,它仍然挂着
  • 我已经尝试了两天就该主题找到的所有其他解决方案,但仍然得到相同的结果(即使重新创建了我的存储库几次,尝试使用不同的名称,也尝试在存储库中的我的存储库和工作目录上使用chmod 777。服务器等)
  • 这里是git push上详细ssh输出的一部分(在验证ssh键之后:]

debug3: send packet: type 50
debug3: receive packet: type 52
debug1: Authentication succeeded (publickey).
Authenticated to 45.63.116.43 ([45.63.116.43]:22).
debug2: fd 4 setting O_NONBLOCK
debug2: fd 5 setting O_NONBLOCK
debug1: channel 0: new [client-session]
debug3: ssh_session2_open: channel_new: 0
debug2: channel 0: send open
debug3: send packet: type 90
debug1: Requesting [email protected]
debug3: send packet: type 80
debug1: Entering interactive session.
debug1: pledge: network
debug3: receive packet: type 80
debug1: client_input_global_request: rtype [email protected] want_reply 0
debug3: receive packet: type 91
debug2: callback start
debug2: fd 3 setting TCP_NODELAY
debug3: ssh_packet_set_tos: set IP_TOS 0x08
debug2: client_session2_setup: id 0
debug1: Sending command: git-receive-pack '/var/repo/hc-teaser.git'
debug2: channel 0: request exec confirm 1
debug3: send packet: type 98
debug2: callback done
debug2: channel 0: open confirm rwindow 0 rmax 32768
debug2: channel 0: rcvd adjust 2097152
debug3: receive packet: type 99
debug2: channel_input_status_confirm: type 99 id 0
debug2: exec request accepted on channel 0
Counting objects: 119, done.
Delta compression using up to 4 threads.
Compressing objects: 100% (104/104), done.
Writing objects: 100% (119/119), 277.89 KiB | 5.91 MiB/s, done.
Total 119 (delta 9), reused 0 (delta 0)
debug2: channel 0: read<=0 rfd 4 len 0
debug2: channel 0: read failed
debug2: channel 0: close_read
debug2: channel 0: input open -> drain
debug2: channel 0: ibuf empty
debug2: channel 0: send eof
debug3: send packet: type 96
debug2: channel 0: input drain -> closed
debug2: channel 0: rcvd adjust 65689

在最后一行之后,它无限期地挂起。

我最近通过Vultr设置了VPS,并设置了一个远程git存储库以上传我的项目。将遥控器添加到本地项目并尝试对其进行第一次推送之后,它在显示“ ...

git laravel ssh vps
1个回答
1
投票

问题是目标文件夹权限错误。创建目标文件夹时,我使用“ sudo”,因此所有者设置为root。当我将目标文件夹所有者更改为我的用户(用于推送存储库的所有者),并将该组更改为www-data时,所有内容都像一个超级按钮。

© www.soinside.com 2019 - 2024. All rights reserved.