在使用 Egit 进行推送时出现错误:”连接被对等方重置:套接字写入错误”。

huangapple go评论78阅读模式
英文:

Error during push using Egit: "Connection reset by peer: socket write error"

问题

当尝试使用 Egit 将分支推送到我拥有的存储库时,出现以下错误:

> 无法连接到任何存储库:https://github.com/name/rep.git
> (https://github.com/name/rep.git:对等方重置连接:套接字
> 写入错误)

  • 凭据是正确的。
  • 所有我尝试推送到该存储库的分支都会出现此问题。
  • 我可以连接到 GitHub 上的存储库。
  • 推送在 95-96% 处失败。
  • 我之前可以推送到该存储库。不确定发生了什么变化。

使用:

Eclipse 版本:2020-03(4.15)
构建 ID:I20200305-0155

Eclipse EGit Git 集成为 Eclipse 提供的 Git 集成插件 5.7.0.202003110725-r org.eclipse.egit

英文:

When trying to push a branch using Egit to a repository that I own, I get the following error:

> Can't connect to any repository: https://github.com/name/rep.git
> (https://github.com/name/rep.git: Connection reset by peer: socket
> write error)

  • The credentials are correct.
  • Happens to all branches I try to push to that repo.
  • I can connect to the repository on GitHub.
  • The push fails at 95-96%.
  • I was able to push to that repository before. Not sure what changed.

Using:

Eclipse Version: 2020-03 (4.15)
Build id: I20200305-0155

Eclipse EGit Git integration for Eclipse 5.7.0.202003110725-r org.eclipse.egit

答案1

得分: 1

在[远程存储库视图][1]中,您可以查看使用的URL,并在需要使用SSH进行测试时进行修改。

但是首先请检查,如[此处][2],安全存储中保存的密码是否与输入的密码不匹配。
请参阅

窗口 > 首选项 > 安全性 > 安全存储 > 内容选项卡 > [默认安全存储] > GIT

从那里,您应该能够检查是否为 github.com 存储了密码。
[1]: https://wiki.eclipse.org/EGit/User_Guide#Remote_Repositories
[2]: https://stackoverflow.com/a/58524976/6309

英文:

In the [remote repository view][1], you can see the URL used and modify it if you need to make a test with SSH.

But check first if, as [in here][2], a saved password in secure storage doesn't match with the typed one.
See

Window > Preferences > Security > Secure Storage > Contents Tab > [Default Secure Storage] > GIT 

From there, you should be able to check if a password was stored for github.com.
[1]: https://wiki.eclipse.org/EGit/User_Guide#Remote_Repositories
[2]: https://stackoverflow.com/a/58524976/6309

答案2

得分: 0

我不得不再次下载Eclipse,安装EGit,加载工作区,然后推送(push)就像往常一样成功了。似乎安装发生了一些问题。

现在打开旧的安装也再次可以正常运行。

英文:

I had to download Eclipse again, install EGit, load the workspace, and then the push worked as usual. It seems that something happened to the installation.

Opening the old installation now also works again.

huangapple
  • 本文由 发表于 2020年4月10日 11:03:11
  • 转载请务必保留本文链接:https://go.coder-hub.com/61133398.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定