Capistrano 3.1部署失败 - Windows 10上的bitbucket - “从身份验证套接字读取响应长度时出错”。(Capistrano 3.1 deploy failed - bitbucket on windows 10 - “Error reading response length from authentication socket.”)
我实际上从另一个开发人员那里获得了一个项目。 我有一台Windows 10机器,repo是在bitbucket上。
我每次启动命令行客户端(cmder)时都启动了ssh代理并添加了ssh密钥。
我可以连接到ssh -T git@bitbucket.org
,到我的服务器,所以ssh键似乎工作。
我也可以从我的服务器上运行ssh -T git@bitbucket.org
,它也很好。 我的ruby版本是2.3。*,它似乎不是一个net-ssh问题。
在我的ssh配置文件中,我添加了Host mydomain.com ForwardAgent yes
但每次我尝试
cap staging deploy
遇到此错误DEBUG [1a76116b] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/home/domain/tmp/git-ssh-app-staging-user.sh" ; /usr/bin/env git ls-remote git@bitbucket.org:user/domain-b2c.git HEAD ) DEBUG [1a76116b] Error reading response length from authentication socket. DEBUG [1a76116b] Permission denied (publickey). DEBUG [1a76116b] fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
我现在真的不知道该怎么做。 我尝试了许多解决方案,我遇到过类似问题的人,但似乎没什么用。 它对其他开发人员来说很好。 我的ssh密钥是用git生成的,它位于我的本地.ssh文件夹,我的服务器ssh_authorized密钥和我的bitbucket profil设置上。 (是否需要将其添加到存储库ssh密钥?)
非常感谢任何帮助。
I am actually getting a project back from another developer. I have a windows 10 machine, the repo is on bitbucket.
I have my ssh agent started and my ssh key added each time I launch my command line client (cmder).
I can connect tossh -T git@bitbucket.org
, to my server so the ssh key seems to work.
I can also runssh -T git@bitbucket.org
from my server and it is fine too. My ruby version is 2.3.* and it doesn't seem to be a net-ssh problem.
On my ssh config file I have added theHost mydomain.com ForwardAgent yes
But each time I tried the
cap staging deploy
I got this errorDEBUG [1a76116b] Command: ( export GIT_ASKPASS="/bin/echo" GIT_SSH="/home/domain/tmp/git-ssh-app-staging-user.sh" ; /usr/bin/env git ls-remote git@bitbucket.org:user/domain-b2c.git HEAD ) DEBUG [1a76116b] Error reading response length from authentication socket. DEBUG [1a76116b] Permission denied (publickey). DEBUG [1a76116b] fatal: Could not read from remote repository. Please make sure you have the correct access rights and the repository exists.
I really don't know what to do right now. I have trying many solutions I saw for people with similar problems but nothing seems to work. It is working fine for the other developer. My ssh key was generated with git and it is on my local .ssh folder, on my server ssh_authorized keys and on my bitbucket profil settings. (Could it be needed to add it to the repository ssh key?)
Many thanks for any help.
原文:https://stackoverflow.com/questions/43944713
最满意答案
选项1您可以删除
event.preventDefault();
并使该函数return false
。例如:
$(document).ready(function() { $("#nextPage").click(function() { $('html, body').animate({ scrollTop: $("#secondContainer").offset().top }, 1000); return false; }); $("#prevPage").click(function() { $('html, body').animate({ scrollTop: $("#firstContainer").offset().top }, 1000); return false; }); });
选项2您可以使用span标记(删除课程的href属性)
选项3只需从锚点中删除href属性(虽然这不是有效的html)
这里是返回虚假选项的小提琴。
Option 1 You could remove the
event.preventDefault();
and make the functionreturn false
.eg:
$(document).ready(function() { $("#nextPage").click(function() { $('html, body').animate({ scrollTop: $("#secondContainer").offset().top }, 1000); return false; }); $("#prevPage").click(function() { $('html, body').animate({ scrollTop: $("#firstContainer").offset().top }, 1000); return false; }); });
Option 2 You could use a span tag instead (removing the href attribute ofcourse)
Option 3 Just remove the href attribute from the anchor (this wont be valid html though)
HERE is a fiddle with the return false option.
相关问答
更多-
我明白你的问题基本上是如何禁用平滑滚动。 不过,我会以不同的方式回答你的问题,以达到这个目的。 为什么不同? 即使您可以检测到用户的平滑滚动,也不能强制用户禁用它。 换句话说,你试图掩盖问题而不是解决问题。 所以让我们解决它! 介绍:像素到屏幕的流水线 在每个框架上,浏览器执行以下步骤在屏幕上呈现页面。 JavaScript的。 通常,JavaScript用于处理会导致可视化更改的工作,无论是jQuery的动画功能,对数据集进行排序还是向页面添加DOM元素。 不过,它并不一定是触发视觉变化的JavaScri ...
-
JQuery UI自动完成不在Firefox中使用箭头键滚动(JQuery UI autocomplete not scrolling with arrow keys in Firefox)[2022-01-13]
我在使用jQuery v1.7.2和jQuery UI v1.8.11的应用程序在任何浏览器上遇到过类似的问题。 不过,我发现它已修复jQuery UI v1.8.13更新日志 。 所以根据变更集中的修复,我所做的只是覆盖两个函数,如下所示,它修复了这个问题。 $.widget("ui.menu", $.extend({ }, $.ui.menu.prototype, { activate: function (event, item) { this.deactivate(); if (th ... -
奇怪的是,当我补充说 和 一切都奏效了。 Strangely enough, when I added and It all worked.
-
当您参考右侧为slidebox动画时,似乎会出现此问题。 如果您将代码更改为left引用,则抖动消失。 的jsfiddle if ($(window).scrollTop() > distanceTop) $('#slidebox').animate({'left':'160px'},500); else $('#slidebox').stop(true).animate({'left':'1500px'},500); 当然,您必须更改值以使其与您的页面匹配。 The problem se ...
-
这可能是因为你的平等性有点严格,并且事件没有被触发。 尝试使用> =或<=来代替== 像这样的东西: $(window).scrollTop() > $(document).height() - $(window).height() Turns out that Firefox was secretly interpreting $(window).scrollTop() as a floating point value, adding small values to the integer, for ...
-
只需给你的标题标签 overflow: hidden; Just give your header tag overflow: hidden;
-
尝试这个: function throttle( fn, timeout ) { var tid = 0; return function() { clearTimeout( tid ); var args = [].slice.call( arguments ), ctx = this; tid = setTimeout( function() { fn.apply( ctx, args ); ...
-
CSS + FireFox:使用scrolling = yes隐藏iframe上的滚动条(CSS + FireFox: hiding scrollbar on iframe with scrolling=yes)[2023-02-02]
您是否尝试在iframe或父容器上设置宽度/高度的显式值? 此外,您的iFrame是否包含任何内容? 编辑:尝试: div {overflow:hidden;} div iframe {border:0;overflow:hidden;} 在包含div的实际页面中。 Have you tried setting explicit values for width/height on either the iframe or parent container? Also, does your iFrame ... -
jquery在Firefox上滚动(jquery scrolling on Firefox)[2023-01-09]
选项1您可以删除event.preventDefault(); 并使该函数return false 。 例如: $(document).ready(function() { $("#nextPage").click(function() { $('html, body').animate({ scrollTop: $("#secondContainer").offset().top }, 1000); return false; ... -
你有没有试过调试? 就像在整个方法中放入console.log语句一样,在某些时候查看事物的值并观察它的执行情况? 无论如何,是否真的使用这个帮助? $('body,html').animate({scrollTop:nextdiv.offset().top}, 1000); 从Animate scrollTop验证不在firefox中工作 你需要html因为firefox在overflow时表现不同。 Did you try debugging at all? As in, putting consol ...