SSHKit::Runner::Ошибка выполнения: Исключение при выполнении как неопределенное@неопределенное: getaddrinfo: Имя сервера не поддерживается для ai_socktype

#ruby #deployment #rvm #capistrano #consul

Вопрос:

К сожалению, у меня возникли некоторые проблемы с развертыванием с Capistrano. Я следовал этим инструкциям: https://github.com/consul/installer#deploys-with-capistrano и перешел к делу:

 branch=stable cap production deploy
 

Но, к сожалению, все это впоследствии выдает сообщение об ошибке. Мне кажется, что Капистрано не использует учетные данные для входа, как было запрошено. Но, может быть, я ошибаюсь. Может ли кто-нибудь объяснить мне, что означают эти ошибки и как их исправить?

 00:00 rvm1:hook
      01 mkdir -p undefined/rvm1scripts/
#<Thread:0x0000562b38f31c68@/home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:10 run> terminated with exception (report_on_exception is true):
Traceback (most recent call last):
    17: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:12:in `block (2 levels) in execute'
    16: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `run'
    15: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:31:in `instance_exec'
    14: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/rvm1-capistrano3-1.4.0/lib/rvm1/tasks/capistrano3.rake:5:in `block (3 levels) in <top (required)>'
    13: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:80:in `execute'
    12: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `create_command_and_execute'
    11: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `tap'
    10: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/abstract.rb:148:in `block in create_command_and_execute'
     9: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:130:in `execute_command'
     8: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/netssh.rb:177:in `with_ssh'
     7: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `with'
     6: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/backends/connection_pool.rb:63:in `call'
     5: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `start'
     4: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh.rb:251:in `new'
     3: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/net-ssh-6.1.0/lib/net/ssh/transport/session.rb:73:in `initialize'
     2: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/2.6.0/socket.rb:631:in `tcp'
     1: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/2.6.0/socket.rb:227:in `foreach'
/home/fabrice/.rbenv/versions/2.6.6/lib/ruby/2.6.0/socket.rb:227:in `getaddrinfo': getaddrinfo: Servname not supported for ai_socktype (SocketError)
    1: from /home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:11:in `block (2 levels) in execute'
/home/fabrice/.rbenv/versions/2.6.6/lib/ruby/gems/2.6.0/gems/sshkit-1.21.0/lib/sshkit/runners/parallel.rb:15:in `rescue in block (2 levels) in execute': Exception while executing as undefined@undefined: getaddrinfo: Servname not supported for ai_socktype (SSHKit::Runner::ExecuteError)
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as undefined@undefined: getaddrinfo: Servname not supported for ai_socktype


Caused by:
SocketError: getaddrinfo: Servname not supported for ai_socktype

Tasks: TOP => rvm1:hook
(See full trace by running task with --trace)