capistrano中配置git提示 fatal: could not read Username?

发布于 2022-09-03 00:53:42 字数 2255 浏览 24 评论 0

最近研究自动化部署工具capistrano,config/deploy.rb中我配置的git为 http://xxxx:11080/dongbing/group_mng.git,采用http当时访问git。在执行cap deploy后,输入git用户名密码就会提示fatal: could not read Username for 'http://xxxx:11080': No such device or address,这是怎么回事。

aaron@php7:/var/deploy/project1$ cap deploy
    triggering start callbacks for `deploy'
  * executing `multistage:ensure'
*** Defaulting to `staging'
  * executing `staging'
  * executing `deploy'
  * executing `deploy:update'
 ** transaction: start
  * executing `deploy:update_code'
    executing locally: "git ls-remote http://xx.xx.xx.xx:11080/dongbingxu/group_mng.git HEAD"
Username for 'http:///xx.xx.xx.xx:11080': dongbingxu
Password for 'http://dongbingxu@/xx.xx.xx.xx:11080': 
    command finished in 7459ms
  * executing "git clone -q  http:///xx.xx.xx.xx:11080/dongbingxu/group_mng.git /var/www/ebills/releases/20160704194320 && cd /var/www/ebills/releases/20160704194320 && git checkout -q -b deploy 73be87e751ad40640866003578c180839cf1675a && (echo 73be87e751ad40640866003578c180839cf1675a > /var/www/ebills/releases/20160704194320/REVISION)"
    servers: ["127.0.0.1"]
aaron@127.0.0.1's password: 
    [127.0.0.1] executing command
 ** [127.0.0.1 :: err] fatal: could not read Username for 'http:///xx.xx.xx.xx:11080': No such device or address
    command finished in 282ms
*** [deploy:update_code] rolling back
  * executing "rm -rf /var/www/ebills/releases/20160704194320; true"
    servers: ["127.0.0.1"]
    [127.0.0.1] executing command
    command finished in 19ms
failed: "sh -c 'git clone -q  http:///xx.xx.xx.xx:11080/dongbingxu/group_mng.git /var/www/ebills/releases/20160704194320 && cd /var/www/ebills/releases/20160704194320 && git checkout -q -b deploy 73be87e751ad40640866003578c180839cf1675a && (echo 73be87e751ad40640866003578c180839cf1675a > /var/www/ebills/releases/20160704194320/REVISION)'" on 127.0.0.1

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文