我知道有很多关于Capistrano的话题,但在我们的案例中没有任何帮助。
Capistrano 3.4.0突然停止部署。
我们得到的错误:
INFO [8fd2b54a] Running /usr/bin/env mkdir -p /tmp/000.com/ as deploy@000.com
DEBUG [8fd2b54a] Command: /usr/bin/env mkdir -p /tmp/000.com/
^C(Backtrace restricted to imported tasks)
cap aborted!
Interrupt:
Tasks: TOP => git:check => git:wrapper
(See full trace by running task with --trace)
The deploy has failed with an error:
我尝试了几种食谱,但不能解决问题。 你有什么想法吗?
现在我遇到了错误:
部署失败并出现错误:Net :: SSH :: ConnectionTimeout
deploy@ip-000:~/dep$ cap production deploy --trace
** Invoke production (first_time)
** Execute production
** Invoke load:defaults (first_time)
** Execute load:defaults
** Invoke deploy (first_time)
** Execute deploy
** Invoke deploy:starting (first_time)
** Execute deploy:starting
** Invoke deploy:check (first_time)
** Execute deploy:check
** Invoke git:check (first_time)
** Invoke git:wrapper (first_time)
** Execute git:wrapper
INFO [5c3bfd8b] Running /usr/bin/env mkdir -p /tmp/00/ as deploy@00.com
DEBUG [5c3bfd8b] Command: /usr/bin/env mkdir -p /tmp/00.com/
^Ccap aborted!
Interrupt:
/home/deploy/.rvm/gems/ruby-2.2.3/gems/sshkit-1.8.1/lib/sshkit/runners/parallel. rb:20:in `join'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/sshkit-1.8.1/lib/sshkit/runners/parallel. rb:20:in `map'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/sshkit-1.8.1/lib/sshkit/runners/parallel. rb:20:in `execute'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/sshkit-1.8.1/lib/sshkit/coordinator.rb:21 :in `each'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:55 :in `on'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/git .rake:16:in `block (2 levels) in <top (required)>'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `call'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `each'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchr onize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_w ith_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:201:in `block in invoke_prerequisites'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:199:in `each'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:199:in `invoke_p rerequisites'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:178:in `block in invoke_with_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchr onize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_w ith_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16 :in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/dep loy.rake:36:in `block (2 levels) in <top (required)>'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `call'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `each'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchr onize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_w ith_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16 :in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/dep loy.rake:4:in `block (2 levels) in <top (required)>'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `call'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `each'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchr onize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_w ith_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/dsl.rb:16 :in `invoke'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/fra mework.rake:65:in `block (2 levels) in <top (required)>'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/fra mework.rake:64:in `each'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/tasks/fra mework.rake:64:in `block in <top (required)>'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `call'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:240:in `block in execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `each'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:235:in `execute'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:179:in `block in invoke_with_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/monitor.rb:211:in `mon_synchr onize'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:172:in `invoke_w ith_call_chain'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/task.rb:165:in `invoke'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:150:in `i nvoke_task'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in `b lock (2 levels) in top_level'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in `e ach'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:106:in `b lock in top_level'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:115:in `r un_with_threads'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:100:in `t op_level'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:78:in `bl ock in run'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:176:in `s tandard_exception_handling'
/home/deploy/.rvm/rubies/ruby-2.2.3/lib/ruby/2.2.0/rake/application.rb:75:in `ru n'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/lib/capistrano/applicati on.rb:15:in `run'
/home/deploy/.rvm/gems/ruby-2.2.3/gems/capistrano-3.4.0/bin/cap:3:in `<top (requ ired)>'
/home/deploy/.rvm/gems/ruby-2.2.3/bin/cap:23:in `load'
/home/deploy/.rvm/gems/ruby-2.2.3/bin/cap:23:in `<main>'
/home/deploy/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `eval'
/home/deploy/.rvm/gems/ruby-2.2.3/bin/ruby_executable_hooks:15:in `<main>'
Tasks: TOP => git:check => git:wrapper
The deploy has failed with an error:
** Invoke deploy:failed (first_time)
** Execute deploy:failed
答案 0 :(得分:0)
您可以将╰─ gem install eventmachine
Building native extensions. This could take a while...
ERROR: Error installing eventmachine:
ERROR: Failed to build gem native extension.
/Users/Mark/.rvm/rubies/ruby-1.9.3-p545/bin/ruby -r ./siteconf20160317-25567-1hfkhwn.rb extconf.rb
-----
Using OpenSSL from pkg-config -I/usr/local/Cellar/openssl/1.0.2d/include && -L/usr/local/Cellar/openssl/1.0.2d/lib && -lssl -lcrypto
-----
checking for main() in -lcrypto... yes
checking for main() in -lssl... yes
checking for openssl/ssl.h... yes
checking for openssl/err.h... yes
checking for rb_trap_immediate in ruby.h,rubysig.h... no
checking for rb_thread_blocking_region()... yes
checking for rb_thread_call_without_gvl() in ruby/thread.h... no
checking for rb_thread_fd_select()... yes
checking for rb_fdset_t in ruby/intern.h... yes
checking for rb_wait_for_single_fd()... yes
checking for rb_enable_interrupt()... yes
checking for rb_time_new()... yes
checking for inotify_init() in sys/inotify.h... no
checking for __NR_inotify_init in sys/syscall.h... no
checking for writev() in sys/uio.h... yes
checking for pipe2() in unistd.h... no
checking for accept4() in sys/socket.h... no
checking for SOCK_CLOEXEC in sys/socket.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
checking for clock_gettime()... no
checking for gethrtime()... no
CXXFLAGS=$(cxxflags) -Wall -Wextra -Wno-deprecated-declarations -Wno-ignored-qualifiers -Wno-unused-result -Wno-address
creating Makefile
make clean
make
compiling conftest.c
conftest.c:3:21: fatal error: utility: No such file or directory
#include <utility>
特别粘贴到brew unlink openssl
brew link openssl --force
部分吗?
看来,您的回购邮件无法从您的服务器访问,请检查deploy.rb
命令和set :repo_url,
这是一个私人回购?