Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Tutorial Guide I followed:
https://learn.chef.io/modules/deploy-infrastructure/rhel/opsworks/add-a-runner#/
Command:
sudo automate-ctl install-runner 'ec2-XX-XX-XX-XX.compute-1.amazonaws.com' 'ec2-user' --ssh-identity-file automate.pem --yes
Output:
[ec2-user@ip-172-31-40-63 ~]$ sudo automate-ctl install-runner 'ec2-XX-XX-XX-XX.compute-1.amazonaws.com' 'ec2-user' --ssh-identity-file automate.pem --yes
Preflight check...
Fetching Chef Server certificates for local use.
Verifying no legacy runners exist for this name.
Failed to register ec2-XX-XX-XX-XX.compute-1.amazonaws.com with Chef Server.
Please check the log files at /var/log/delivery-ctl/runner-install_ec2-XX-XX-XX-XX.compute-1.amazonaws.com.log for more information
Error logs:
W, [2017-09-18T03:12:47.335797 #22323] WARN -- : [SSH] PTY requested: stderr will be merged into stdout
D, [2017-09-18T03:12:47.335943 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (uname -s)
D, [2017-09-18T03:12:47.336004 #22323] DEBUG -- : [SSH] opening connection to ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}>
D, [2017-09-18T03:12:47.631395 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (uname -r)
D, [2017-09-18T03:12:47.645560 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (uname -m)
D, [2017-09-18T03:12:47.659145 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/oracle-release && cat /etc/oracle-release)
D, [2017-09-18T03:12:47.672693 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/enterprise-release && cat /etc/enterprise-release)
D, [2017-09-18T03:12:47.686340 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/debian_version && cat /etc/debian_version)
D, [2017-09-18T03:12:47.699501 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/parallels-release && cat /etc/parallels-release)
D, [2017-09-18T03:12:47.713270 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/redhat-release && cat /etc/redhat-release)
D, [2017-09-18T03:12:47.727436 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (test -f /etc/os-release && cat /etc/os-release)
D, [2017-09-18T03:12:47.741619 #22323] DEBUG -- : [SSH] ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}> (echo $EUID)
D, [2017-09-18T03:12:47.755605 #22323] DEBUG -- : [SSH] closing connection to ec2-user@ec2-XX-XX-XX-XX.compute-1.amazonaws.com<{:user_known_hosts_file=>"/dev/null", :paranoid=>false, :port=>22, :compression=>false, :compression_level=>0, :keepalive=>true, :keepalive_interval=>60, :timeout=>15, :auth_methods=>["none", "publickey"], :keys_only=>true, :keys=>["automate.pem"], :password=>"<hidden>", :forward_agent=>nil}>
F, [2017-09-18T03:12:53.561005 #22323] FATAL -- : Error bootstrapping ec2-XX-XX-XX-XX.compute-1.amazonaws.com: /opt/delivery/embedded/bin/knife search node '(name:ec2-XX-XX-XX-XX.compute-1.amazonaws.com OR fqdn:ec2-XX-XX-XX-XX.compute-1.amazonaws.com OR ipaddress:ec2-XX-XX-XX-XX.compute-1.amazonaws.com) AND role:delivery_builders' -a fqdn -u delivery -k /etc/delivery/delivery.pem --server-url https://<CHEF_SERVER_URL/organizations/default returned 1
***********
ERROR: knife search failed: invalid index name or query
***********
@tphan1994
Copy link

tphan1994 commented Sep 24, 2018

Hello, stuck on this identical issue for couple days, what odd is I can bootstrap the same node and register it to Chef Manage. Is this a bug in CHEF code?

Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment