You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
ui.fatal"There is a process with PID #{proxy_pid} listening on port #{local_port}, but it does not look like a tunnel"
abort
end
:
dest_result = shell_out("lsof -an -p #{proxy_pid} -i4@#{bastion_ip_addr}:ssh")
unless dest_result.status.success?
ui.fatal "There is a process with PID #{proxy_pid} listening on port #{local_port}, but it does not look like a tunnel"
abort
end
lsof under OS X 10.12.2 doesn't seem to report the remote endpoint the way this code block expects.
I have the same issue however it is caused by not supporting IPv6. OS X prefers IPv6 when available so the tunnel is created to the resolved IPv6 bastion_ip_addr which then does not match the IPv4-only lsof call.
Workaround is to put the IPv4 address of the bastion host into knife[:bastion_host] in your knife.rb
knife-bastion/lib/chef/knife/bastion_base.rb
Lines 30 to 34 in b18c8ea
lsof
under OS X 10.12.2 doesn't seem to report the remote endpoint the way this code block expects.The text was updated successfully, but these errors were encountered: