Bootstrapping a Debian Jessie node

I am new to Chef and I am following the Getting Started tutorial.
I am arrived at the “Bootstrap your node” step at and I am trying to bootstrap my first Debian 8 Jessie node, but the bootstrap procedure fails:

decibel83@mac.local:~/chef/learn-chef/chef-repo$ knife bootstrap host@domain --ssh-user root --run-list 'recipe[learn_chef_apache2]'
Doing old-style registration with the validation key at /Users/decibel83/chef/learn-chef/chef-repo/.chef/org-validator.pem...
Delete your validation key in order to use your user credentials instead

Connecting to host@domain
root@host@domain's password: 
host@domain -----> Installing Chef Omnibus (-v 12)
host@domain downloading
host@domain   to file /tmp/
host@domain trying wget...
host@domain trying perl...
host@domain trying python...
host@domain >>>>>> wget, curl, fetch, perl, or python not found on this instance.
host@domain STDERR from wget:
host@domain converted '' (ANSI_X3.4-1968) -> '' (UTF-8)
host@domain --2016-03-06 09:30:25--
host@domain Resolving (,,
host@domain Connecting to (||:443... connected.
host@domain ERROR: The certificate of '' is not trusted.
host@domain ERROR: The certificate of '' hasn't got a known issuer.
host@domain STDERR from perl:
host@domain Can't locate LWP/ in @INC (you may need to install the LWP::Simple module) (@INC contains: /etc/perl /usr/local/lib/x86_64-linux-gnu/perl/5.20.2 /usr/local/share/perl/5.20.2 /usr/lib/x86_64-linux-gnu/perl5/5.20 /usr/share/perl5 /usr/lib/x86_64-linux-gnu/perl/5.20 /usr/share/perl/5.20 /usr/local/lib/site_perl .) at -e line 1.
host@domain BEGIN failed--compilation aborted at -e line 1.
host@domain STDERR from python:
host@domain Traceback (most recent call last):
host@domain   File "<string>", line 1, in <module>
host@domain   File "/usr/lib/python2.7/", line 154, in urlopen
host@domain     return, data, timeout)
host@domain   File "/usr/lib/python2.7/", line 431, in open
host@domain     response = self._open(req, data)
host@domain   File "/usr/lib/python2.7/", line 449, in _open
host@domain     '_open', req)
host@domain   File "/usr/lib/python2.7/", line 409, in _call_chain
host@domain     result = func(*args)
host@domain   File "/usr/lib/python2.7/", line 1240, in https_open
host@domain     context=self._context)
host@domain   File "/usr/lib/python2.7/", line 1197, in do_open
host@domain     raise URLError(err)
host@domain urllib2.URLError: <urlopen error [SSL: CERTIFICATE_VERIFY_FAILED] certificate verify failed (_ssl.c:581)>
host@domain Starting the first Chef Client run...
host@domain sh: 257: chef-client: not found

Could you help me please?
Thank you very much!

I solved installing the libwww-perl package on the node.
How I can let it to be automatically installed during the bootstrapping process?

I’d look into creating a customized bootstrap template. :slightly_smiling:

1 Like

Thank you very much! I will check" :grinning:

I found myself here by error message - solution may be old hat…

Use the following pattern - but script ‘apt-get install -y ca-certificates’ (don’t need all the other cruft of libwww-perl).

Hope this helps another newcomer…