- html - 出于某种原因,IE8 对我的 Sass 文件中继承的 html5 CSS 不友好?
- JMeter 在响应断言中使用 span 标签的问题
- html - 在 :hover and :active? 上具有不同效果的 CSS 动画
- html - 相对于居中的 html 内容固定的 CSS 重复背景?
$ bundle exec cap production deploy
(Backtrace restricted to imported tasks) cap aborted!
SSHKit::Runner::ExecuteError:
Exception while executing as Psara@sakura: git exit status: 128 git stdout: Nothing written git stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedlySSHKit::Command::Failed:
git exit status: 128
git stdout:Nothing written
git stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly
Tasks: TOP => git:check (See full trace by running task with --trace) The deploy has failed with an error:
Exception while executing as Psara@sakura:
git exit status: 128 git stdout: Nothing written
git stderr: Permission denied (publickey).
fatal: The remote end hung up unexpectedly
deploy.rb
set :application, 'Psara'
set :repo_url, 'git@bitbucket.org:CBLaughter/psara.git'
set :deploy_to, '/home/Psara/Psara'
set :default_run_options, :pty => truenamespace :deploy do
after :restart, :clear_cache do on roles(:web), in: :groups, limit: 3, wait: 10 do # Here we can do anything such as: # within release_path do # execute :rake, 'cache:clear' # end end end
end
set :ssh_options, { forward_agent: true, paranoid: true, keys: "~/.ssh/id_rsa" }
production.rb
set :stage, :staging
set :rails_env, :productionrole :app, %w{sakura}
role :web, %w{sakura}
role :db, %w{sakura}server 'sakura', user: 'Psara', roles: %w{web app}, my_property: >:my_value
set :ssh_options, {
keys: %w(~/.ssh/id_rsa),
forward_agent: false, }
[success]
repo_url
setting ok[success] ssh private key file exists
[success]
ssh-agent
process seems to be running locally[success]
ssh-agent
process recognized byssh-add
command[success] ssh private keys added to
ssh-agent
[success] application repository accessible from local machine
[success] all hosts using passwordless login
[success]
forward_agent
ok for all hosts[success] ssh agent successfully forwarded to remote hosts
[success] application repository accessible from remote hosts
It seems SSH agent forwarding is set up correctly! You can continue with the deployment process.
It succeeded in all tests, but still makes same error.
最佳答案
确保您的机器上运行了 ssh-agent,因为您使用的是 ssh 转发,您的本地 key 应该能够从 bitbucket 访问和克隆您的存储库。您可以使用以下命令运行代理:
eval `ssh-agent`
ssh-add ~/.ssh/id_rsa
~/.ssh/authorized_keys
),当然您可以在本地克隆您的存储库(这可能是您能够做到的)。
关于ruby-on-rails - SSHKit::Runner::ExecuteError,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28375506/
$ bundle exec cap production deploy (Backtrace restricted to imported tasks) cap aborted! SSHKit::Ru
我正在尝试使用Capistrano 3将代码从GIT存储库部署到Ubuntu服务器,但出现此错误。 ==================================================
尝试通过 gem Capistrano 将我的应用程序部署到主机时遇到问题。通过 SSH key 授权一切正常。我有下一个错误: (Backtrace restricted to imported t
感谢您检查我的问题。 我现在对 capistorano 有一个错误。 几天来一直在为这个错误而苦苦挣扎,所以请帮助我。 我在应用程序中使用事件存储。 key 在/etc/environment 中。
尝试使用 Capistrano 3 部署 Rails 应用程序,当我运行此命令时,出现此错误 vagrant@vagrant-ubuntu-utopic-32:/vagrant$ cap produc
将我的 Rails 应用程序部署到 ubuntu 服务器时出现以下错误,我已正确设置 ssh key ,并且可以 ssh 到服务器,但是当我尝试执行以下操作时出现以下错误 cap productio
我已经这样设置了 capistrano:https://gorails.com/deploy/ubuntu/16.04使用每个 gem 的最新版本。 当我想要执行“cap生产部署”时,我得到的结果如下
我已经这样设置了 capistrano:https://gorails.com/deploy/ubuntu/16.04使用每个 gem 的最新版本。 当我想要执行“cap生产部署”时,我得到的结果如下
我正在尝试从 Jenkins Job 运行 cap 部署命令。它不断抛出以下错误。我也在部署服务器中添加了 ssh key 。我能够从配置 Jenkins 的服务器成功部署。但是当我运行该作业时,会引
我是一名优秀的程序员,十分优秀!