Cannot install runner for automate server


#1

When running automate-ctl install-runner I get the following error.

vdlychef@sfsdlchefa001:~$ sudo automate-ctl install-runner sfsdlbldsvr001.vandalay.local vdlychef --ssh-identity-file .ssh/id_rsa
Preflight check...
  Fetching Chef Server certificates for local use.
  Verifying no legacy runners exist for this name.
Failed to register sfsdlbldsvr001.vandalay.local with Chef Server.

Please check the log files at /var/log/delivery-ctl/runner-install_sfsdlbldsvr001.vandalay.local.log for more information
vdlychef@sfsdlchefa001:~$ sudo cat /var/log/delivery-ctl/runner-install_sfsdlbldsvr001.vandalay.local.log
[2016-12-08T15:08:11.399366 #14944] FATAL -- : Error bootstrapping sfsdlbldsvr001.vandalay.local: /opt/delivery/embedded/bin/knife search node '(name:sfsdlbldsvr001.vandalay.local OR fqdn:sfsdlbldsvr001.vandalay.local OR ipaddress:sfsdlbldsvr001.vandalay.local) AND role:delivery_builders' -a fqdn -u delivery -k /etc/delivery/delivery.pem --server-url https://chef.vandalay.local/organizations/automate returned 1

My assumption is that it is ssl verification related, but I’m not sure how to confirm that or get around it if it is. This is a self hosted automate server using self signed certificates created by another part of the organization.


#2

Hi there! Can you please share the full log with us? (Minus any information you need to redact, of course.) Thank you!


#3

The runner-install log had:

Are there any other logs that would be useful?


#4

Running the command from the log gets the following error:

WARNING: No knife configuration file found
WARN: Failed to read the private key /etc/chef/client.pem: #<Errno::ENOENT: No such file or directory @rb_sysopen - /etc/chef/client.pem>
ERROR: Your private key could not be loaded from /etc/chef/client.pem
Check your configuration file and ensure that your private key is readable

I’m not sure why there isn’t a /etc/chef folder. The automate UI comes up and doesn’t present any errors.


#5

This was resolved by destroying and recreating the chef server organization for automate and then re-running automate-ctl setup.


#6

Thanks for the logs, and sorry I didn’t reply sooner. Glad you sorted it out! :confetti_ball: If you run into any other issues, please let us know.


#7

I am facing a similar issue. Could you please guide me through the solution for the same.